malta: fix imagebuilder
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 28 May 2015 12:05:57 +0000 (12:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 28 May 2015 12:05:57 +0000 (12:05 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 45804

target/linux/malta/image/Makefile

index c8f15fd9732f21b5db00c019574ff081191782a7..3f14756a729bfd37914d7c39001ab6b9a1149df1 100644 (file)
@@ -25,12 +25,17 @@ define MkuImage
                -d $(3) $(4)
 endef
 
-define Image/BuildKernel
+define Image/Prepare
        cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
        $(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
-       $(call MkuImage,lzma,,$(KDIR)/vmlinux.bin.lzma,$(BIN_DIR)/$(IMG_PREFIX)-uImage-lzma)
+       $(call MkuImage,lzma,,$(KDIR)/vmlinux.bin.lzma,$(KDIR)/uImage.lzma)
        $(call CompressGzip,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.gz)
-       $(call MkuImage,gzip,,$(KDIR)/vmlinux.bin.gz,$(BIN_DIR)/$(IMG_PREFIX)-uImage-gzip)
+       $(call MkuImage,gzip,,$(KDIR)/vmlinux.bin.gz,$(KDIR)/uImage.gz)
+endef
+
+define Image/BuildKernel
+       cp $(KDIR)/uImage.lzma $(BIN_DIR)/$(IMG_PREFIX)-uImage-lzma
+       cp $(KDIR)/uImage.gz $(BIN_DIR)/$(IMG_PREFIX)-uImage-gzip
 endef
 
 define Image/Build/squashfs