Re: How does one add do_fetch, do_unpack to an image recipe?
John Klug
Thanks for your great help. A native recipe is what I needed with data in it only. So my native recipe copies files into ${D}${datadir}/${PN}.
Then my image build uses DEPENDS= to bring in the native recipe. Then my IMAGE_POSTPROCESS_COMMAND can reference ${STAGING_DATADIR_NATIVE}/[native recipe name] to find the data it needs. Then I don't need to patch the bbclass file. From: yocto@... <yocto@...> on behalf of Josef Holzmayr <jester@...> Sent: Monday, August 9, 2021 12:41 AM To: yocto@... Subject: Re: [yocto] How does one add do_fetch, do_unpack to an image recipe? Howdy! Am 07.08.2021 um 02:25 schrieb John Klug: I am using dunfell.From first glance, I'd guess that the approach is just not correct. If that thing to be fetched also needs to go *into* the image: make it a recipe on its own. If you only need it during build time, then it should probably be a -native dependency, and therefore again a recipe on its own. Then the image recipe can depend on it and use its contents during the build/postprocess stage. Greetz
|
|