summaryrefslogtreecommitdiff
path: root/include/kernel-defaults.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-07-23 13:11:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-07-23 13:11:41 +0000
commitbb494ed639914c30b732d091fbe941d78927e16f (patch)
treedd732b4546c4a3ac19db953986434b63c8f2ec47 /include/kernel-defaults.mk
parent3f3cac6136f98095a07335a8f8c56b53eb6d5677 (diff)
downloadmtk-20170518-bb494ed639914c30b732d091fbe941d78927e16f.zip
mtk-20170518-bb494ed639914c30b732d091fbe941d78927e16f.tar.gz
mtk-20170518-bb494ed639914c30b732d091fbe941d78927e16f.tar.bz2
kernel: fix remaining initramfs related breakage
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37518
Diffstat (limited to 'include/kernel-defaults.mk')
-rw-r--r--include/kernel-defaults.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index c6f02e6..48f2b2a 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -134,7 +134,7 @@ endif
endef
define Kernel/CompileImage/Default
- $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init)
+ rm -f $(TARGET_DIR)/init
+$(MAKE) $(KERNEL_MAKEOPTS) $(subst ",,$(KERNELNAME))
#")
$(call Kernel/CopyImage)
@@ -143,7 +143,7 @@ endef
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
define Kernel/CompileImage/Initramfs
$(call Kernel/Configure/Initramfs)
- $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init)
+ $(CP) $(GENERIC_PLATFORM_DIR)/base-files/init $(TARGET_DIR)/init
rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio*
+$(MAKE) $(KERNEL_MAKEOPTS) $(subst ",,$(KERNELNAME))
#")