[yocto] Building kernel backports for ARM with Yocto

Khem Raj raj.khem at gmail.com
Mon Oct 23 11:11:02 PDT 2017


On Mon, Oct 23, 2017 at 11:07 AM, Marlon Smith <marlon.smith10 at gmail.com> wrote:
> Khem, with a couple of modifications I was able to get this script working
> perfectly and installing the modules into the system automatically.  Thanks
> a lot!
>
> If you or anyone else would like a copy of the modified bitbake file I'd be
> happy to share it.

Please contribute it back to meta-openembedded or meta-himvis
(https://github.com/kraj/meta-himvis)

>
> On Thu, 2017-10-19 at 14:18 -0700, Khem Raj wrote:
>
> On Thu, Oct 19, 2017 at 12:38 PM, Marlon Smith <marlon.smith10 at gmail.com>
> wrote:
>
> On Wed, 2017-10-18 at 22:50 -0700, Khem Raj wrote:
>
> On Wed, Oct 18, 2017 at 3:13 PM, Marlon Smith <marlon.smith10 at gmail.c
> om> wrote:
>
>
> Hi everyone,
>
> 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.
>
> 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:
>
>  %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
>
>
> I believe what I need is an equivalent to the line export
> PATH=$UNSPOOF_PATH
> but I can't find anything in the Yocto documentation or mailing
> lists that
> would be equivalent to that.
>
>
> Any help would be much appreciated!
>
> You might try this out
>
> https://github.com/kraj/meta-himvis/blob/master/recipes-kernel/linux-
> backports/linux-backports_4.14-rc4.bb
>
> it does not work out of box but with few fixes here and there it
> should work
>
>
> It looks like that recipe inherits backports_module and kernel-
> backports_module-split.. do I need those files as well?
>
>
>
> backports_module is merged into recipe itsellf. Other one can be
> replaced with inehrtiting
> module bbclasss
>
>
>
>
>
>
>
>
> Thanks
>
>
> Marlon
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list