summaryrefslogtreecommitdiff
path: root/include/kernel-build.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-02-16 16:59:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-02-16 16:59:44 +0000
commit8afbc2d617344df50a13ad9871067225530715db (patch)
tree223398f418d792e722b53026fdcb3b495f8f3983 /include/kernel-build.mk
parent9b78ea021b0e83a6bd8ac27097370c5beedcca5a (diff)
downloadmtk-20170518-8afbc2d617344df50a13ad9871067225530715db.zip
mtk-20170518-8afbc2d617344df50a13ad9871067225530715db.tar.gz
mtk-20170518-8afbc2d617344df50a13ad9871067225530715db.tar.bz2
add top-level kernel_menuconfig target to unpack and reconfigure the kernel - uses config.pl to generate target/linux/*/config and config-diff
SVN-Revision: 6310
Diffstat (limited to 'include/kernel-build.mk')
-rw-r--r--include/kernel-build.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 1ac847e..24e7e85 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