@@ -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))
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@pobox.com> --- linux/linux.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)