Skip to contentSkip to conversation

svn commit: trunk/buildroot: package/config

Buildroot aldot at uclibc.org 1 participant 1 message Jul 27, 2007

lore
Share & tools
lore
#0 lore raw

Author: aldot
Date: 2007-07-27 05:37:30 -0700 (Fri, 27 Jul 2007) New Revision: 19275

Log:
- fix building mconf with curses flags
- make sure to rm .config when the first 'make menuconfig' was interrupted and thus no .config.cmd was created.

Modified:
trunk/buildroot/Makefile trunk/buildroot/package/config/Makefile trunk/buildroot/package/config/Makefile.kconfig

Changeset:
Modified: trunk/buildroot/Makefile
===================================================================

buildroot/Makefile +4 -2
@@ -320,9 +320,11 @@
 
 menuconfig: $(CONFIG)/mconf
 	@-mkdir -p $(CONFIG)/buildroot-config
-	@KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
+	@if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
 		KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
-		$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
+		$(CONFIG)/mconf $(CONFIG_CONFIG_IN); then \
+		test -f .config.cmd || rm -f .config; \
+	fi
 
 config: $(CONFIG)/conf
 	@-mkdir -p $(CONFIG)/buildroot-config

Modified: trunk/buildroot/package/config/Makefile
===================================================================

buildroot/package/config/Makefile +1 -1
@@ -5,7 +5,7 @@
 srctree := .
 
 include Makefile.kconfig
-HOSTCFLAGS+=-Dinline="" -include foo.h
+#HOSTCFLAGS+=-Dinline="" -include foo.h
 -include .depend
 .depend: $(wildcard *.h *.c)
 	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > .depend 2>/dev/null || :

Modified: trunk/buildroot/package/config/Makefile.kconfig
===================================================================

buildroot/package/config/Makefile.kconfig +3 -0
@@ -120,6 +120,9 @@
 ifeq ($(MAKECMDGOALS),menuconfig)
 	hostprogs-y += mconf
 endif
+ifeq ($(findstring mconf,$(MAKECMDGOALS)),mconf)
+	hostprogs-y += mconf
+endif
 
 ifeq ($(MAKECMDGOALS),xconfig)
 	qconf-target := 1