AnsweredAssumed Answered

Has anyone tried to create private layer to compile bsp?

Question asked by Chen Wen on Mar 21, 2016
Latest reply on Mar 25, 2016 by Artur Petukhov

Hello everyone,

 

Has anyone tried to create private layer to compile bsp based on fsl-release-bsp package?

 

In my progress, I tried to create my layer to compile private uboot and kernel. But we get some errors.

 

When compiling uboot using "bitbake -c compile u-boot-mylayer", we get below error:

| arm-poky-linux-gnueabi-gcc  --sysroot=/home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/myboard -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x17800000 -I/home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/work/myboard-poky-linux-gnueabi/u-boot-mylayer/2009.08-r0/git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/i686-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a   -Wall -Wstrict-prototypes -fno-stack-protector   -o hello_world.o hello_world.c -c
| In file included from /home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/myboard/usr/include/features.h:389:0,
|                  from /home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/myboard/usr/include/stdio.h:27,
|                  from envcrc.c:24:
| /home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/myboard/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
|  # include <gnu/stubs-soft.h>
|                              ^
| compilation terminated.
| make[1]: *** [envcrc.o] Error 1
| make[1]: Leaving directory `/home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/work/myboard-poky-linux-gnueabi/u-boot-mylayer/2009.08-r0/git/tools'
| make: *** [tools] Error 2
| make: *** Waiting for unfinished jobs....

 

And we tried to compile u-boot using the arm-poky-linux-gnueabi- compiling tools. We can get success.

standalone compiling command:

$ make ARCH=arm CROOS_COMPILE=arm-poky-linux-gnueabi- CC="arm-poky-linux-gnueabi-gcc  --sysroot=/home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/myboard"  mx6solo_myboard_nand_config 
$ make ARCH=arm CROOS_COMPILE=arm-poky-linux-gnueabi- CC="arm-poky-linux-gnueabi-gcc  --sysroot=/home/liuyanling/workspace/fsl-release-bsp/build-myboard/tmp/sysroots/myboard" 

 

Does anyone have any ideas?

Outcomes