Has anyone tried to create private layer to compile bsp?

cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone tried to create private layer to compile bsp?

347 Views
chenwen
Contributor I

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?

0 Kudos
2 Replies

106 Views
art
NXP TechSupport
NXP TechSupport

Please refer to attached document for detailed information on how to customize the release BSPs by NXP.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

106 Views
chenwen
Contributor I

Addition:

I have tried to overload do_compile in u-boot-mylayer.bb like this:

do_compile() {

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"  

}

And the error also happens. I'm confused.

0 Kudos