ipc-shm add "sample_user" report error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ipc-shm add "sample_user" report error

576 次查看
liujialu_2024
Contributor III

bsp41.0(s32g274ardb2)

modify the below file, add app: sample_user

fsl-auto-yocto-bsp-41.0/sources/meta-alb/recipes-kernel/ipc-shm/ipc-shm.bb

-DEMO_IPCF_APPS ?= "sample sample_multi_instance"

+DEMO_IPCF_APPS ?= "sample sample_multi_instance sample_user"

then 

$ bitbake ipc-shm

...

| make[1]: Entering directory '/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/ipc-shm/1.0-r0/git/sample_user'
| Makefile:64: warning: undefined variable 'PLATFORM'
| Building app file: sample.c
| aarch64-fsl-linux-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/ipc-shm/1.0-r0=/usr/src/debug/ipc-shm/1.0-r0 -fdebug-prefix-map=/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/ipc-shm/1.0-r0=/usr/src/debug/ipc-shm/1.0-r0 -fdebug-prefix-map=/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/ipc-shm/1.0-r0/recipe-sysroot= -fdebug-prefix-map=/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/ipc-shm/1.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work-shared/s32g274ardb2/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work-shared/s32g274ardb2/kernel-build-artifacts=/usr/src/kernel -c -Wall -g -I/home/jaloo/sda2/s32g2/bsp/yocto/fsl-auto-yocto-bsp-41.0/build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/ipc-shm/1.0-r0/git/sample_user/../os_uio/.. -DCONFIG_SOC_ -o sample.o sample.c
| sample.c:5:10: fatal error: errno.h: No such file or directory
| 5 | #include <errno.h>
| | ^~~~~~~~~

...

My quesiton is: Can I build sample_user with ipc-shm.bb like this?

标记 (2)
0 项奖励
回复
3 回复数

552 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @liujialu_2024 

Thanks for your reply.

I have checked it with the current BSP code base and found that the feature you mentioned seems not yet implemented within the Yocto script.

I have tested it with standalone build,  and found that it works fine, then currently I suggest building it manually.

Sorry for your inconvenience.

 

BR

Chenyin

 

0 项奖励
回复

565 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @liujialu_2024 

Thanks for the post.

From my understanding, the ipc-shm.bb file is used to build the IPCF corresponding Linux kernel modules, not including the user space applications under sample-user.

 

BR

Chenyin 

0 项奖励
回复

557 次查看
liujialu_2024
Contributor III

Thanks for your reply, I still have 2 questions:

1. How to build sample_user in yocto? or

2.How can I configure yocto to output sdk to build sample_user?

标记 (3)
0 项奖励
回复