mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
package/coreutils: simplify the [ -> test symlink
Wheter we are mutli-call or multi-binaries, test is either a symlink to coreutils or a standalone binary. Consequently, test always exists, and so we can simplify the [ symlink. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Markus Mayer <mmayer@broadcom.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
417c235143
commit
79c4659853
@ -130,15 +130,9 @@ COREUTILS_CONF_OPTS += --enable-no-install-program=stdbuf
|
||||
endif
|
||||
|
||||
# link for archaic shells
|
||||
ifeq ($(BR2_PACKAGE_COREUTILS_INDIVIDUAL_BINARIES),y)
|
||||
define COREUTILS_CREATE_TEST_SYMLINK
|
||||
ln -fs test $(TARGET_DIR)/usr/bin/[
|
||||
endef
|
||||
else
|
||||
define COREUTILS_CREATE_TEST_SYMLINK
|
||||
ln -fs coreutils $(TARGET_DIR)/usr/bin/[
|
||||
endef
|
||||
endif
|
||||
COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_CREATE_TEST_SYMLINK
|
||||
|
||||
# gnu thinks chroot is in bin, debian thinks it's in sbin
|
||||
|
Loading…
Reference in New Issue
Block a user