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
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to