Hi all,

Here is a strange dependency puzzle:
simple recipe which doesn't inherit image class
gets EXTRA-IMAGEDENDS, kernel, initramfs and so on.

It's reproducible on latest poky,
I've made a minimal example, all lines are important,
if you remove something, like systemd or attr
it drops all the dependencies
though I didn't find anything wrong in systemd nor in attr recipes.

Steps to reproduce:

1. mkdir puzzle && cd puzzle
1. git clone git://git.yoctoproject.org/poky
2. source poky/oe-init-build-env
3. bitbake-layers create-layer meta-puzzle
4. bitbake-layers add-layer meta-puzzle
5. cp meta-puzzle/recipes-example/example/example_0.1.bb \

6. mkdir -p meta-puzzle/conf/distro

7. printf "require conf/distro/poky.conf\n\n\
DISTRO = \"extra-img-dep-test\" \n\
DISTRO_NAME = \"Extra image dependency test\"\n\
DISTRO_VERSION = \"0.1\"\n\n\
DISTRO_FEATURES_append = \"systemd\"\n"\
> meta-puzzle/conf/distro/extra-img-dep-test.conf

7. printf "MACHINE ?= \"qemux86\"\n\
DISTRO ?= \"extra-img-dep-test\"\n\n\
EXTRA_IMAGEDEPENDS += \"bad-example\"\n\n\
INITRAMFS_IMAGE = \"core-image-minimal\"\n"\
> conf/local.conf

8. echo 'DEPENDS = "attr"' >> \

9. bitbake -g example && grep bad-example task-depends.dot

10. see dependencies on 'bad-example'..

Will be very grateful if anybody point out
what is wrong with this setup.

I've talked with people struggling with similar problem
and nobody was able to solve it so far
and I myself stumbled in it in a couple of projects.

yocto mailing list

Reply via email to