On Mon, 2021-01-04 at 13:07 +0000, Diego Sueiro wrote: > > From: Richard Purdie <[email protected]> > > I think you are reading more into that manual section than is > > intended. > > For files on the general filesystem, the sysroot is definitely the > > way to share > > between recipes. For files that are not within the filesystem, I > > think deploy is > > more appropriate. We could improve the docs to mention that. > > > > As such I don't really want to add a mechanism where we confuse > > those lines > > if we can help it and I am reluctant to take the patch. do_deploy > > was designed > > for these cases. > > > For some arm based machines we end up generating loads of > intermediate binaries > which will be further processed and combined as standalone images, > for example. > I think doesn't make sense to have them in the deploy dir since it > will make it > polluted and I do much prefer to have a tidy deploy dir with only > artifacts for > flashing/update the target, rather than a list of useless artifacts > that can't be used > directly. > > And I do agree with you that using the SYSROOT_DIRS for this purpose > might lead > to confusion. Is it plausible to come up with a new variable and > do_populate related > tasks to address use cases like the one I described?
Not wanting to pollute DEPLOY_DIR_IMAGE with unneeded files is a sensible thing to want to do. I'm wondering if we could use the deploy code but point it at some different output directory? The code for "do_deploy" is much simpler than populate_sysroot and prepare_recipe_sysroot so I'd look at deploy.bbclass, its actually really simple. In theory you could change do_deploy[sstate-outputdirs] and it would place files in a different location. We'd just need to figure out a good name for that alternative location... Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#146353): https://lists.openembedded.org/g/openembedded-core/message/146353 Mute This Topic: https://lists.openembedded.org/mt/79420282/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
