AnsweredAssumed Answered

Can't compile custom Kernel without patch or bbapend

Question asked by lucaschettini on Apr 27, 2018
Latest reply on May 1, 2018 by gusarambula

Hi,

 

we have a custom board based on iMX6Sx.
We pulled from official git and crate our branch (on our git server) of 4.9.11-1.0.0 kernel and crate a meta-custom meta layer.
We added to the ./fsl-release-bsp/source/ folder:

meta-custom/

meta-custom/conf/
meta-custom/conf/layer.conf
meta-custom/conf/machine
meta-custom/conf/machine/ourmachine.conf

meta-custom/recipes-bsp/
meta-custom/recipes-bsp/u-boot/
meta-custom/recipes-bsp/u-boot/u-boot-ourmachine_2017.03.bb

meta-custom/recipes-kernel/
meta-custom/recipes-kernel/linux/
meta-custom/recipes-kernel/linux/linux-ourmachine_4.9.11.bb
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/defconfig

meta-custom/recipes-custom/
meta-custom/recipes-custom/images/
meta-custom/recipes-custom/images/ourmachine-image-develop.bb
meta-custom/recipes-custom/images/ourmachine-image-minimal.bb

 

We configure the build folder with:

 

DISTRO=fsl-imx-x11 MACHINE=ourmachine source fsl-setup-release.sh -b ./build

 

I've attached the ourmachine.conf / uboot bb / kernel bb / images

 

Now I want to bitabke the image and the kernel. I've start with bitbake linux-ourmachine but this fetch and compile the linux-imx recipes, and during do_compile, linux-imx obviously broke with:
ERROR: Task (/home/user/fsl-release-bsp/source/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_compile) failed with exit code '1'
make[3]: *** No rule to make target 'arch/arm/boot/dts/ourmachine.dtb'. Stop.

 

In the imx-kernel our dts do not exist, but exist in our kernel!
Whatever I run bitbake, the linux-imx recipe is always executed, even when is not expected, and it crashes with the same error.

 

What I forgot to do? How can I compile my image and my kernel?

 

Thank you in advance and have a nice day

L.

 

BB_Version 1.32.0
Yocto Morty
Build System Ubuntu 14.04 x64

Outcomes