From d9cfa827acd9155429e4f2b00bc0052156aa5d4d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 15 Jan 2020 21:17:13 +0100 Subject: [PATCH] busybox: fix build issues Fixes: f704f97e4c57 ("busybox: Include hdparm by default on nas type device") Signed-off-by: John Crispin --- package/utils/busybox/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 9af0f4853e47..01441d1e87d1 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 -- 2.30.2