* [Buildroot] [PATCH] coreutils: add optionals, use single binary
@ 2014-10-25 2:06 Gustavo Zacarias
2014-10-25 8:48 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2014-10-25 2:06 UTC (permalink / raw)
To: buildroot
Add proper support for optional libraries: acl, attr, gmp & libcap.
Also build the single binary as pointed out by P?draig Brady for some
neat space savings.
Use the shebang (default) method since it allows us to move binaries
into other directories to suit our needs whereas for symlink that
wouldn't be so easy.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/coreutils/coreutils.mk | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 54c7892..1a25a3a 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -20,6 +20,30 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
COREUTILS_DEPENDENCIES = busybox
endif
+ifeq ($(BR2_PACKAGE_ACL),y)
+COREUTILS_DEPENDENCIES += acl
+else
+COREUTILS_CONF_OPTS += --disable-acl
+endif
+
+ifeq ($(BR2_PACKAGE_ATTR),y)
+COREUTILS_DEPENDENCIES += attr
+else
+COREUTILS_CONF_OPTS += --disable-xattr
+endif
+
+ifeq ($(BR2_PACKAGE_GMP),y)
+COREUTILS_DEPENDENCIES += gmp
+else
+COREUTILS_CONF_OPTS += --without-gmp
+endif
+
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+COREUTILS_DEPENDENCIES += libcap
+else
+COREUTILS_CONF_OPTS += --disable-libcap
+endif
+
COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false \
ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true \
uname join
@@ -61,7 +85,7 @@ COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
utils_cv_localtime_cache=no \
PERL=missing
-COREUTILS_CONF_OPTS = --disable-rpath
+COREUTILS_CONF_OPTS = --disable-rpath --enable-single-binary=shebangs
define COREUTILS_POST_INSTALL
# some things go in root rather than usr
--
2.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] coreutils: add optionals, use single binary
2014-10-25 2:06 [Buildroot] [PATCH] coreutils: add optionals, use single binary Gustavo Zacarias
@ 2014-10-25 8:48 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-10-25 8:48 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Fri, 24 Oct 2014 23:06:45 -0300, Gustavo Zacarias wrote:
> Add proper support for optional libraries: acl, attr, gmp & libcap.
>
> Also build the single binary as pointed out by P?draig Brady for some
> neat space savings.
> Use the shebang (default) method since it allows us to move binaries
> into other directories to suit our needs whereas for symlink that
> wouldn't be so easy.
Indeed, very nice space saving.
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-25 8:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-25 2:06 [Buildroot] [PATCH] coreutils: add optionals, use single binary Gustavo Zacarias
2014-10-25 8:48 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox