include board (target) in filename, files are now called like

bootloader-sysmooctsim-0.1.1-5554-dirty.elf

Change-Id: Ibdde1c02d5dd3bcd714bae1d374397d9596fede0
This commit is contained in:
Harald Welte 2019-11-11 19:13:07 +01:00
parent 5554133528
commit 397966fa3c
2 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,7 @@ make
The board name can be set in 'gcc/Makefile' *BOARD* variable, or provided while compiling (e.g. `make BOARD=SAME54_XPLAINED_PRO`).
*SAME54_XPLAINED_PRO* is the default value.
The resulting firmware binary is `bootloader.bin`.
The resulting firmware binary is `bootloader-$(BOARD)-$(GIT_VERSION).bin`.
Flashing
========
@ -66,7 +66,7 @@ To flash the bootloader using the [edbg tool](https://github.com/ataradov/edbg)
To flash the USB DFU bootloader, perform the following actions:
* remove reserved bootloader space so we can erase it: `edbg --target atmel_cm4v2 --fuse wv,29:26,15`
* erase the whole flash: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --erase`
* program the bootloader: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --program --verify --file bootloader.bin`
* program the bootloader: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --program --verify --file bootloader-BOARD-XXXX.bin`
* reserve bootloader space: `edbg --target atmel_cm4v2 --fuse wv,29:26,13`
SWJ

View File

@ -169,7 +169,8 @@ DEPS_AS_ARGS += \
"gcc/system_same54.d" \
"atmel_start.d"
OUTPUT_FILE_NAME := bootloader-$(GIT_VERSION)
BOARD_LC := $(shell echo $(BOARD) | tr A-Z a-z)
OUTPUT_FILE_NAME := bootloader-$(BOARD_LC)-$(GIT_VERSION)
QUOTE := "
OUTPUT_FILE_PATH +=$(OUTPUT_FILE_NAME).elf
OUTPUT_FILE_PATH_AS_ARGS +=$(OUTPUT_FILE_NAME).elf