Skip to contentSkip to conversation

Pull request for branch yem-patchwork-fixes

GIT PULL New Yann E. MORIN 1 participant 7 messages May 27, 2013 – Jun 4, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

From: "Yann E. MORIN" <[email protected]>

Hello All!

Here are four patches from Nathan Lynch to fix building out-of-tree when the Buildroot source tree is readonly (eg. shared via NFS between multiple developers).

Regards,
Yann E. MORIN

The following changes since commit 1e7f40ebb5cfc58010faf5e8d751de9207dc6a5d:

Revert "dependencies: check that SSL certificates are installed" (2013-05-26 11:14:00 +0200)

are available in the git repository at:

git://gitorious.org/buildroot/buildroot.git yem-patchwork-fixes

for you to fetch changes up to 73b5281a6c6d7cf1ba5d2c6340e39e9ebc2d36d0:

linux: ensure buildroot_defconfig is writable (2013-05-27 12:34:40 +0200)

----------------------------------------------------------------
Nathan Lynch (4):
toolchain/uClibc: ensure .oldconfig is writable
target: ensure target/ dir is writable
busybox: ensure $(BUSYBOX_BUILD_CONFIG) is writable
linux: ensure buildroot_defconfig is writable

 Makefile                   | 4 ++--
 linux/linux.mk             | 4 ++--
 package/busybox/busybox.mk | 2 +-
 toolchain/uClibc/uclibc.mk | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#1 lore raw

PATCH 1/4 toolchain/uClibc: ensure .oldconfig is writable

From: Nathan Lynch <[email protected]>

