add top-level kernel_menuconfig target to unpack and reconfigure the kernel - uses...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 16 Feb 2007 16:59:44 +0000 (16:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 16 Feb 2007 16:59:44 +0000 (16:59 +0000)
SVN-Revision: 6310

Makefile
include/kernel-build.mk
target/linux/Makefile

index 35fc2c8884e036ae93e656f9c538ae90acc614c9..b1970b09cb1e895d084c4d1701e537d1ccff46d5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,6 +113,10 @@ oldconfig: scripts/config/conf tmp/.config.in tmp/.config-target.in FORCE
 menuconfig: scripts/config/mconf tmp/.config.in tmp/.config-target.in FORCE
        $< Config.in
 
+kernel_menuconfig: .config FORCE
+       $(MAKE) target/linux-prepare
+       $(NO_TRACE_MAKE) -C target/linux menuconfig
+
 package/%: tmp/.pkginfo tmp/.targetinfo FORCE
        $(MAKE) -C package $(patsubst package/%,%,$@)
 
index 1ac847e93c4a4fc14df7c6669781b56bd4b9fbe0..24e7e858285be7d8d31816795682dc9912b98020 100644 (file)
@@ -226,6 +226,13 @@ $(eval $(call shexport,Target/Description))
 download: $(DL_DIR)/$(LINUX_SOURCE)
 prepare: $(LINUX_DIR)/.configured $(TMP_DIR)/.kernel.mk
 compile: $(LINUX_DIR)/.modules
+menuconfig: $(LINUX_DIR)/.configured FORCE
+       $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) menuconfig
+       $(SCRIPT_DIR)/config.pl $(LINUX_DIR)/.config > $(PLATFORM_DIR)/config
+ifeq ($(KERNEL),2.6)
+       $(SCRIPT_DIR)/config.pl '>' $(GENERIC_PLATFORM_DIR)/config-template $(LINUX_DIR)/.config > $(PLATFORM_DIR)/config-diff 
+endif
+
 install: $(LINUX_DIR)/.image
 
 clean: FORCE
index 2a9cf7db2d0e1223c03761cb9431d647a41bcf47..69822879de7ae4554e968fdb6e7f5ca3b4ca3f80 100644 (file)
@@ -19,5 +19,8 @@ compile:
 install:
        $(MAKE) -C $(BOARD)-$(KERNEL) install
        
+menuconfig: prepare
+       $(MAKE) -C $(BOARD)-$(KERNEL) menuconfig
+
 clean:
        $(MAKE) -C $(BOARD)-$(KERNEL) clean