]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk_ext: Fix handling of TOOLCHAIN_HOST_TASK in the eSDK case
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Aug 2021 13:04:15 +0000 (14:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Aug 2021 13:04:18 +0000 (14:04 +0100)
commit30912ba084aa8600156edddbe4f2db0b85e869d0
treea0d70394b5c47804c226131eed8d944537cfa9ff
parent9150933dc524b6cedc42b063b7a2092e202f3672
populate_sdk_ext: Fix handling of TOOLCHAIN_HOST_TASK in the eSDK case

The current way TOOLCHAIN_HOST_TASK is handled within eSDK builds is
causing much confusion, even to people who should understand the code.

For a normal SDK, some layers append to TOOLCHAIN_HOST_TASK unconditionally
which is fine, until the eSDK tries to override the variable to it's own
values. It does not support or use packages installed using this variable
and would use native recipes instead, it is a very different approach.

In the referenced bug, binaries are added but not relocated leading to
confusing errors.

To fix this, add a new variables for the eSDK TOOLCHAIN_HOST_TASK
to be explict and force the eSDK code to use this instead. The setVar
in non-parsing context will clear out any appends resolving the current
issues. The patch also gets rid of some dubious task override use.

[YCOTO #14047]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass