<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I'm currently playing with Yocto 1.4, and I have few questions about generated SDKs.<br><br></div>1/ The sysroot seems to be hardcoded in binaries, for instance:<br>
$ /opt/poky/1.4.2/sysroots/x86_64-pokysdk-linux/usr/bin/armv6-vfp-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --print-sysroot<br>/opt/poky/1.4.2/sysroots/armv6-vfp-poky-linux-gnueabi<br><br>$ ./<a href="http://poky-eglibc-x86_64-arm-toolchain-1.4.1.sh">poky-eglibc-x86_64-arm-toolchain-1.4.1.sh</a><br>
Enter target directory for SDK (default: /opt/poky/1.4.2): /tmp/pokysdk <br>You are about to install the SDK to "/tmp/pokysdk". Proceed[Y/n]?<br>Extracting SDK...done<br>Setting it up...done<br>SDK has been successfully set up and is ready to be used.<br>
$ /tmp/pokysdk/sysroots/x86_64-pokysdk-linux/usr/bin/armv6-vfp-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --print-sysroot<br>/opt/poky/1.4.2/sysroots/armv6-vfp-poky-linux-gnueabi<br><br></div>There is a 'relocate_sdk.py', is it meant to replace this path (it does look like it) ?<br>
</div>It's replacing some lib-related paths, but the sysroot is kept intact, enforcing the use of --sysroot to use the toolchain.<br><br></div><div>Did I miss something ?<br></div><div><br></div>2/ I'm using the 'poky' distribution, which specifies the SDKPATH (in meta-yocto/conf/distro/poky.conf ) as "/opt/${DISTRO}/${SDK_VERSION}".<br>
</div>Is there a way to override this without making a new distribution inheriting 'poky' ?<br><br></div>I tried to make a new toolchain recipe based on meta-toolchain, and set the value there, but only a small part of the toolchain ends up in that directory (gcc for instance, is compiled with the value set in the poky.conf ).<br>
<br></div>Thanks!<br></div>Bertrand<br><div><div><br><br><div><div><div><div><br><br></div></div></div></div></div></div></div>