On Fri, 2020-07-24 at 07:26 +0200, Jens Rehsack wrote:
> Instead of recognizing only environment-setup scripts in
> ${STAGING_DIR_TARGET} or ${STAGING_DIR_NATIVE}, respectively - lurk also into
> ${SDKPATH}/buildtools/sysroots/${SDK_SYS} where nativesdk-openssl installs
> setup files.
>
> Signed-off-by: Jens Rehsack <[email protected]>
> ---
> meta/classes/toolchain-scripts.bbclass | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/toolchain-scripts.bbclass
> b/meta/classes/toolchain-scripts.bbclass
> index db1d3215ef..e3959e21e8 100644
> --- a/meta/classes/toolchain-scripts.bbclass
> +++ b/meta/classes/toolchain-scripts.bbclass
> @@ -119,6 +119,11 @@ if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ];
> then
> . \$envfile
> done
> fi
> +if [ -d "${SDKPATH}/buildtools/sysroots/${SDK_SYS}/environment-setup.d" ];
> then
> + for envfile in
> ${SDKPATH}/buildtools/sysroots/${SDK_SYS}/environment-setup.d/*.sh; do
> + . \$envfile
> + done
> +fi
> EOF
> }
I finally got around to looking at this, sorry about the delay. Whilst
this fixes the issue and doesn't harm anything, I think its incorrect.
I suspect that $OECORE_NATIVE_SYSROOT should be pointing at
${SDKPATH}/buildtools/sysroots/${SDK_SYS}.
Could you see where $OECORE_NATIVE_SYSROOT is pointing and see if we
perhaps can't fix that instead?
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#141005):
https://lists.openembedded.org/g/openembedded-core/message/141005
Mute This Topic: https://lists.openembedded.org/mt/75761296/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-