kernel: fix remaining initramfs related breakage
authorFelix Fietkau <nbd@openwrt.org>
Tue, 23 Jul 2013 13:11:41 +0000 (13:11 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 23 Jul 2013 13:11:41 +0000 (13:11 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37518

include/kernel-defaults.mk

index c6f02e65140d5f61f02b9aed217f36775f3b8d1b..48f2b2ab75d7296d3af403be4a74eb36dc30e208 100644 (file)
@@ -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))
        #")