build own linux kernel fails

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

build own linux kernel fails

906 Views
floriankoenig
Contributor II

hi,

i try to build a linux kernel from my own sources. I created a kernel.bb file in mylayer/recipes-kernel/linux/   created a directory mylayer/recipes-kernel/linux/files  where i put the kernel.zip file ,the defconfig file and the Fix-the-compile-issue-under-gcc6.patch.  

Inside the kernel.bb file i put 

SRC_URI = "file://kernel.zip file://Fix-the-compile-issue-under-gcc6.patch  file://defconfig"

S = "${WORKDIR}/my-unpacked-kernel-dir-name"

B = "${WORKDIR}/build"

SCMVERSION = "n"

COMPATIBLE_MACHINE = "(mx6)"

But when i run bitbake virtual/kernel it returns:

recipe for target 'kernel/timeconst.h' failed

recipe for target "kernel" failed

what do i miss ?

Labels (3)
0 Kudos
1 Reply

675 Views
gusarambula
NXP TechSupport
NXP TechSupport

Helo Florian Koenig,

Did you add your new layer to the bblayers.conf list and can you see the new kernel recipe on bitbake? The reason why I’m asking is that it’s possible that there are problems with who provides the kernel on your environment. If bitbake can see the recipe, have you tried baking it directly?

Regards,

0 Kudos