If $(UCLIBC_CONFIG_FILE) is read-only (eg. because Buildroot's source dir is), the sed fixups to .oldconfig fail.

[yann.morin.1998 at free.fr: use $(INSTALL) instead of cp]
---
 toolchain/uClibc/uclibc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/uClibc/uclibc.mk +1 -1
index d4f1d4c..1a9934d 100644
@@ -94,7 +94,7 @@ endif
 # Some targets may wish to provide their own UCLIBC_CONFIG_FILE...
 $(UCLIBC_DIR)/.oldconfig: $(UCLIBC_DIR)/.patched $(UCLIBC_CONFIG_FILE)
 	$(Q)$(call MESSAGE,"Pre-configuring uClibc")
-	cp -f $(UCLIBC_CONFIG_FILE) $(UCLIBC_DIR)/.oldconfig
+	$(INSTALL) -D -m 0644 $(UCLIBC_CONFIG_FILE) $(UCLIBC_DIR)/.oldconfig
 	$(SED) 's,^CROSS_COMPILER_PREFIX=.*,CROSS_COMPILER_PREFIX="$(TARGET_CROSS)",g' \
 		-e 's,# TARGET_$(UCLIBC_TARGET_ARCH) is not set,TARGET_$(UCLIBC_TARGET_ARCH)=y,g' \
 		-e 's,^TARGET_ARCH=".*",TARGET_ARCH=\"$(UCLIBC_TARGET_ARCH)\",g' \
Signature · 1 line
1.8.1.2
#2 lore raw

PATCH 2/4 target: ensure target/ dir is writable

In reply to Yann E. MORIN

From: Nathan Lynch <[email protected]>

If the source target skeleton is read-only (eg. because Buildroot's source dir is), modifications to the output target (such as creating /etc/hostname and /etc/issue) fail.

[yann.morin.1998 at free.fr: we use rsync now, not cp; --chmod=Du+w
suggested by Arnout; clarify commit log]

Cc Arnout Vandecappelle <[email protected]>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index e8647d1..2a62a65 100644
@@ -431,7 +431,7 @@ endif
 
 $(BUILD_DIR)/.root:
 	mkdir -p $(TARGET_DIR)
-	rsync -a \
+	rsync -a --chmod=Du+w \
 		--exclude .empty --exclude .svn --exclude .git \
 		--exclude .hg --exclude=CVS --exclude '*~' \
 		$(TARGET_SKELETON)/ $(TARGET_DIR)/
@@ -507,7 +507,7 @@ endif
 
 	@$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
 		$(call MESSAGE,"Copying overlay $(d)"); \
-		rsync -a \
+		rsync -a --chmod=Du+w \
 			--exclude .empty --exclude .svn --exclude .git \
 			--exclude .hg --exclude=CVS --exclude '*~' \
 			$(d)/ $(TARGET_DIR)$(sep))
Signature · 1 line
1.8.1.2
#3 lore raw

PATCH 3/4 busybox: ensure $(BUSYBOX_BUILD_CONFIG) is writable

In reply to Yann E. MORIN

From: Nathan Lynch <[email protected]>

If $(BUSYBOX_CONFIG_FILE) is read-only (eg. because Buildroot's source dir is), the sed fixups to $(BUSYBOX_BUILD_CONFIG) fail.

[yann.morin.1998 at free.fr: use $(INSTALL) instead of cp]
Cc Arnout Vandecappelle <[email protected]>
---
 package/busybox/busybox.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/busybox/busybox.mk +1 -1
index 985203c..0b6c18f 100644
@@ -123,7 +123,7 @@ endef
 endif
 
 define BUSYBOX_COPY_CONFIG
-	cp -f $(BUSYBOX_CONFIG_FILE) $(BUSYBOX_BUILD_CONFIG)
+	$(INSTALL) -D -m 0644 $(BUSYBOX_CONFIG_FILE) $(BUSYBOX_BUILD_CONFIG)
 endef
 
 # Disable shadow passwords support if unsupported by the C library
Signature · 1 line
1.8.1.2
#4 lore raw

PATCH 4/4 linux: ensure buildroot_defconfig is writable

In reply to Yann E. MORIN

From: Nathan Lynch <[email protected]>

If $(KERNEL_SOURCE_CONFIG) is read-only (eg. becasue Buildroot's source dir is), the rm of $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig will prompt the user. Make it writable and use rm -f for good measure.

[yann.morin.1998 at free.fr: use $(INSTALL) instead of cp]
---
 linux/linux.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
linux/linux.mk +2 -2
index 3877c35..5b8f211 100644
@@ -166,9 +166,9 @@ KERNEL_SOURCE_CONFIG = $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE)
 endif
 
 define LINUX_CONFIGURE_CMDS
-	cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
+	$(INSTALL) -D -m 0644 $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
 	$(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig
-	rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
+	rm -f $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
 	$(if $(BR2_ARM_EABI),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config),
 		$(call KCONFIG_DISABLE_OPT,CONFIG_AEABI,$(@D)/.config))
Signature · 1 line
1.8.1.2
#5 lore raw
In reply to Yann E. MORIN

All,

On 2013-05-27 12:36 +0200, Yann E. MORIN spake thusly:

Quoted 7 lines

From: "Yann E. MORIN" <[email protected]>

Hello All!

Here are four patches from Nathan Lynch to fix building out-of-tree when the Buildroot source tree is readonly (eg. shared via NFS between multiple developers).

Ping? I'm trying to check bug #5780, but can't go that far, since target/ is readonly, which is fixed by one of these patches.

Quoted 6 lines

----------------------------------------------------------------
Nathan Lynch (4):
toolchain/uClibc: ensure .oldconfig is writable
target: ensure target/ dir is writable
busybox: ensure $(BUSYBOX_BUILD_CONFIG) is writable
linux: ensure buildroot_defconfig is writable

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#6 lore raw

All,

On 2013-06-04 00:11 +0200, Yann E. MORIN spake thusly:

Quoted 11 lines

On 2013-05-27 12:36 +0200, Yann E. MORIN spake thusly:

Quoted 7 lines

From: "Yann E. MORIN" <[email protected]>

Hello All!

Here are four patches from Nathan Lynch to fix building out-of-tree when the Buildroot source tree is readonly (eg. shared via NFS between multiple developers).

Ping? I'm trying to check bug #5780, but can't go that far, since target/ is readonly, which is fixed by one of these patches.

Well, forget this series, I've uncovered a remaining issue. (Peter: I've marked it as "Changes Requested" in the Patchwork ;-) )

Sorry... :-/

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'