aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/binutils
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-11-22 21:25:31 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2009-11-22 21:25:31 +0100
commitb71951b0e736945937ab7a7878547f1add8d62ac (patch)
tree56979d2982ff6701c1ee1a57f48181099175be9f /toolchain/binutils
parent6aac003abf821e220f7d3c6c597c1f0f1dd84a06 (diff)
downloadbuildroot-novena-b71951b0e736945937ab7a7878547f1add8d62ac.tar.gz
buildroot-novena-b71951b0e736945937ab7a7878547f1add8d62ac.zip
toolchain/binutils: make sure target-binutils runs after busybox
Closes #597 Ensure that binutils-target runs after busybox if enabled, so it can overwrite the busybox symlink for ar if that applet is enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/binutils')
-rw-r--r--toolchain/binutils/binutils.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk
index f3509e710..04122b385 100644
--- a/toolchain/binutils/binutils.mk
+++ b/toolchain/binutils/binutils.mk
@@ -175,6 +175,13 @@ endif
-$(STRIPCMD) $(TARGET_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin/* > /dev/null 2>&1
-$(STRIPCMD) $(TARGET_DIR)/usr/bin/* > /dev/null 2>&1
+# If both binutils-target and busybox are selected, make certain binutils
+# gets to run after busybox, so it can overwrite the busybox symlink for
+# ar if enabled
+ifeq ($(BR2_PACKAGE_BUSYBOX),y)
+BINUTILS_TARGET_PREREQ += busybox
+endif
+
binutils_target: $(BINUTILS_TARGET_PREREQ) $(TARGET_DIR)/usr/bin/ld
binutils_target-clean: