<html><head></head><body><div>Hi everyone,</div><div><br></div><div>I'm trying to build the Linux backports project to get updated wifi drivers on an older kernel. The problem is that when building backports, it first builds several tools that need to be run natively before cross-compiling the rest of the project.</div><div><br></div><div>I know how to write a bitbake recipe to compile natively, and how to write one to build for the target, but I can't figure out how to combine the two. The backports project has steps for LTIB:</div><div><br></div><div><pre> %Build
export PATH=$UNSPOOF_PATH
make menuconfig prefix=%{_prefix} \
CROSS_COMPILE=${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX} \
ARCH=$LINTARCH KLIB=${TOP}/rootfs/lib/modules/%{kversion} \
KLIB_BUILD=${TOP}/rpm/BUILD/linux
export PATH=$SPOOF_PATH
make prefix=%{_prefix} \
CROSS_COMPILE=${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX} \
ARCH=$LINTARCH KLIB=${TOP}/rootfs/lib/modules/%{kversion} \
KLIB_BUILD=${TOP}/rpm/BUILD/linux</pre><pre><br></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;">I believe what I need is an equivalent to the line </span>export PATH=$UNSPOOF_PATH<span style="font-family: Cantarell; font-size: 15px; white-space: normal;"> but I can't find anything in the Yocto documentation or mailing lists that would be equivalent to that.</span></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;"><br></span></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;">Any help would be much appreciated!</span></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;"><br></span></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;">Thanks</span></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;"><br></span></pre><pre><span style="font-family: Cantarell; font-size: 15px; white-space: normal;">Marlon</span></pre></div></body></html>