aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-16 10:03:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-16 10:03:03 +0000
commita9bc57f16ee28173bdf4aeafd25924c76c72ff18 (patch)
tree32035bba7975342fdee054875b18223a07322ac7
parentac6c9d2be4a02d8e8191e9a7095f47e9051fad3b (diff)
downloadupstream-a9bc57f16ee28173bdf4aeafd25924c76c72ff18.tar.gz
upstream-a9bc57f16ee28173bdf4aeafd25924c76c72ff18.tar.bz2
upstream-a9bc57f16ee28173bdf4aeafd25924c76c72ff18.zip
add kernel_oldconfig target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8003 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Makefile4
-rw-r--r--include/kernel-build.mk4
-rw-r--r--target/linux/Makefile2
3 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2d3758df38..dbb4a0cce1 100644
--- a/Makefile
+++ b/Makefile
@@ -92,10 +92,12 @@ menuconfig: scripts/config/mconf tmp/.config-target.in tmp/.config-package.in FO
fi
$< Config.in
+kernel_oldconfig: .config FORCE
+ $(NO_TRACE_MAKE) -C target/linux oldconfig
+
kernel_menuconfig: .config FORCE
$(NO_TRACE_MAKE) -C target/linux menuconfig
-
package/% target/%: tmp/.packageinfo
toolchain/% package/% target/%: tmp/.targetinfo
package/% target/% tools/% toolchain/%: FORCE
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 1df80d16f6..1e63279c08 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -171,10 +171,10 @@ $(eval $(call shexport,Target/Description))
download: $(DL_DIR)/$(LINUX_SOURCE)
prepare: $(STAMP_CONFIGURED)
compile: $(LINUX_DIR)/.modules
-menuconfig: $(STAMP_PREPARED) FORCE
+oldconfig menuconfig: $(STAMP_PREPARED) FORCE
$(SCRIPT_DIR)/config.pl '+' $(GENERIC_LINUX_CONFIG) $(LINUX_CONFIG) > $(LINUX_DIR)/.config
$(call Kernel/Configure)
- $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) menuconfig
+ $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $@
$(SCRIPT_DIR)/config.pl '>' $(GENERIC_LINUX_CONFIG) $(LINUX_DIR)/.config > $(LINUX_CONFIG)
install: $(LINUX_DIR)/.image
diff --git a/target/linux/Makefile b/target/linux/Makefile
index e124869150..5a1ca723a6 100644
--- a/target/linux/Makefile
+++ b/target/linux/Makefile
@@ -7,6 +7,6 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/target.mk
-clean download prepare compile install menuconfig update refresh: FORCE
+clean download prepare compile install menuconfig oldconfig update refresh: FORCE
$(MAKE) -C $(BOARD)-$(KERNEL) $@