[yocto] puzzle: simple recipe gets image dependencies
Khem Raj
raj.khem at gmail.com
Wed Nov 13 08:53:48 PST 2019
On Wed, 2019-11-13 at 12:33 +0100, Vladimir Molokov wrote:
> 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 \
>
> meta-puzzle/recipes-example/example/bad-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"' >> \
>
> meta-puzzle/recipes-example/example/example_0.1.bb
>
>
>
> 9. bitbake -g example && grep bad-example task-depends.dot
can you share this dot file ?
>
> 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.
>
>
>
> BR,
>
> Vladimir.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191113/0a0abbcd/attachment.html>
More information about the yocto
mailing list