]> code.ossystems Code Review - openembedded-core.git/commit
busybox: add the ability to split the busybox binary
authorChen Qi <Qi.Chen@windriver.com>
Mon, 17 Jun 2013 04:47:20 +0000 (12:47 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2013 16:30:30 +0000 (17:30 +0100)
commite5a1442819dfb74e86a6f69da008ba6908c8bbc7
tree2851a7cee4421ed810276e096d5bba85dcb76b4a
parent832d1b5575c76f61623f2e0337554287d056422b
busybox: add the ability to split the busybox binary

This patch enables us to split the busybox into two binaries, one
containing suid applications, and the other containing nosuid apps.

Add a variable, BUSYBOX_SPLIT_SUID, to control whether to split the
busybox binary into two parts. We default it to "1" to enable the
splitting, but users could still override it to disable the splitting.
After all, busybox has no internal support for this suid apps splitting,
so there might be users out there who want just one busybox binary.

The basic idea here is to build the busybox twice, each with the correct
configuration items. We extract the non-app part of the original .config
file, and merge this part with the suid-app part to form a .config which
contains only suid apps. The same strategy applies to the non-suid apps.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/busybox/busybox.inc