Skip to contentSkip to conversation

Add/rename *-update-config targets

PATCH RESEND Superseded Thomas De Schampheleire 2 participants 11 messages Oct 14, 2011 – Nov 11, 2011

lore
Share & tools
lore
#1 lore raw

PATCH RESEND 1/1 linux: add linux-update-config and linux-update-defconfig targets

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.

---
v2: add defconfig target and rename.

 linux/linux.mk |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
linux/linux.mk +11 -0
@@ -190,6 +190,17 @@
 	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) \
 		$(subst linux-,,$(subst linux26-,,$@))
 
+ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
+linux-update-config linux26-update-config: $(LINUX_DIR)/.config
+	cp -f $(LINUX_DIR)/.config $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
+
+linux-update-defconfig linux26-update-defconfig: linux-savedefconfig
+	cp -f $(LINUX_DIR)/defconfig $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
+else
+linux-update-config linux26-update-config: ;
+linux-update-defconfig linux26-update-defconfig: ;
+endif
+
 # Support for rebuilding the kernel after the cpio archive has
 # been generated in $(BINARIES_DIR)/rootfs.cpio.
 $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LINUX_DIR)/.stamp_images_installed $(BINARIES_DIR)/rootfs.cpio
#2 lore raw

PATCH RESEND 1/1 linux: add linux-update-config and linux-update-defconfig targets

Quoted 35 lines · Thomas De Schampheleire

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.

---
v2: add defconfig target and rename.

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

linux/linux.mk +11 -0
@@ -190,6 +190,17 @@
 ? ? ? ?$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) \
 ? ? ? ? ? ? ? ?$(subst linux-,,$(subst linux26-,,$@))
 
+ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
+linux-update-config linux26-update-config: $(LINUX_DIR)/.config
+ ? ? ? cp -f $(LINUX_DIR)/.config $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
+
+linux-update-defconfig linux26-update-defconfig: linux-savedefconfig
+ ? ? ? cp -f $(LINUX_DIR)/defconfig $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
+else
+linux-update-config linux26-update-config: ;
+linux-update-defconfig linux26-update-defconfig: ;
+endif
+
Quoted 4 lines

?# Support for rebuilding the kernel after the cpio archive has
?# been generated in $(BINARIES_DIR)/rootfs.cpio.
?$(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LINUX_DIR)/.stamp_images_installed $(BINARIES_DIR)/rootfs.cpio

bump

#3 lore raw

PATCH RESEND 1/1 linux: add linux-update-config and linux-update-defconfig targets

In reply to Thomas De Schampheleire
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

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

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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH RESEND 1/1 busybox: rename busybox-update to busybox-update-config

In reply to Thomas De Schampheleire

The original name busybox-update is confusing as it only updates a configuration file.

---
 package/busybox/busybox.mk |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/busybox/busybox.mk +1 -1
@@ -184,5 +184,5 @@
 	rm -f $(BUSYBOX_DIR)/.stamp_built
 	rm -f $(BUSYBOX_DIR)/.stamp_target_installed
 
-busybox-update:
+busybox-update-config:
 	cp -f $(BUSYBOX_BUILD_CONFIG) $(BUSYBOX_CONFIG_FILE)
#5 lore raw

PATCH RESEND 1/1 busybox: rename busybox-update to busybox-update-config

Quoted 19 lines · Thomas De Schampheleire

The original name busybox-update is confusing as it only updates a configuration file.

---
?package/busybox/busybox.mk | ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

package/busybox/busybox.mk +0 -0
@@ -184,5 +184,5 @@

? ? ? ?rm -f $(BUSYBOX_DIR)/.stamp_built
? ? ? ?rm -f $(BUSYBOX_DIR)/.stamp_target_installed

package/busybox/busybox.mk +1 -1
-busybox-update:
+busybox-update-config:
Quoted 2 lines

? ? ? ?cp -f $(BUSYBOX_BUILD_CONFIG) $(BUSYBOX_CONFIG_FILE)

bump

#6 lore raw

PATCH RESEND 1/1 busybox: rename busybox-update to busybox-update-config

In reply to Thomas De Schampheleire
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Thomas> The original name busybox-update is confusing as it only updates a Thomas> configuration file.

Thomas> Signed-off-by: Thomas De Schampheleire <[email protected]> Thomas> Acked-by: Thomas Petazzoni <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH RESEND 1/1 uclibc: rename uclibc-update to uclibc-update-config

In reply to Thomas De Schampheleire

The original name uclibc-update is confusing as it only updates a configuration file.

---
 toolchain/uClibc/uclibc.mk |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
toolchain/uClibc/uclibc.mk +1 -1
@@ -500,7 +500,7 @@
 
 uclibc-oldconfig: $(UCLIBC_DIR)/.oldconfig
 
-uclibc-update: uclibc-config
+uclibc-update-config: uclibc-config
 	cp -f $(UCLIBC_DIR)/.config $(UCLIBC_CONFIG_FILE)
 
 uclibc-configured: gcc_initial kernel-headers $(UCLIBC_DIR)/.configured
#8 lore raw

PATCH RESEND 1/1 uclibc: rename uclibc-update to uclibc-update-config

Quoted 21 lines · Thomas De Schampheleire

The original name uclibc-update is confusing as it only updates a configuration file.

---
?toolchain/uClibc/uclibc.mk | ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

toolchain/uClibc/uclibc.mk +0 -0
@@ -500,7 +500,7 @@
 

?uclibc-oldconfig: $(UCLIBC_DIR)/.oldconfig

toolchain/uClibc/uclibc.mk +1 -1
-uclibc-update: uclibc-config
+uclibc-update-config: uclibc-config

? ? ? ?cp -f $(UCLIBC_DIR)/.config $(UCLIBC_CONFIG_FILE)

Quoted 2 lines

?uclibc-configured: gcc_initial kernel-headers $(UCLIBC_DIR)/.configured

bump

#9 lore raw

PATCH RESEND 1/1 uclibc: rename uclibc-update to uclibc-update-config

In reply to Thomas De Schampheleire
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Thomas> The original name uclibc-update is confusing as it only updates a Thomas> configuration file.

Thomas> Signed-off-by: Thomas De Schampheleire <[email protected]> Thomas> Acked-by: Thomas Petazzoni <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard