aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-31 23:41:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-31 23:41:22 +0000
commit910c608acd688cee5ae71ebbac1ed730df75ebe1 (patch)
treec6d022eeffd51c4a69f2e8d59b0a4cdfe4025586 /target/linux
parent2cd3c505ec80f9edeb13cc412096c6ccbc6c20c6 (diff)
downloadupstream-910c608acd688cee5ae71ebbac1ed730df75ebe1.tar.gz
upstream-910c608acd688cee5ae71ebbac1ed730df75ebe1.tar.bz2
upstream-910c608acd688cee5ae71ebbac1ed730df75ebe1.zip
cns3xxx: fix initramfs build
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r41915 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@41919 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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 639af35be7..ad3789adf4 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))