aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/malta/image
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2017-10-13 14:21:53 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2017-10-26 12:26:25 +0200
commit6f528dfbd91f8e687e36300ab9284d16b78475b4 (patch)
tree75faf15e1027816412a81959e2a344f8118e3d84 /target/linux/malta/image
parent21e59ee3a2310ba1ec80b07614991318c014610e (diff)
downloadupstream-6f528dfbd91f8e687e36300ab9284d16b78475b4.tar.gz
upstream-6f528dfbd91f8e687e36300ab9284d16b78475b4.tar.bz2
upstream-6f528dfbd91f8e687e36300ab9284d16b78475b4.zip
treewide: do not use IMG_PREFIX in Image/Prepare
IMG_PREFIX can be modified in ImageBuilder by passing EXTRA_IMAGE_NAME on command line, but Image/Prepare is not run in ImageBuilder. This causes missing files when IMG_PREFIX is used for target file names in Image/Prepare, then as source file names in Image/BuildKernel or Image/Build. Fix this by using a fixed output file name in Image/Prepare, and copy to the expected file name in Image/BuildKernel instead, which is run by ImageBuilder. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/malta/image')
-rw-r--r--target/linux/malta/image/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/malta/image/Makefile b/target/linux/malta/image/Makefile
index 31eb7ca0bb..d49d4a762d 100644
--- a/target/linux/malta/image/Makefile
+++ b/target/linux/malta/image/Makefile
@@ -22,7 +22,6 @@ define MkuImage
endef
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,$(KDIR)/uImage.lzma)
$(call CompressGzip,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.gz)
@@ -30,6 +29,7 @@ define Image/Prepare
endef
define Image/BuildKernel
+ cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
cp $(KDIR)/uImage.lzma $(BIN_DIR)/$(IMG_PREFIX)-uImage-lzma
cp $(KDIR)/uImage.gz $(BIN_DIR)/$(IMG_PREFIX)-uImage-gzip
endef