aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2018-11-13 14:19:18 +0100
committerronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com>2018-12-10 15:41:43 +0000
commite20e22dc29b3fa8f9aeca502452a6b364722abb9 (patch)
treee8dff5586f25085bd5b0ede33531a647f349a2e5 /tools
parent014cd1670778bc979b641d1bc09d63b5fd1a2c18 (diff)
build: Name firmware bin and elf file by the name of the firmware
Having different file names makes it easier to differentiate the firmware binaries. It also removes the need for renaming them when they are placed in a common directory. The firmware.bin binary file is still generated by the build system. A subsequent patch will remove its generation giving time to remove any dependency on it. Change-Id: Id38c20d667f802f18abf090b0c331b796c2ce23d Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/build_system/firmware.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/build_system/firmware.mk b/tools/build_system/firmware.mk
index 95e2733a..af10c9f8 100644
--- a/tools/build_system/firmware.mk
+++ b/tools/build_system/firmware.mk
@@ -80,7 +80,7 @@ OBJ_DIR := $(BUILD_FIRMWARE_DIR)/$(MODE)/obj
PRODUCT_MODULES_DIR := $(PRODUCT_DIR)/module
FIRMWARE_DIR := $(PRODUCT_DIR)/$(FIRMWARE)
-TARGET := $(BIN_DIR)/firmware
+TARGET := $(BIN_DIR)/$(FIRMWARE)
TARGET_BIN := $(TARGET).bin
TARGET_ELF := $(TARGET).elf
@@ -297,5 +297,5 @@ $(SCATTER_PP): $(SCATTER_SRC) | $$(@D)/
$(TARGET_BIN): $(TARGET_ELF) | $$(@D)/
$(call show-action,BIN,$@)
$(OBJCOPY) $< $(OCFLAGS) $@
-
+ cp $@ $(BIN_DIR)/firmware.bin
endif