Skip to contentSkip to conversation

require *.bbappend

DISCUSSION Andreas Müller 2 participants 3 messages Dec 17, 2011 – Dec 19, 2011

lore
Share & tools
lore
#0 lore raw

Hi

I have the following use case:

In my working layer I would like to have a recipe adding functionality to a recipe from another layer (e.g systemd-image.bb from angstrom) with a different name ( -> no bbappend ). How about

* create systemd-image.bbapend with just 'FILESEXTRAPATHS := "${THISDIR}"' to get it into the scope of my layer
* create a recipe which contains 'require systemd-image.bbappend'

Currently parser complains that systemd-image.bbappend is not a BitBake file.

Would a modification be possible or is there another way to solve?

Andreas

#1 lore raw
Quoted 8 lines · Andreas Müller

Hi

I have the following use case:

In my working layer I would like to have a recipe adding functionality to a recipe from another layer (e.g systemd-image.bb from angstrom) with a different name ( -> no bbappend ). How about

Quoted 5 lines

* create systemd-image.bbapend with just 'FILESEXTRAPATHS := "${THISDIR}"' to get it into the scope of my layer
* create a recipe which contains 'require systemd-image.bbappend'

Currently parser complains that systemd-image.bbappend is not a BitBake file.

I think this should work and the issue you're seeing is that require wants a relative PATH from BBPATH.

i.e. require recipes-images/angstrom/systemd-image.bb

Cheers,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre
#2 lore raw
Quoted 13 lines · Joshua Lock
Quoted 12 lines · Andreas Müller

Hi

I have the following use case:

In my working layer I would like to have a recipe adding functionality to a recipe from another layer (e.g systemd-image.bb from angstrom) with a different name ( -> no bbappend ). How about

* create systemd-image.bbapend with just 'FILESEXTRAPATHS := "${THISDIR}"' to get it into the scope of my layer
* create a recipe which contains 'require systemd-image.bbappend'

Quoted 8 lines
Quoted 2 lines

Currently parser complains that systemd-image.bbappend is not a BitBake file.

I think this should work and the issue you're seeing is that require wants a relative PATH from BBPATH.

i.e. require recipes-images/angstrom/systemd-image.bb

AArgh - thanks for helping me out of quirks by such simple solution :)

Andreas