Add rules to build armv4_5_erase_check.inc, and convert the code to target endianness the least intrusive way. Drop an unused word from the assembler sources to make the ARM bytecode fully match that of armv4_5.c and to not break ARMv4 assumptions. This completes the build rules for contrib/loaders/erase_check directory. Change-Id: I36be7a944e26142088195fa3fb072d4e577bf328 Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/3135 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
29 lines
582 B
Makefile
29 lines
582 B
Makefile
BIN2C = ../../../src/helper/bin2char.sh
|
|
|
|
ARM_CROSS_COMPILE ?= arm-none-eabi-
|
|
ARM_AS ?= $(ARM_CROSS_COMPILE)as
|
|
ARM_OBJCOPY ?= $(ARM_CROSS_COMPILE)objcopy
|
|
|
|
arm: armv4_5_erase_check.inc armv7m_erase_check.inc armv7m_0_erase_check.inc
|
|
|
|
armv4_5_%.elf: armv4_5_%.s
|
|
$(ARM_AS) $< -o $@
|
|
|
|
armv4_5_%.bin: armv4_5_%.elf
|
|
$(ARM_OBJCOPY) -Obinary $< $@
|
|
|
|
armv4_5_%.inc: armv4_5_%.bin
|
|
$(BIN2C) < $< > $@
|
|
|
|
armv7m_%.elf: armv7m_%.s
|
|
$(ARM_AS) $< -o $@
|
|
|
|
armv7m_%.bin: armv7m_%.elf
|
|
$(ARM_OBJCOPY) -Obinary $< $@
|
|
|
|
armv7m_%.inc: armv7m_%.bin
|
|
$(BIN2C) < $< > $@
|
|
|
|
clean:
|
|
-rm -f *.elf *.bin *.inc
|