summaryrefslogtreecommitdiff
path: root/target/linux/cns3xxx/image/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-31 23:40:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-31 23:40:40 +0000
commit0426643bd5c0f81ec033509446b46c06e39e5eee (patch)
tree5e9b1c0428b4ad44232a058ac0fbf572df4ab303 /target/linux/cns3xxx/image/Makefile
parent0a9ee89dbd6f851451b7dc2798de0b1476dfe0e0 (diff)
downloadmtk-20170518-0426643bd5c0f81ec033509446b46c06e39e5eee.zip
mtk-20170518-0426643bd5c0f81ec033509446b46c06e39e5eee.tar.gz
mtk-20170518-0426643bd5c0f81ec033509446b46c06e39e5eee.tar.bz2
cns3xxx: fix initramfs build
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41915
Diffstat (limited to 'target/linux/cns3xxx/image/Makefile')
-rw-r--r--target/linux/cns3xxx/image/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/image/Makefile b/target/linux/cns3xxx/image/Makefile
index 639af35..ad3789a 100644
--- a/target/linux/cns3xxx/image/Makefile
+++ b/target/linux/cns3xxx/image/Makefile
@@ -25,6 +25,10 @@ define BuildFirmware/Generic
$(BIN_DIR)/$(IMG_PREFIX)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))-sysupgrade.bin
endef
+define Image/BuildKernel/Initramfs
+ mkimage -A arm -O linux -T kernel -C none -a 0x20008000 -e 0x20008000 -n 'OpenWrt Linux-$(LINUX_VERSION)' -d $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-initramfs-uImage
+endef
+
define Image/Build
$(call Image/Build/$(1),$(1))
$(call BuildFirmware/Generic,$(1))