package/busybox: invert dependency with binutils
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 8 Jul 2018 09:46:11 +0000 (11:46 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 8 Jul 2018 11:08:06 +0000 (13:08 +0200)
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/binutils/binutils.mk
package/busybox/busybox.mk

index cb6022f7faad5bb0a66e4d0e9a889c1251d56e3f..090065a3e42791dd5735734ac275cd936caf3767 100644 (file)
@@ -72,11 +72,6 @@ ifeq ($(BR2_ARM_CPU_ARMV7M)$(BR2_OPTIMIZE_S),yy)
 BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O2"
 endif
 
-# Install binutils after busybox to prefer full-blown utilities
-ifeq ($(BR2_PACKAGE_BUSYBOX),y)
-BINUTILS_DEPENDENCIES += busybox
-endif
-
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 BINUTILS_DEPENDENCIES += zlib
 endif
index 748f05aca31afd50e4ffd913a63cb82cb04921fe..d920987d11be94836d2ebeb3e0d7d8e8844aee72 100644 (file)
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \
 
 # Packages that provide commands that may also be busybox applets:
 BUSYBOX_DEPENDENCIES = \
+       $(if $(BR2_PACKAGE_BINUTILS),binutils) \
        $(if $(BR2_PACKAGE_COREUTILS),coreutils) \
        $(if $(BR2_PACKAGE_CPIO),cpio) \
        $(if $(BR2_PACKAGE_DCRON),dcron) \