How to add a binary (prctl) into yocto busybox ls1021a

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

How to add a binary (prctl) into yocto busybox ls1021a

Jump to solution
2,144 Views
jiye
Contributor V

Hi,

I want to change behaviors for some processes control using prctl in my bash script but i found out that this command does not exist in the busybox command conf file.

How can i add this binary into my busybox or rootfs

Labels (2)
0 Kudos
Reply
1 Solution
2,060 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Elias Bitbaker,

Q: How do I add a pre-built binary into the rootfs?
A: Do the following:
1. $ cd <sdk-install-dir>.
2. Add the files:
• $ cd sources/meta-freescale/recipes-extended/merge-files
• Put the files into files/merge, e.g. put bash into files/merge/, bash will be included in /home/root/ of the new rootfs.
3. Build new rootfs image:
• $ bitbake <rootfs-target>

Thanks,

Yiping

View solution in original post

2 Replies
2,061 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Elias Bitbaker,

Q: How do I add a pre-built binary into the rootfs?
A: Do the following:
1. $ cd <sdk-install-dir>.
2. Add the files:
• $ cd sources/meta-freescale/recipes-extended/merge-files
• Put the files into files/merge, e.g. put bash into files/merge/, bash will be included in /home/root/ of the new rootfs.
3. Build new rootfs image:
• $ bitbake <rootfs-target>

Thanks,

Yiping

2,060 Views
jiye
Contributor V

there are many prctl.c source codes out there do you know which one is a relatively good option?

0 Kudos
Reply