package/busybox: invert dependency with gawk
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 8 Jul 2018 09:46:02 +0000 (11:46 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 8 Jul 2018 11:08:05 +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/busybox/busybox.mk
package/gawk/gawk.mk

index f614576de7e32d62c53daa70632fa86ade62120a..aac31fdba77b5fd113c61f110775a75ded1a6d5d 100644 (file)
@@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \
 
 # Packages that provide commands that may also be busybox applets:
 BUSYBOX_DEPENDENCIES = \
+       $(if $(BR2_PACKAGE_GAWK),gawk) \
        $(if $(BR2_PACKAGE_GREP),grep) \
        $(if $(BR2_PACKAGE_GZIP),gzip) \
        $(if $(BR2_PACKAGE_I2C_TOOLS),i2c-tools) \
index 0779736882b585fbe397855ca371cc39ada62d6a..1315abb9ee5453c921d2f2e07b6c7ab363959a37 100644 (file)
@@ -11,11 +11,6 @@ GAWK_DEPENDENCIES = host-gawk
 GAWK_LICENSE = GPL-3.0+
 GAWK_LICENSE_FILES = COPYING
 
-# Prefer full-blown gawk over busybox awk
-ifeq ($(BR2_PACKAGE_BUSYBOX),y)
-GAWK_DEPENDENCIES += busybox
-endif
-
 ifeq ($(BR2_PACKAGE_LIBSIGSEGV),y)
 GAWK_DEPENDENCIES += libsigsegv
 endif