[Buildroot] [PATCH 1 of 3] linux: add linux-update-config and linux-update-defconfig targets

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Tue Sep 27 19:21:09 UTC 2011

In analogy to build targets uclibc-update and busybox-update, add
extra targets to copy the current configuration to the custom
configuration file set in buildroot. These targets facilitate the
work of developers adding support for a specific board.

linux-update-config copies .config directly.
linux-update-defconfig first creates a defconfig and copies that.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>

v2: add defconfig target and rename.

 linux/linux.mk |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -190,6 +190,17 @@
 		$(subst linux-,,$(subst linux26-,,$@))
+linux-update-config linux26-update-config: $(LINUX_DIR)/.config
+linux-update-defconfig linux26-update-defconfig: linux-savedefconfig
+linux-update-config linux26-update-config: ;
+linux-update-defconfig linux26-update-defconfig: ;
 # Support for rebuilding the kernel after the initramfs file list has
 # been generated in $(BINARIES_DIR)/rootfs.initramfs.
 $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LINUX_DIR)/.stamp_images_installed $(BINARIES_DIR)/rootfs.initramfs

More information about the buildroot mailing list