busybox: fix build issues
authorJohn Crispin <john@phrozen.org>
Wed, 15 Jan 2020 20:17:13 +0000 (21:17 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 15 Jan 2020 20:17:47 +0000 (21:17 +0100)
Fixes: f704f97e4c57 ("busybox: Include hdparm by default on nas type device")
Signed-off-by: John Crispin <john@phrozen.org>
package/utils/busybox/Makefile

index 9af0f4853e47e2f2dd5e3bbf1e8a003b937368a1..01441d1e87d1f5124d489e94a970360cd16de425 100644 (file)
@@ -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