aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--include/kernel-build.mk7
-rw-r--r--target/linux/Makefile3
3 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 35fc2c8884..b1970b09cb 100644
--- 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/%,%,$@)
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 1ac847e93c..24e7e85828 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -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
diff --git a/target/linux/Makefile b/target/linux/Makefile
index 2a9cf7db2d..69822879de 100644
--- a/target/linux/Makefile
+++ b/target/linux/Makefile
@@ -19,5 +19,8 @@ compile:
install:
$(MAKE) -C $(BOARD)-$(KERNEL) install
+menuconfig: prepare
+ $(MAKE) -C $(BOARD)-$(KERNEL) menuconfig
+
clean:
$(MAKE) -C $(BOARD)-$(KERNEL) clean