* File in append recipe not installed
@ 2015-03-12 20:58 p_j_r_m
2015-03-12 21:05 ` Gary Thomas
0 siblings, 1 reply; 8+ messages in thread
From: p_j_r_m @ 2015-03-12 20:58 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
Hello
I'd like to add an append recipe for base-files in order to install a custom fstab.
In my system I already have this base-files recipes:
layers/openembedded-core-1.4/meta/recipes-core/base-files/base-files_3.0.14.bb
layers/meta-montavista-1.4/recipes-core/base-files/base-files_3.0.14.bbappend
So I in my layer I have:
layers/meta-mylayer/recipes/base-files
├── base-files_3.0.14.bbappend
└── files
└── fstab
and I add this base-files_3.0.14.bbappend content:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
SRC_URI_append = "file://fstab"
do_install_append() {
echo "======= ${PN}-${PV} INSTALLING fstab ========"
install -m 644 ${WORKDIR}/fstab ${D}${sysconfdir}
}
but no matter how I put FILESEXTRAPATHS_prepend or how I name my bbappend when I build the recipe with bitbake base-files it never gets called and my fstab file is not installed.
If the original recipe is base-files_3.0.14.bb, why append is base-files_3.0.14.bbappend instead of base-files_3.bbappend only? How should i name and put FILESEXTRAPATHS
[-- Attachment #2: Type: text/html, Size: 2177 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File in append recipe not installed
2015-03-12 20:58 File in append recipe not installed p_j_r_m
@ 2015-03-12 21:05 ` Gary Thomas
2015-03-12 23:21 ` p_j_r_m
0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2015-03-12 21:05 UTC (permalink / raw)
To: yocto
On 2015-03-12 14:58, p_j_r_m wrote:
> Hello
>
> I'd like to add an append recipe for base-files in order to install a custom fstab.
>
> In my system I already have this base-files recipes:
>
> layers/openembedded-core-1.4/meta/recipes-core/base-files/base-files_3.0.14.bb
> layers/meta-montavista-1.4/recipes-core/base-files/base-files_3.0.14.bbappend
>
> So I in my layer I have:
>
> layers/meta-mylayer/recipes/base-files
> ├── base-files_3.0.14.bbappend
> └── files
> └── fstab
>
> and I add this base-files_3.0.14.bbappend content:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
>
> SRC_URI_append = "file://fstab"
>
> do_install_append() {
> echo "======= ${PN}-${PV} INSTALLING fstab ========"
> install -m 644 ${WORKDIR}/fstab ${D}${sysconfdir}
> }
>
> but no matter how I put FILESEXTRAPATHS_prepend or how I name my bbappend when I build the recipe with bitbake base-files it never gets called and my fstab file is not installed.
> If the original recipe is base-files_3.0.14.bb, why append is base-files_3.0.14.bbappend instead of base-files_3.bbappend only? How should i name and put FILESEXTRAPATHS
Instead of putting your fstab in 'files', put it in a directory
called 'base-files-3.0.14' which is where your FILESEXTRAPATHS
is looking.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File in append recipe not installed
2015-03-12 21:05 ` Gary Thomas
@ 2015-03-12 23:21 ` p_j_r_m
2015-03-13 0:01 ` Gary Thomas
0 siblings, 1 reply; 8+ messages in thread
From: p_j_r_m @ 2015-03-12 23:21 UTC (permalink / raw)
To: Gary Thomas, yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 2006 bytes --]
I've tested it, but the problem is the same.My bbappend recipe is not even called ,so it does not matter what i put in it. Why is not called?
El Jueves 12 de marzo de 2015 22:06, Gary Thomas <gary@mlbassoc.com> escribió:
On 2015-03-12 14:58, p_j_r_m wrote:
> Hello
>
> I'd like to add an append recipe for base-files in order to install a custom fstab.
>
> In my system I already have this base-files recipes:
>
> layers/openembedded-core-1.4/meta/recipes-core/base-files/base-files_3.0.14.bb
> layers/meta-montavista-1.4/recipes-core/base-files/base-files_3.0.14.bbappend
>
> So I in my layer I have:
>
> layers/meta-mylayer/recipes/base-files
> ├── base-files_3.0.14.bbappend
> └── files
> └── fstab
>
> and I add this base-files_3.0.14.bbappend content:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
>
> SRC_URI_append = "file://fstab"
>
> do_install_append() {
> echo "======= ${PN}-${PV} INSTALLING fstab ========"
> install -m 644 ${WORKDIR}/fstab ${D}${sysconfdir}
> }
>
> but no matter how I put FILESEXTRAPATHS_prepend or how I name my bbappend when I build the recipe with bitbake base-files it never gets called and my fstab file is not installed.
> If the original recipe is base-files_3.0.14.bb, why append is base-files_3.0.14.bbappend instead of base-files_3.bbappend only? How should i name and put FILESEXTRAPATHS
Instead of putting your fstab in 'files', put it in a directory
called 'base-files-3.0.14' which is where your FILESEXTRAPATHS
is looking.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
[-- Attachment #2: Type: text/html, Size: 3989 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File in append recipe not installed
2015-03-12 23:21 ` p_j_r_m
@ 2015-03-13 0:01 ` Gary Thomas
2015-03-13 8:17 ` Paul Eggleton
0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2015-03-13 0:01 UTC (permalink / raw)
To: p_j_r_m, yocto@yoctoproject.org
On 2015-03-12 17:21, p_j_r_m wrote:
> I've tested it, but the problem is the same.
> My bbappend recipe is not even called ,so it does not matter what i put in it. Why is not called?
Please don't top-post :-(
How do you know that your bbappend isn't being used/called? If you name it
incorrectly, e.g. base-files_3.0.99.bbappend, you should get an error telling
you that there is no base-files_3.0.99.bb which matches. Hence if it's named
base-files_3.0.14.bbappend and you get no error, it *is* being used.
Please show exactly what is now in your layer (as below). It's really easy
to make a mistake with a '_' instead of '-'.
>
>
> El Jueves 12 de marzo de 2015 22:06, Gary Thomas <gary@mlbassoc.com> escribió:
>
>
> On 2015-03-12 14:58, p_j_r_m wrote:
>
>> Hello
>>
>> I'd like to add an append recipe for base-files in order to install a custom fstab.
>>
>> In my system I already have this base-files recipes:
>>
>> layers/openembedded-core-1.4/meta/recipes-core/base-files/base-files_3.0.14.bb
>> layers/meta-montavista-1.4/recipes-core/base-files/base-files_3.0.14.bbappend
>>
>> So I in my layer I have:
>>
>> layers/meta-mylayer/recipes/base-files
>> ├── base-files_3.0.14.bbappend
>> └── files
>> └── fstab
>>
>> and I add this base-files_3.0.14.bbappend content:
>>
>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
>>
>> SRC_URI_append = "file://fstab"
>>
>> do_install_append() {
>> echo "======= ${PN}-${PV} INSTALLING fstab ========"
>> install -m 644 ${WORKDIR}/fstab ${D}${sysconfdir}
>> }
>>
>> but no matter how I put FILESEXTRAPATHS_prepend or how I name my bbappend when I build the recipe with bitbake base-files it never gets called and my fstab file is not installed.
>> If the original recipe is base-files_3.0.14.bb, why append is base-files_3.0.14.bbappend instead of base-files_3.bbappend only? How should i name and put FILESEXTRAPATHS
>
>
> Instead of putting your fstab in 'files', put it in a directory
> called 'base-files-3.0.14' which is where your FILESEXTRAPATHS
> is looking.
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* File in append recipe not installed
@ 2015-03-13 7:28 p_j_r_m
0 siblings, 0 replies; 8+ messages in thread
From: p_j_r_m @ 2015-03-13 7:28 UTC (permalink / raw)
To: yocto@yoctoproject.org
Thanks Gary.
I think is not called because I have echo lines in do_install_append() and they don't appear when bitbake -v is used after the recipe is cleaned and rebuilt.
This is my layer:
releases/meta-mylayer
├── conf
│ └── layer.conf
├── README
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File in append recipe not installed
2015-03-13 0:01 ` Gary Thomas
@ 2015-03-13 8:17 ` Paul Eggleton
2015-03-13 23:16 ` p_j_r_m
0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2015-03-13 8:17 UTC (permalink / raw)
To: p_j_r_m; +Cc: yocto, Gary Thomas
On Thursday 12 March 2015 18:01:16 Gary Thomas wrote:
> On 2015-03-12 17:21, p_j_r_m wrote:
> > I've tested it, but the problem is the same.
> > My bbappend recipe is not even called ,so it does not matter what i put in
> > it. Why is not called?
>
> Please don't top-post :-(
>
> How do you know that your bbappend isn't being used/called? If you name it
> incorrectly, e.g. base-files_3.0.99.bbappend, you should get an error
> telling you that there is no base-files_3.0.99.bb which matches. Hence if
> it's named base-files_3.0.14.bbappend and you get no error, it *is* being
> used.
>
> Please show exactly what is now in your layer (as below). It's really easy
> to make a mistake with a '_' instead of '-'.
Also, one way to tell for sure whether it is being parsed is to use:
bitbake-layers show-appends
If it's not listed there, check that the layer shows up in:
bitbake-layers show-layers
If the layer doesn't show there, check if it has been correctly added to
bblayers.conf. If it is, check that your layer.conf is setting BBFILES such
that bbappends in the directory you placed the bbappend in will be picked up.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File in append recipe not installed
2015-03-13 8:17 ` Paul Eggleton
@ 2015-03-13 23:16 ` p_j_r_m
2015-03-14 11:27 ` Paul Eggleton
0 siblings, 1 reply; 8+ messages in thread
From: p_j_r_m @ 2015-03-13 23:16 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto@yoctoproject.org, Gary Thomas
[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]
Thanks for your suggestionsThe problem was that my recipe files were taken from sstate directories, even when they were previously cleaned with bitbake -c clean. If I use -c cleansstate instead, all is ok .
El Viernes 13 de marzo de 2015 9:17, Paul Eggleton <paul.eggleton@linux.intel.com> escribió:
On Thursday 12 March 2015 18:01:16 Gary Thomas wrote:
> On 2015-03-12 17:21, p_j_r_m wrote:
> > I've tested it, but the problem is the same.
> > My bbappend recipe is not even called ,so it does not matter what i put in
> > it. Why is not called?
>
> Please don't top-post :-(
>
> How do you know that your bbappend isn't being used/called? If you name it
> incorrectly, e.g. base-files_3.0.99.bbappend, you should get an error
> telling you that there is no base-files_3.0.99.bb which matches. Hence if
> it's named base-files_3.0.14.bbappend and you get no error, it *is* being
> used.
>
> Please show exactly what is now in your layer (as below). It's really easy
> to make a mistake with a '_' instead of '-'.
Also, one way to tell for sure whether it is being parsed is to use:
bitbake-layers show-appends
If it's not listed there, check that the layer shows up in:
bitbake-layers show-layers
If the layer doesn't show there, check if it has been correctly added to
bblayers.conf. If it is, check that your layer.conf is setting BBFILES such
that bbappends in the directory you placed the bbappend in will be picked up.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 3232 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File in append recipe not installed
2015-03-13 23:16 ` p_j_r_m
@ 2015-03-14 11:27 ` Paul Eggleton
0 siblings, 0 replies; 8+ messages in thread
From: Paul Eggleton @ 2015-03-14 11:27 UTC (permalink / raw)
To: p_j_r_m; +Cc: yocto, Gary Thomas
On Friday 13 March 2015 23:16:30 p_j_r_m wrote:
> Thanks for your suggestionsThe problem was that my recipe files were taken
> from sstate directories, even when they were previously cleaned with
> bitbake -c clean. If I use -c cleansstate instead, all is ok .
AFAIK the task signatures will incorporate the values of all of the things
your bbappend is setting, so this doesn't really account for the behaviour you
are describing. Can you reproduce the issue?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-14 11:27 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 20:58 File in append recipe not installed p_j_r_m
2015-03-12 21:05 ` Gary Thomas
2015-03-12 23:21 ` p_j_r_m
2015-03-13 0:01 ` Gary Thomas
2015-03-13 8:17 ` Paul Eggleton
2015-03-13 23:16 ` p_j_r_m
2015-03-14 11:27 ` Paul Eggleton
-- strict thread matches above, loose matches on Subject: below --
2015-03-13 7:28 p_j_r_m
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.