[yocto] Help needed add own variable to toolchain environment
Johann Obermayr
johann.obermayr at sigmatek.at
Thu Oct 17 05:07:28 PDT 2019
Hello,
i have trouble to add a own variable to the toolchain environment
I see that environment-setup-i586-poky-linx script calls all files in sysroot/<dir>/environment-setup.d/*
But what is the simples and correct way to add follow line (export KSRC...)
do_something() {
mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
script=${D}${SDKPATHNATIVE}/environment-setup.d/sigmatek.sh
echo '# own environment settings' > $script
echo 'export KSRC="${OECORE_NATIVE_SYSROOT}/lib/modules/${KERNEL_VERSION}/build"' >> $script
}
Is the best way for create a new bb file.
Thanks
Johann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191017/49682467/attachment-0001.html>
More information about the yocto
mailing list