aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-01-15 21:17:13 +0100
committerJohn Crispin <john@phrozen.org>2020-01-15 21:17:47 +0100
commitd9cfa827acd9155429e4f2b00bc0052156aa5d4d (patch)
tree52c764bd03520cc198fd5a817d6f93f22ee169e7 /package/utils/busybox
parenta736f394323689dbbfbe548f93e6aa620016a64a (diff)
downloadupstream-d9cfa827acd9155429e4f2b00bc0052156aa5d4d.tar.gz
upstream-d9cfa827acd9155429e4f2b00bc0052156aa5d4d.tar.bz2
upstream-d9cfa827acd9155429e4f2b00bc0052156aa5d4d.zip
busybox: fix build issues
Fixes: f704f97e4c57 ("busybox: Include hdparm by default on nas type device") Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/utils/busybox')
-rw-r--r--package/utils/busybox/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 9af0f4853e..01441d1e87 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -92,10 +92,12 @@ ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
endif
define Build/Configure
+ rm -f $(PKG_BUILD_DIR)/.config
+ touch $(PKG_BUILD_DIR)/.config
ifeq ($(DEVICE_TYPE),nas)
echo "CONFIG_HDPARM=y" >> $(PKG_BUILD_DIR)/.config
endif
- grep 'CONFIG_BUSYBOX_$(BUSYBOX_SYM)' $(TOPDIR)/.config | sed -e "s,\\(# \)\\?CONFIG_BUSYBOX_$(BUSYBOX_SYM)_\\(.*\\),\\1CONFIG_\\2,g" > $(PKG_BUILD_DIR)/.config
+ grep 'CONFIG_BUSYBOX_$(BUSYBOX_SYM)' $(TOPDIR)/.config | sed -e "s,\\(# \)\\?CONFIG_BUSYBOX_$(BUSYBOX_SYM)_\\(.*\\),\\1CONFIG_\\2,g" >> $(PKG_BUILD_DIR)/.config
yes 'n' | $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) oldconfig
endef