summaryrefslogtreecommitdiff
path: root/package/busybox/busybox.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-10 02:59:20 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-10 02:59:20 +0000
commitdba033e7a49db26ca45ebbc9c94b4ecbfbc27fab (patch)
treecc56d02b6b6f29f87631efbb8f49dce249077af6 /package/busybox/busybox.mk
parent57b6a1007db5ecb6b560c2b74804be7d1e360c2a (diff)
add an option for installing symlinks for supported busybox applets #536
Diffstat (limited to 'package/busybox/busybox.mk')
-rw-r--r--package/busybox/busybox.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index fe166aa6a..9d15509c7 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -53,8 +53,12 @@ $(BUSYBOX_DIR)/busybox: $(BUSYBOX_DIR)/.configured
EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(BUSYBOX_DIR)
$(TARGET_DIR)/bin/busybox: $(BUSYBOX_DIR)/busybox
+ifeq ($(BR2_PACKAGE_BUSYBOX_INSTALL_SYMLINKS),y)
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(BUSYBOX_DIR) install
+else
+ install -D -m 0755 $(BUSYBOX_DIR)/busybox $(TARGET_DIR)/bin/busybox
+endif
# Just in case
-chmod a+x $(TARGET_DIR)/usr/share/udhcpc/default.script