aboutsummaryrefslogtreecommitdiff
path: root/package/coreutils
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-20 20:35:58 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-20 21:03:54 +0200
commit840cda91152dd8f702de8e77af34cddfbe4c98c8 (patch)
tree91f171066f0d2f1b84c69cd35d7374b19bb9efb8 /package/coreutils
parent14644a66b60a4115f20f101f08966414852e446c (diff)
downloadbuildroot-840cda91152dd8f702de8e77af34cddfbe4c98c8.tar.gz
buildroot-840cda91152dd8f702de8e77af34cddfbe4c98c8.tar.bz2
package/coreutils: split COREUTILS_CLEANUP and use better names
The COREUTILS_CLEANUP macro naming is a bit weird. In addition, it does two unrelated things, and the introduction of support for building coreutils as individual binaries will require splitting it up. So let's do this split as a preparation commit, and use better names for both resulting macros. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/coreutils')
-rw-r--r--package/coreutils/coreutils.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 5e7e0c6ea0..c48dc235ac 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -110,14 +110,17 @@ ifeq ($(BR2_STATIC_LIBS),y)
COREUTILS_CONF_OPTS += --enable-no-install-program=stdbuf
endif
-define COREUTILS_CLEANUP
- # link for archaic shells
+# link for archaic shells
+define COREUTILS_CREATE_TEST_SYMLINK
ln -fs coreutils $(TARGET_DIR)/usr/bin/[
- # gnu thinks chroot is in bin, debian thinks it's in sbin
+endef
+COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_CREATE_TEST_SYMLINK
+
+# gnu thinks chroot is in bin, debian thinks it's in sbin
+define COREUTILS_FIX_CHROOT_LOCATION
rm -f $(TARGET_DIR)/usr/bin/chroot
ln -sf ../bin/coreutils $(TARGET_DIR)/usr/sbin/chroot
endef
-
-COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_CLEANUP
+COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_FIX_CHROOT_LOCATION
$(eval $(autotools-package))