Skip to contentSkip to conversation

is it not a *requirement* that layers start with "meta-"?

DISCUSSION Robert P. J. Day 4 participants 7 messages Dec 30, 2014 – Jan 8, 2015

lore
Share & tools
lore
#0 lore raw

just proofing the BSP Guide and i read again that starting a layer
name with "meta-" is not an actual requirement, it's just standard practice. but is there no code/script anywhere that requires that prefix to process the layer properly?

i'm pretty sure i've run across YP utilities that check specifically
for a "meta-" prefix, so that would make that prefix mandatory, would it not? i wish i could remember where i've seen this, but it eludes me at the moment.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw

If you use the yocto scripts for setting up a new layer, it automatically prepends 'meta-'. That may be why there is no requirement.Lachlan

----- Original Message -----
From: "Robert P. J. Day"
To:"Yocto discussion list"
Cc:
Sent:Tue, 30 Dec 2014 09:20:55 -0500 (EST) Subject:[yocto] is it not a *requirement* that layers start with "meta-"?

just proofing the BSP Guide and i read again that starting a layer name with "meta-" is not an actual requirement, it's just standard practice. but is there no code/script anywhere that requires that prefix to process the layer properly?

i'm pretty sure i've run across YP utilities that check specifically for a "meta-" prefix, so that would make that prefix mandatory,
would
it not? i wish i could remember where i've seen this, but it eludes
me
at the moment.

rday

--

========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday

========================================================================
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
---- Message sent via Adam Internet WebMail - http://www.adam.com.au/

#2 lore raw
Quoted 3 lines · On Wed, 31 Dec 2014, [email protected] wrote:

If you use the yocto scripts for setting up a new layer, it automatically prepends 'meta-'. That may be why there is no requirement

but that still doesn't address that (from memory) some OE
scripts/utils seem to *require* layers start with the prefix "meta-". i guess i can just grep the OE layer and look for build scripts that contain that string and see which ones have that requirement.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#3 lore raw

If anyone can locate some scripts or something that actually does require "meta-" to be prepended please let me know. That changes how we describe this.

Scott

Quoted 37 lines

-----Original Message-----
From: [email protected] [mailto:yocto- [email protected]] On Behalf Of Robert P. J. Day
Sent: Tuesday, December 30, 2014 11:25 AM
To: [email protected]
Cc: Yocto discussion list
Subject: Re: [yocto] is it not a *requirement* that layers start with "meta-"?

Quoted 3 lines · On Wed, 31 Dec 2014, [email protected] wrote:

If you use the yocto scripts for setting up a new layer, it automatically prepends 'meta-'. That may be why there is no requirement

but that still doesn't address that (from memory) some OE scripts/utils seem
to *require* layers start with the prefix "meta-".
i guess i can just grep the OE layer and look for build scripts that contain that string and see which ones have that requirement.

rday

--

===========================================================
=============
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday

===========================================================
=============
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#4 lore raw
Quoted 3 lines · Scott M

If anyone can locate some scripts or something that actually does require "meta-" to be prepended please let me know. That changes how we describe this.

as an admittedly simple example, i ran across this in oe-core's
scripts/contrib/documentation-audit.sh:

for pkg in bitbake -s | awk '{ print \$1 }'; do

	... snip ...

        if [[ "$pkg" =~ ^meta- || "$pkg" =~ ^packagegroup- || "$pkg" =~ -image ]]; then
                # Skip meta, task and image recipes
                continue
        fi

checking that the package name starts with "meta-" seems to
pretty clearly suggest that it will be treated differently than if it doesn't. i'm sure no one is terribly worried about that particular script, but it does seem to show an example of this.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#5 lore raw
Quoted 19 lines · Robert P. J. Day
Quoted 3 lines · Scott M

If anyone can locate some scripts or something that actually does require "meta-" to be prepended please let me know. That changes how we describe this.

as an admittedly simple example, i ran across this in oe-core's
scripts/contrib/documentation-audit.sh:

for pkg in bitbake -s | awk '{ print \$1 }'; do

	... snip ...

        if [[ "$pkg" =~ ^meta- || "$pkg" =~ ^packagegroup- || "$pkg" =~ -image ]]; then
                # Skip meta, task and image recipes
                continue
        fi
Quoted 4 lines

checking that the package name starts with "meta-" seems to
pretty clearly suggest that it will be treated differently than if it doesn't. i'm sure no one is terribly worried about that particular script, but it does seem to show an example of this.

But that's checking *recipe* names, not layer names...

Thus, you'll have to look for another example. ;)

Cheers,
Anders

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB
#6 lore raw
Quoted 21 lines · Anders Darander
Quoted 17 lines · Robert P. J. Day
Quoted 3 lines · Scott M

If anyone can locate some scripts or something that actually does require "meta-" to be prepended please let me know. That changes how we describe this.

as an admittedly simple example, i ran across this in oe-core's
scripts/contrib/documentation-audit.sh:

for pkg in bitbake -s | awk '{ print \$1 }'; do

	... snip ...

        if [[ "$pkg" =~ ^meta- || "$pkg" =~ ^packagegroup- || "$pkg" =~ -image ]]; then
                # Skip meta, task and image recipes
                continue
        fi
Quoted 8 lines
Quoted 4 lines

checking that the package name starts with "meta-" seems to
pretty clearly suggest that it will be treated differently than if it doesn't. i'm sure no one is terribly worried about that particular script, but it does seem to show an example of this.

But that's checking *recipe* names, not layer names...

Thus, you'll have to look for another example. ;)

ah, quite so, so perhaps the "meta-" prefix is not a real
requirement, just convention.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================