diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-14 15:41:16 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-14 15:41:16 +0000 |
commit | 7fc94810d3cbe8770b2edbcb8a3c59a9dcf9ad83 (patch) | |
tree | 0b8837896cc1662e7873ce0cee2413140ddd38a3 /target/linux/ar7/image | |
parent | 8110efa0d3f3a5f1794fe19457de34b1084849d1 (diff) | |
download | openwrt-7fc94810d3cbe8770b2edbcb8a3c59a9dcf9ad83.tar.gz openwrt-7fc94810d3cbe8770b2edbcb8a3c59a9dcf9ad83.zip |
attitude_adjustment: backport ar7 changes r33744 to r33756 changes
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33764 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/image')
-rw-r--r-- | target/linux/ar7/image/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/ar7/image/Makefile b/target/linux/ar7/image/Makefile index d27c2e888..6278b3127 100644 --- a/target/linux/ar7/image/Makefile +++ b/target/linux/ar7/image/Makefile @@ -41,7 +41,9 @@ define Image/Prepare $(LOADER_MAKEOPTS) \ clean compile $(OBJCOPY_SREC) $(KDIR)/loader.elf $(KDIR)/loader.srec + $(OBJCOPY_SREC) $(KDIR)/vmlinux.elf $(KDIR)/vmlinux.srec srec2bin $(KDIR)/loader.srec $(KDIR)/loader.bin + srec2bin $(KDIR)/vmlinux.srec $(KDIR)/vmlinux.bin endef define align/jffs2-64k @@ -53,7 +55,6 @@ bs=131072 conv=sync endef define align/squashfs -bs=65536 conv=sync endef define Image/Build/CyberTAN @@ -81,6 +82,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 @@ -104,6 +109,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)) |