]> code.ossystems Code Review - openembedded-core.git/commitdiff
coreutils: add PACKAGECONFIG for single-binary
authorChen Qi <Qi.Chen@windriver.com>
Mon, 4 Dec 2017 10:25:37 +0000 (18:25 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Dec 2017 18:00:22 +0000 (18:00 +0000)
Add PACKAGECONFIG for single-binray. Disable it by default.

When enabled, there would only be one binary file /usr/bin/coreutils, other
files like 'ls' are text files containing contents like:

  #!/usr/bin/coreutils --coreutils-prog-shebang=ls

And the size of the rpm package reduces from 849K to 519K.

Default to disable this option to keep the traditional behaviour.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/coreutils/coreutils_8.28.bb

index a98072425c30fb0b7d56bf47056418e9f0ead5af..8a9e80c49b96583a56cca91e48c08698c819e762 100644 (file)
@@ -46,6 +46,7 @@ PACKAGECONFIG_class-native ??= "xattr"
 #
 PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
+PACKAGECONFIG[single-binary] = "--enable-single-binary,--disable-single-binary,,"
 
 # [ df mktemp base64 gets a special treatment and is not included in this
 bindir_progs = "arch basename chcon cksum comm csplit cut dir dircolors dirname du \