From: John Crispin Date: Wed, 15 Jan 2020 20:17:13 +0000 (+0100) Subject: busybox: fix build issues X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d9cfa827acd9155429e4f2b00bc0052156aa5d4d;p=openwrt%2Fstaging%2Fzorun.git busybox: fix build issues Fixes: f704f97e4c57 ("busybox: Include hdparm by default on nas type device") Signed-off-by: John Crispin --- 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