aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-defaults.mk
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-07-01 20:52:00 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-07-01 20:52:00 +0000
commit3917e567dbbbd40f22da4e2bb9f289326cb80964 (patch)
tree9306be3e493c8203f545170b08540eaebd112594 /include/kernel-defaults.mk
parent40d4aeae3631c5867926e8935ae91744e106508f (diff)
downloadmaster-187ad058-3917e567dbbbd40f22da4e2bb9f289326cb80964.tar.gz
master-187ad058-3917e567dbbbd40f22da4e2bb9f289326cb80964.tar.bz2
master-187ad058-3917e567dbbbd40f22da4e2bb9f289326cb80964.zip
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 <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37125 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/kernel-defaults.mk')
-rw-r--r--include/kernel-defaults.mk1
1 files changed, 1 insertions, 0 deletions
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))
#")
#")