* bbappend - Where should my file be?
@ 2011-08-11 23:51 Chris Tapp
2011-08-11 23:57 ` Scott Garman
2011-08-30 18:07 ` Richard Purdie
0 siblings, 2 replies; 10+ messages in thread
From: Chris Tapp @ 2011-08-11 23:51 UTC (permalink / raw)
To: yocto
I've got a linux-wrs_git.bbappend file in a layer (under poky laverne
4.0.1) that contains:
COMPATIBLE_MACHINE_Vortex86DX = "Vortex86DX"
WRMACHINE_Vortex86DX = "common_pc"
FILESEXTRAPATHS := "${THISDIR}/${PN}"
SRC_URI += " file://defconfig"
Where should the defconfig file be relative to the bbappend?
I've tried:
MyLayer
+--- recipies
+--- linux
+--- linux-wrs_git.bbappend
+--- linux-wrs_git
+--- defconfig
However, my defconfig file isn't being picked up during do_unpack:
cp: cannot stat `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/
recipes-kernel/linux/files/defconfig': No such file or directory
NOTE: Unpacking /home/chris/yocto/yocto-downloads/
git_git.pokylinux.org.linux-2.6-windriver.git.tar.gz to /home/chris/
yocto/mbox-3300-build/tmp/work/Vortex86DX-poky-linux/linux-
wrs
-2.6.34
+
git0
+
b67e060194a38c6331da1532bd06446087a42b3b_0
+0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
NOTE: Unpacking /home/chris/yocto/yocto-versions/laverne-4.0.1/meta/
recipes-kernel/linux/files/defconfig to /home/chris/yocto/mbox-3300-
build/tmp/work/Vortex86DX-poky-linux/linux-
wrs
-2.6.34
+
git0
+
b67e060194a38c6331da1532bd06446087a42b3b_0
+0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
ERROR: Task failed:
Which seems to show that it's not looking in FILESEXTRAPATHS.
The .bbappend file seems to be processed, as commenting out the
SRC_URI line gets rid of the error.
What have I got wrong?
Chris Tapp
opensource@keylevel.com
www.keylevel.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-11 23:51 bbappend - Where should my file be? Chris Tapp
@ 2011-08-11 23:57 ` Scott Garman
2011-08-12 0:28 ` Bruce Ashfield
2011-08-30 18:07 ` Richard Purdie
1 sibling, 1 reply; 10+ messages in thread
From: Scott Garman @ 2011-08-11 23:57 UTC (permalink / raw)
To: yocto
On 08/11/2011 04:51 PM, Chris Tapp wrote:
> I've got a linux-wrs_git.bbappend file in a layer (under poky laverne
> 4.0.1) that contains:
>
> COMPATIBLE_MACHINE_Vortex86DX = "Vortex86DX"
> WRMACHINE_Vortex86DX = "common_pc"
>
> FILESEXTRAPATHS := "${THISDIR}/${PN}"
>
> SRC_URI += " file://defconfig"
>
> Where should the defconfig file be relative to the bbappend?
>
> I've tried:
>
> MyLayer
> +--- recipies
> +--- linux
> +--- linux-wrs_git.bbappend
> +--- linux-wrs_git
> +--- defconfig
>
>
> However, my defconfig file isn't being picked up during do_unpack:
>
> cp: cannot stat
> `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/recipes-kernel/linux/files/defconfig':
> No such file or directory
It looks like this is where the file is expected.
I believe also meta/recipes-kernel/linux/linux/defconfig should also work.
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-11 23:57 ` Scott Garman
@ 2011-08-12 0:28 ` Bruce Ashfield
2011-08-12 8:20 ` Chris Tapp
0 siblings, 1 reply; 10+ messages in thread
From: Bruce Ashfield @ 2011-08-12 0:28 UTC (permalink / raw)
To: Scott Garman; +Cc: yocto
On 11-08-11 7:57 PM, Scott Garman wrote:
> On 08/11/2011 04:51 PM, Chris Tapp wrote:
>> I've got a linux-wrs_git.bbappend file in a layer (under poky laverne
>> 4.0.1) that contains:
>>
>> COMPATIBLE_MACHINE_Vortex86DX = "Vortex86DX"
>> WRMACHINE_Vortex86DX = "common_pc"
>>
>> FILESEXTRAPATHS := "${THISDIR}/${PN}"
>>
>> SRC_URI += " file://defconfig"
>>
>> Where should the defconfig file be relative to the bbappend?
>>
>> I've tried:
>>
>> MyLayer
>> +--- recipies
>> +--- linux
>> +--- linux-wrs_git.bbappend
>> +--- linux-wrs_git
>> +--- defconfig
>>
>>
>> However, my defconfig file isn't being picked up during do_unpack:
>>
>> cp: cannot stat
>> `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/recipes-kernel/linux/files/defconfig':
>>
>> No such file or directory
>
> It looks like this is where the file is expected.
>
> I believe also meta/recipes-kernel/linux/linux/defconfig should also work.
Yep, bitbake is telling us where it is looking. The -wrs_git is the
extension to the recipe, so that isn't where it is looking.
On another note, there's been a lot of fixes to the kern tools to
improve the process for adding BSPs and extending the tree (and
one defconfig bug fix), so I'll be interested to hear how this
goes.
Bruce
>
> Scott
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-12 0:28 ` Bruce Ashfield
@ 2011-08-12 8:20 ` Chris Tapp
2011-08-12 12:59 ` Bruce Ashfield
0 siblings, 1 reply; 10+ messages in thread
From: Chris Tapp @ 2011-08-12 8:20 UTC (permalink / raw)
To: yocto
Scott / Bruce,
On 12 Aug 2011, at 00:57, Scott Garman wrote:
>
>> cp: cannot stat
>> `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/recipes-kernel/
>> linux/files/defconfig':
>> No such file or directory
>
> It looks like this is where the file is expected.
>
> I believe also meta/recipes-kernel/linux/linux/defconfig should also
> work.
I should have mentioned that ;-) As the bbappend file is in my layer,
I was expecting (and want) the defconfig file to be stored/found in
it. I created this layer by copying another one that I've got. It's
unpack log shows:
NOTE: Unpacking /home/chris/yocto/yocto-downloads/
git_git.pokylinux.org.linux-2.6-windriver.git.tar.gz to /home/chris/
yocto/sjs-build/tmp/work/LX800-poky-linux/linux-
wrs
-2.6.34
+
git0
+
b67e060194a38c6331da1532bd06446087a42b3b_0
+0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
NOTE: Unpacking /home/chris/yocto/meta-keylevel-sjs/recipes/linux/
linux-wrs/defconfig to /home/chris/yocto/sjs-build/tmp/work/LX800-poky-
linux/linux-
wrs
-2.6.34
+
git0
+
b67e060194a38c6331da1532bd06446087a42b3b_0
+0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
I suspect I've got something configured wrong with the new layer, but...
On 12 Aug 2011, at 01:28, Bruce Ashfield wrote:
>> I believe also meta/recipes-kernel/linux/linux/defconfig should
>> also work.
>
> Yep, bitbake is telling us where it is looking. The -wrs_git is the
> extension to the recipe, so that isn't where it is looking.
Sorry Bruce, that was a typo (see working log above for a layer that
works). I've tried using:
MyLayer/recipies/linux/defconfig
MyLayer/recipies/linux/files/defconfig (with no FILESEXTRAPATHS)
MyLayer/recipies/linux/linux-wrs/defconfig
> On another note, there's been a lot of fixes to the kern tools to
> improve the process for adding BSPs and extending the tree (and
> one defconfig bug fix), so I'll be interested to hear how this
> goes.
I'm planning to give it a try after the next release. I'm currently
just trying to migrate an existing (4.0.1) project to a new platform
and decided to add a new layer rather than change version at the same
time.
Chris Tapp
opensource@keylevel.com
www.keylevel.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-12 8:20 ` Chris Tapp
@ 2011-08-12 12:59 ` Bruce Ashfield
2011-08-12 19:48 ` Chris Tapp
0 siblings, 1 reply; 10+ messages in thread
From: Bruce Ashfield @ 2011-08-12 12:59 UTC (permalink / raw)
To: Chris Tapp; +Cc: yocto
On 11-08-12 04:20 AM, Chris Tapp wrote:
> Scott / Bruce,
>
>
> On 12 Aug 2011, at 00:57, Scott Garman wrote:
>
>>
>>> cp: cannot stat
>>> `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/recipes-kernel/linux/files/defconfig':
>>>
>>> No such file or directory
>>
>> It looks like this is where the file is expected.
>>
>> I believe also meta/recipes-kernel/linux/linux/defconfig should also
>> work.
>
> I should have mentioned that ;-) As the bbappend file is in my layer, I
> was expecting (and want) the defconfig file to be stored/found in it. I
> created this layer by copying another one that I've got. It's unpack log
> shows:
hah. For some reason that flew right over my head. Must be
the 500 email I read a day :)
>
> NOTE: Unpacking
> /home/chris/yocto/yocto-downloads/git_git.pokylinux.org.linux-2.6-windriver.git.tar.gz
> to
> /home/chris/yocto/sjs-build/tmp/work/LX800-poky-linux/linux-wrs-2.6.34+git0+b67e060194a38c6331da1532bd06446087a42b3b_0+0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
>
> NOTE: Unpacking
> /home/chris/yocto/meta-keylevel-sjs/recipes/linux/linux-wrs/defconfig to
> /home/chris/yocto/sjs-build/tmp/work/LX800-poky-linux/linux-wrs-2.6.34+git0+b67e060194a38c6331da1532bd06446087a42b3b_0+0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
>
That does look right!
>
> I suspect I've got something configured wrong with the new layer, but...
>
> On 12 Aug 2011, at 01:28, Bruce Ashfield wrote:
>
>>> I believe also meta/recipes-kernel/linux/linux/defconfig should also
>>> work.
>>
>> Yep, bitbake is telling us where it is looking. The -wrs_git is the
>> extension to the recipe, so that isn't where it is looking.
>
> Sorry Bruce, that was a typo (see working log above for a layer that
> works). I've tried using:
>
> MyLayer/recipies/linux/defconfig
> MyLayer/recipies/linux/files/defconfig (with no FILESEXTRAPATHS)
> MyLayer/recipies/linux/linux-wrs/defconfig
>
>> On another note, there's been a lot of fixes to the kern tools to
>> improve the process for adding BSPs and extending the tree (and
>> one defconfig bug fix), so I'll be interested to hear how this
>> goes.
>
> I'm planning to give it a try after the next release. I'm currently just
> trying to migrate an existing (4.0.1) project to a new platform and
> decided to add a new layer rather than change version at the same time.
Sounds good.
Bruce
>
> Chris Tapp
>
> opensource@keylevel.com
> www.keylevel.com
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-12 12:59 ` Bruce Ashfield
@ 2011-08-12 19:48 ` Chris Tapp
2011-08-17 16:32 ` Joshua Lock
0 siblings, 1 reply; 10+ messages in thread
From: Chris Tapp @ 2011-08-12 19:48 UTC (permalink / raw)
To: yocto
On 12 Aug 2011, at 13:59, Bruce Ashfield wrote:
>> NOTE: Unpacking
>> /home/chris/yocto/yocto-downloads/git_git.pokylinux.org.linux-2.6-
>> windriver.git.tar.gz
>> to
>> /home/chris/yocto/sjs-build/tmp/work/LX800-poky-linux/linux-
>> wrs
>> -2.6.34
>> +
>> git0
>> +
>> b67e060194a38c6331da1532bd06446087a42b3b_0
>> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
>>
>> NOTE: Unpacking
>> /home/chris/yocto/meta-keylevel-sjs/recipes/linux/linux-wrs/
>> defconfig to
>> /home/chris/yocto/sjs-build/tmp/work/LX800-poky-linux/linux-
>> wrs
>> -2.6.34
>> +
>> git0
>> +
>> b67e060194a38c6331da1532bd06446087a42b3b_0
>> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
>>
>
> That does look right!
What are the rules for naming layers?
I renamed the root for my new layer from 'meta-ebox-3300' to 'meta-
ebox3300', updated this in bblayers.conf and now my defconf file is
found as I was expecting...
It seems as if having -<numeric> at the end stops things working.
Chris Tapp
opensource@keylevel.com
www.keylevel.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-12 19:48 ` Chris Tapp
@ 2011-08-17 16:32 ` Joshua Lock
0 siblings, 0 replies; 10+ messages in thread
From: Joshua Lock @ 2011-08-17 16:32 UTC (permalink / raw)
To: yocto
On Fri, 2011-08-12 at 20:48 +0100, Chris Tapp wrote:
> On 12 Aug 2011, at 13:59, Bruce Ashfield wrote:
>
> >> NOTE: Unpacking
> >> /home/chris/yocto/yocto-downloads/git_git.pokylinux.org.linux-2.6-
> >> windriver.git.tar.gz
> >> to
> >> /home/chris/yocto/sjs-build/tmp/work/LX800-poky-linux/linux-
> >> wrs
> >> -2.6.34
> >> +
> >> git0
> >> +
> >> b67e060194a38c6331da1532bd06446087a42b3b_0
> >> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
> >>
> >> NOTE: Unpacking
> >> /home/chris/yocto/meta-keylevel-sjs/recipes/linux/linux-wrs/
> >> defconfig to
> >> /home/chris/yocto/sjs-build/tmp/work/LX800-poky-linux/linux-
> >> wrs
> >> -2.6.34
> >> +
> >> git0
> >> +
> >> b67e060194a38c6331da1532bd06446087a42b3b_0
> >> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
> >>
> >
> > That does look right!
>
> What are the rules for naming layers?
>
> I renamed the root for my new layer from 'meta-ebox-3300' to 'meta-
> ebox3300', updated this in bblayers.conf and now my defconf file is
> found as I was expecting...
>
> It seems as if having -<numeric> at the end stops things working.
This sounds like a bug so I filed it here:
http://bugzilla.yoctoproject.org/show_bug.cgi?id=1379
Regards,
Joshua
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-11 23:51 bbappend - Where should my file be? Chris Tapp
2011-08-11 23:57 ` Scott Garman
@ 2011-08-30 18:07 ` Richard Purdie
2011-08-31 19:33 ` Chris Tapp
1 sibling, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2011-08-30 18:07 UTC (permalink / raw)
To: Chris Tapp; +Cc: yocto
On Fri, 2011-08-12 at 00:51 +0100, Chris Tapp wrote:
> I've got a linux-wrs_git.bbappend file in a layer (under poky laverne
> 4.0.1) that contains:
>
> COMPATIBLE_MACHINE_Vortex86DX = "Vortex86DX"
> WRMACHINE_Vortex86DX = "common_pc"
>
> FILESEXTRAPATHS := "${THISDIR}/${PN}"
>
> SRC_URI += " file://defconfig"
>
> Where should the defconfig file be relative to the bbappend?
>
> I've tried:
>
> MyLayer
> +--- recipies
> +--- linux
> +--- linux-wrs_git.bbappend
> +--- linux-wrs_git
> +--- defconfig
>
>
> However, my defconfig file isn't being picked up during do_unpack:
>
> cp: cannot stat `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/
> recipes-kernel/linux/files/defconfig': No such file or directory
> NOTE: Unpacking /home/chris/yocto/yocto-downloads/
> git_git.pokylinux.org.linux-2.6-windriver.git.tar.gz to /home/chris/
> yocto/mbox-3300-build/tmp/work/Vortex86DX-poky-linux/linux-
> wrs
> -2.6.34
> +
> git0
> +
> b67e060194a38c6331da1532bd06446087a42b3b_0
> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
> NOTE: Unpacking /home/chris/yocto/yocto-versions/laverne-4.0.1/meta/
> recipes-kernel/linux/files/defconfig to /home/chris/yocto/mbox-3300-
> build/tmp/work/Vortex86DX-poky-linux/linux-
> wrs
> -2.6.34
> +
> git0
> +
> b67e060194a38c6331da1532bd06446087a42b3b_0
> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
> ERROR: Task failed:
>
> Which seems to show that it's not looking in FILESEXTRAPATHS.
>
> The .bbappend file seems to be processed, as commenting out the
> SRC_URI line gets rid of the error.
>
> What have I got wrong?
I've just been looking at the open bug related to this
(http://bugzilla.yoctoproject.org/show_bug.cgi?id=1379) and I can't
reproduce an issue with layers ending with -numeric causing a
problem :/.
In the above example,
recipies/linux/linux-wrs/defconfig
is the correct path since PN == "linux-wrs". (you had linux-wrs_git).
Could you check whether the layer numeric part is a red herring please
and whether the above path works?
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-30 18:07 ` Richard Purdie
@ 2011-08-31 19:33 ` Chris Tapp
2011-08-31 20:01 ` Richard Purdie
0 siblings, 1 reply; 10+ messages in thread
From: Chris Tapp @ 2011-08-31 19:33 UTC (permalink / raw)
To: Richard Purdie; +Cc: yocto
On 30 Aug 2011, at 19:07, Richard Purdie wrote:
> On Fri, 2011-08-12 at 00:51 +0100, Chris Tapp wrote:
>> I've got a linux-wrs_git.bbappend file in a layer (under poky laverne
>> 4.0.1) that contains:
>>
>> COMPATIBLE_MACHINE_Vortex86DX = "Vortex86DX"
>> WRMACHINE_Vortex86DX = "common_pc"
>>
>> FILESEXTRAPATHS := "${THISDIR}/${PN}"
>>
>> SRC_URI += " file://defconfig"
>>
>> Where should the defconfig file be relative to the bbappend?
>>
>> I've tried:
>>
>> MyLayer
>> +--- recipies
>> +--- linux
>> +--- linux-wrs_git.bbappend
>> +--- linux-wrs_git
>> +--- defconfig
>>
>>
>> However, my defconfig file isn't being picked up during do_unpack:
>>
>> cp: cannot stat `/home/chris/yocto/yocto-versions/laverne-4.0.1/meta/
>> recipes-kernel/linux/files/defconfig': No such file or directory
>> NOTE: Unpacking /home/chris/yocto/yocto-downloads/
>> git_git.pokylinux.org.linux-2.6-windriver.git.tar.gz to /home/chris/
>> yocto/mbox-3300-build/tmp/work/Vortex86DX-poky-linux/linux-
>> wrs
>> -2.6.34
>> +
>> git0
>> +
>> b67e060194a38c6331da1532bd06446087a42b3b_0
>> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
>> NOTE: Unpacking /home/chris/yocto/yocto-versions/laverne-4.0.1/meta/
>> recipes-kernel/linux/files/defconfig to /home/chris/yocto/mbox-3300-
>> build/tmp/work/Vortex86DX-poky-linux/linux-
>> wrs
>> -2.6.34
>> +
>> git0
>> +
>> b67e060194a38c6331da1532bd06446087a42b3b_0
>> +0431115c9d720fee5bb105f6a7411efb4f851d26-r12/
>> ERROR: Task failed:
>>
>> Which seems to show that it's not looking in FILESEXTRAPATHS.
>>
>> The .bbappend file seems to be processed, as commenting out the
>> SRC_URI line gets rid of the error.
>>
>> What have I got wrong?
>
> I've just been looking at the open bug related to this
> (http://bugzilla.yoctoproject.org/show_bug.cgi?id=1379) and I can't
> reproduce an issue with layers ending with -numeric causing a
> problem :/.
>
> In the above example,
>
> recipies/linux/linux-wrs/defconfig
>
> is the correct path since PN == "linux-wrs". (you had linux-wrs_git).
> Could you check whether the layer numeric part is a red herring please
> and whether the above path works?
Hi Richard,
Sorry for the delay in looking at this again.
I can't re-create the behaviour here either, though it was repeatable
before. However, since then I've made quite a few changes to the
recipe and done a complete re-build.
It was also failing with the correct paths - I was trying all sorts of
combinations when the correct one wasn't working!
I'll try and do some more testing here (with what I think the recipe
was at the time) to see if I can get it to show again. I've only got a
slow build machine, so it may take a while ;-)
Chris Tapp
opensource@keylevel.com
www.keylevel.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bbappend - Where should my file be?
2011-08-31 19:33 ` Chris Tapp
@ 2011-08-31 20:01 ` Richard Purdie
0 siblings, 0 replies; 10+ messages in thread
From: Richard Purdie @ 2011-08-31 20:01 UTC (permalink / raw)
To: Chris Tapp; +Cc: yocto
On Wed, 2011-08-31 at 20:33 +0100, Chris Tapp wrote:
> Sorry for the delay in looking at this again.
>
> I can't re-create the behaviour here either, though it was repeatable
> before. However, since then I've made quite a few changes to the
> recipe and done a complete re-build.
>
> It was also failing with the correct paths - I was trying all sorts of
> combinations when the correct one wasn't working!
>
> I'll try and do some more testing here (with what I think the recipe
> was at the time) to see if I can get it to show again. I've only got a
> slow build machine, so it may take a while ;-)
Ok, in the meantime I've resolved the bug as worksforme since we're
unable to reproduce. Please do open (or reopen) one if you can reproduce
the problem though, I'd be interested to get to the bottom of it.
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-08-31 20:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 23:51 bbappend - Where should my file be? Chris Tapp
2011-08-11 23:57 ` Scott Garman
2011-08-12 0:28 ` Bruce Ashfield
2011-08-12 8:20 ` Chris Tapp
2011-08-12 12:59 ` Bruce Ashfield
2011-08-12 19:48 ` Chris Tapp
2011-08-17 16:32 ` Joshua Lock
2011-08-30 18:07 ` Richard Purdie
2011-08-31 19:33 ` Chris Tapp
2011-08-31 20:01 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.