[Buildroot] [RFC/PATCH 4/4] linux: ensure buildroot_defconfig is writable
Nathan Lynch
ntl at pobox.com
Mon Jun 18 15:02:23 UTC 2012
If $(KERNEL_SOURCE_CONFIG) is read-only, the rm of
$(KERNEL_ARCH_PATH)/configs/buildroot_defconfig will prompt the user.
Make it writable and use rm -f for good measure.
Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
linux/linux.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/linux/linux.mk b/linux/linux.mk
index f165dda..211d054 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -138,8 +138,9 @@ endif
define LINUX_CONFIGURE_CMDS
cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig
+ chmod u+w $(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))
--
1.7.10.2
More information about the buildroot
mailing list