imx6: fix file names when building images
authorLuka Perkov <luka@openwrt.org>
Thu, 17 Oct 2013 11:54:52 +0000 (11:54 +0000)
committerLuka Perkov <luka@openwrt.org>
Thu, 17 Oct 2013 11:54:52 +0000 (11:54 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38434

target/linux/imx6/image/Makefile

index aad15271a03b7e95a9e3f63f237d201d3c729e68..a0772727d295ef8d6c5bb6777a29d0f48c9ac6e0 100644 (file)
@@ -34,7 +34,7 @@ endef
 
 # board-specific sysupgrade image
 define BuildFirmware/Generic
-       dd if=$(BIN_DIR)/openwrt-$(1)-uImage.itb of=$(KDIR)/uImage.pad bs=64k conv=sync; \
+       dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage.itb of=$(KDIR)/uImage.pad bs=64k conv=sync; \
        dd if=$(KDIR)/root.$(2) of=$(KDIR)/root.$(2).pad bs=128k conv=sync; \
        sh $(TOPDIR)/scripts/combined-image.sh \
                $(KDIR)/uImage.pad \
@@ -52,10 +52,10 @@ endef
 # rootfs and board-specific combined kernel+rootfs for convenience
 define Image/Build/squashfs
        $(call prepare_generic_squashfs,$(KDIR)/root.$(1))
-       dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=128k conv=sync
+       dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=128k conv=sync; \
        $(foreach board,$(BOARDS),
                ( \
-               dd if=$(BIN_DIR)/openwrt-$(board)-uImage.itb bs=2048k conv=sync; \
+               dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(board)-uImage.itb bs=2048k conv=sync; \
                dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
                ) > $(BIN_DIR)/$(IMG_PREFIX)-$(board)-$(1).bin
        )