[OE-core] [PATCH 3/4] bitbake.conf: Introduce variables used to access the other recipe specific sysroot directory in multilib case

Richard Purdie richard.purdie at linuxfoundation.org
Mon Oct 1 14:30:33 UTC 2018


On Sat, 2018-09-29 at 15:01 +0800, Kevin Hao wrote:
> When multilib is enabled, there would be two different recipe
> specific
> sysroot directories:
>   libxx-recipe-sysroot
>   recipe-sysroot
> 
> We do need to access the files under the "recipe-sysroot" directory
> in some cases. So introduces these variables for this purpose.
> 
> Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
> ---
>  meta/conf/bitbake.conf  | 4 ++++
>  meta/conf/multilib.conf | 1 +
>  2 files changed, 5 insertions(+)

This doesn't look like a good idea to me. With multilib its very easy
just to add in special case options and make it do the right thing
until something else needs 'fixing'. What is harder but works out
better in the long run is to figure out the real underlying problem and
the solution. This patch adds datadir but paves the way to add all the
other *dir variants.

Also, the name "RECIPE_ALT_SYSROOT" is horrible, its near impossible to
know what "ALT" means. Alternative to what?

So whilst I understand what this is trying to do, we need to come up
with a better way, sorry. I've tried thinking how to do it differently
but don't have a proposal right now, sorry.

Cheers,

Richard



More information about the Openembedded-core mailing list