summaryrefslogtreecommitdiff
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
commit5b5fd9f92d0e901a4e9d102af694781227259c09 (patch)
treebd8a6849dcf8cec0427b4986374f656debbba816
parent87c0c2d81d2d358cd2a2a8b71eaaf2243ea8767a (diff)
downloadmtk-20170518-5b5fd9f92d0e901a4e9d102af694781227259c09.zip
mtk-20170518-5b5fd9f92d0e901a4e9d102af694781227259c09.tar.gz
mtk-20170518-5b5fd9f92d0e901a4e9d102af694781227259c09.tar.bz2
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> SVN-Revision: 37125
-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 ca520f5..607c821 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))
#")
#")