Skip to contentSkip to conversation

Search for defconfigs in target, not entire tree

PATCH New Hans-Christian Egtvedt 1 participant 1 message Jun 22, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Search for defconfigs in target, not entire tree

This patch changes the way the top level Makefile searches for a <board>_defconfig file, it will only look in the target/ directory and its sub directories.

The patch also enables loading a defconfig even if there already is a .config.

---
 Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Makefile +4 -4
index 1285144..1517653 100644
@@ -191,10 +191,6 @@ allnoconfig: $(CONFIG)/conf
 defconfig: $(CONFIG)/conf
 	@$(CONFIG)/conf -d $(CONFIG_CONFIG_IN)
 
-%_defconfig: $(CONFIG)/conf
-	cp $(shell find . -name $@) .config
-	@$(CONFIG)/conf -o $(CONFIG_CONFIG_IN)
-
 #############################################################
 #
 # Cleanup and misc junk
@@ -209,6 +205,10 @@ distclean: clean
 
 endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y)
 
+%_defconfig: $(CONFIG)/conf
+	cp $(shell find target/ -name $@) .config
+	@$(CONFIG)/conf -o $(CONFIG_CONFIG_IN)
+
 .PHONY: dummy subdirs release distclean clean config oldconfig \
 	menuconfig tags check test depend defconfig
 
Signature · 4 lines
1.4.4.2


--=-GryXooXpkmpk+Kv25C72--