summaryrefslogtreecommitdiff
path: root/target/linux/ar7
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-11 15:45:24 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-10-11 15:45:24 +0000
commite7b2a4170ced94343d532151180cdf37632b89f4 (patch)
tree75d3fa4a3e545288d9d209396451a6bb0e101e76 /target/linux/ar7
parentba6751058bba655af55afb431806d5e9c6f068aa (diff)
downloadmtk-20170518-e7b2a4170ced94343d532151180cdf37632b89f4.zip
mtk-20170518-e7b2a4170ced94343d532151180cdf37632b89f4.tar.gz
mtk-20170518-e7b2a4170ced94343d532151180cdf37632b89f4.tar.bz2
copy initramfs kernel to bin directory
SVN-Revision: 33726
Diffstat (limited to 'target/linux/ar7')
-rw-r--r--target/linux/ar7/image/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar7/image/Makefile b/target/linux/ar7/image/Makefile
index dbd482d..5580687 100644
--- a/target/linux/ar7/image/Makefile
+++ b/target/linux/ar7/image/Makefile
@@ -83,6 +83,10 @@ define Image/Build/EVA
$(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(2)-$(KERNEL)-$(1).bin)
endef
+define Image/Build/Initramfs
+ $(CP) $(KDIR)/vmlinux.bin $(BIN_DIR)/$(IMG_PREFIX)-initramfs.bin
+endef
+
define Image/Build
dd if=$(KDIR)/loader.bin $(call align/$(1)) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
cat $(KDIR)/root.$(1) >> $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
@@ -106,6 +110,9 @@ define Image/Build
# $(call Image/Build/sErCoMm,$(1),jdr454wb,$(1))
$(call Image/Build/EVA,$(1),EVA)
$(call Image/Build/Titan,$(1),Titan,Titan,$(1))
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+ $(call Image/Build/Initramfs)
+endif
endef
$(eval $(call BuildImage))