On Fri, Aug 21, 2020 at 8:30 AM Damien LEFEVRE wrote:
>
> Hi,
>
> I would need that to change the default location for the SDK install script
> to avoid mistakes with multiple SDKs and ease installations. How can I change
> the SDKPATH?
>
> My distro includes conf/distro/poky.conf and I overwrite
> SDKPATH =
> "/opt/${IMAGE_BASENAME}-${SDK_VERSION}-${DISTRO_CODENAME}-${MACHINE}"
You can't include IMAGE_BASENAME in SDKPATH because it's not known at
the time recipe are built; it's only defined when the final image is
created. I'm guessing that's the source of your error.
For reference, we do:
SDKPATH = "/opt/toolchains/${DISTRO}-${MACHINE}/${SDK_VERSION}"
and it works fine.
>
> If I set SDKPATH to something other than /opt/${DISTRO}/${SDK_VERSION} ,
> nativesdk-libgcc-initial fails some sanity test:
> ...
> checking how to run the C preprocessor... x86_64-pokysdk-linux-gcc -E
> --sysroot=/data/yocto/zeus/build-jetson-xavier/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc-initial/7.3.0-r0/recipe-sysroot
> configure: error: in
> `/data/yocto/zeus/build-jetson-xavier/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc-initial/7.3.0-r0/gcc-7.3.0/build.x86_64-pokysdk-linux.x86_64-pokysdk-linux/libgcc':
> configure: error: C preprocessor "x86_64-pokysdk-linux-gcc -E
> --sysroot=/data/yocto/zeus/build-jetson-xavier/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc-initial/7.3.0-r0/recipe-sysroot
> " fails sanity check
> See `config.log' for more details.
> WARNING: exit code 1 from a shell command.
> ...
>
> Thanks,
> -Damien
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50315): https://lists.yoctoproject.org/g/yocto/message/50315
Mute This Topic: https://lists.yoctoproject.org/mt/76328600/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-