From: Florian Fainelli Date: Mon, 1 Jul 2013 20:52:00 +0000 (+0000) Subject: include: force a kernel-generated cpio removal and rebuild X-Git-Tag: reboot~10065 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5b5fd9f92d0e901a4e9d102af694781227259c09;p=openwrt%2Fstaging%2Fchunkeey.git include: force a kernel-generated cpio removal and rebuild Make sure that the kernel rebuilds the initramfs cpio archive file by deleting it before so we get it re-generated properly. Signed-off-by: Florian Fainelli SVN-Revision: 37125 --- diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index ca520f55c9..607c8211b8 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -144,6 +144,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) define Kernel/CompileImage/Initramfs $(call Kernel/Configure/Initramfs) $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init) + rm -rf $(KERNEL_BUILD_DIR)/usr/initramfs_data.cpio* +$(MAKE) $(KERNEL_MAKEOPTS) $(subst ",,$(KERNELNAME)) #") #")