summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-08 15:40:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-08 15:40:17 +0000
commit9e98d559f66f01fed25001ad814b7689a01d314c (patch)
treefed89248f24c1647fced63fb681047ade12f039b
parent455ba77b6ad7c0b9e6d84a3ea742e12927bfebb9 (diff)
downloadmtk-20170518-9e98d559f66f01fed25001ad814b7689a01d314c.zip
mtk-20170518-9e98d559f66f01fed25001ad814b7689a01d314c.tar.gz
mtk-20170518-9e98d559f66f01fed25001ad814b7689a01d314c.tar.bz2
ramips: fix initramfs image build handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43219
-rw-r--r--target/linux/ramips/image/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 4362d4c..02485ba 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -18,11 +18,9 @@ endef
VMLINUX:=$(IMG_PREFIX)-vmlinux
UIMAGE:=$(IMG_PREFIX)-uImage
-ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
define Image/Build/Initramfs
$(call Image/Build/Profile/$(PROFILE),initramfs)
endef
-endif
ifeq ($(CONFIG_SOC_RT288X),y)
define kernel_entry
@@ -870,13 +868,14 @@ define Image/BuildKernel
$(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
$(call MkImage,lzma,$(KDIR)/vmlinux.bin.lzma,$(KDIR)/uImage.lzma)
cp $(KDIR)/uImage.lzma $(BIN_DIR)/$(UIMAGE).bin
-ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+endef
+
+define Image/BuildKernel/Initramfs
cp $(KDIR)/vmlinux-initramfs.elf $(BIN_DIR)/$(VMLINUX)-initramfs.elf
cp $(KDIR)/vmlinux-initramfs $(BIN_DIR)/$(VMLINUX)-initramfs.bin
$(call CompressLzma,$(KDIR)/vmlinux-initramfs,$(KDIR)/vmlinux-initramfs.bin.lzma)
$(call MkImage,lzma,$(KDIR)/vmlinux-initramfs.bin.lzma,$(KDIR)/uImage-initramfs.lzma)
cp $(KDIR)/uImage-initramfs.lzma $(BIN_DIR)/$(UIMAGE)-initramfs.bin
-endif
$(call Image/Build/Initramfs)
endef