copy initramfs kernel to bin directory
authorFlorian Fainelli <florian@openwrt.org>
Thu, 11 Oct 2012 15:45:24 +0000 (15:45 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 11 Oct 2012 15:45:24 +0000 (15:45 +0000)
SVN-Revision: 33726

target/linux/ar7/image/Makefile

index dbd482da198aa698a10b2c26ebe84d350b29d0f6..5580687bed00247dbfd74dc8cbf0fef64e894d6f 100644 (file)
@@ -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))