From 6e8532e39d2702b2e25ece200ae86837783edb01 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Sun, 11 May 2014 06:02:58 +0200
Subject: [PATCH] Generate .config without symlink again

Otherwise, `make cleanall` fails...
---
 Makefile | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 14dd025d4..1a011cdf3 100644
--- a/Makefile
+++ b/Makefile
@@ -175,15 +175,13 @@ feeds: FORCE
 	+$(NO_TRACE_MAKE) -C $(TOPDIR) prepare-tmpinfo OPENWRT_BUILD=0
 
 config: FORCE
+	rm .config
 	( \
 		cat $(GLUONDIR)/include/config $(GLUONDIR)/targets/$(GLUON_TARGET)/config; \
 		echo '$(patsubst %,CONFIG_PACKAGE_%=m,$(sort $(filter-out -%,$(GLUON_DEFAULT_PACKAGES) $(GLUON_SITE_PACKAGES) $(PROFILE_PACKAGES))))' \
 			| sed -e 's/ /\n/g'; \
-	) > $(BOARD_BUILDDIR)/config
-	+$(NO_TRACE_MAKE) scripts/config/conf OPENWRT_BUILD=0
-	scripts/config/conf -D $(BOARD_BUILDDIR)/config -w $(BOARD_BUILDDIR)/config Config.in
-
-	ln -sf $(BOARD_BUILDDIR)/config .config
+	) > .config
+	+$(NO_TRACE_MAKE) defconfig OPENWRT_BUILD=0
 
 .config:
 	+$(GLUONMAKE) config
-- 
GitLab