You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
399 B

  1. BIN2C = ../../../src/helper/bin2char.sh
  2. ARM_CROSS_COMPILE ?= arm-none-eabi-
  3. ARM_AS ?= $(ARM_CROSS_COMPILE)as
  4. ARM_OBJCOPY ?= $(ARM_CROSS_COMPILE)objcopy
  5. arm: armv7m_erase_check.inc armv7m_0_erase_check.inc
  6. armv7m_%.elf: armv7m_%.s
  7. $(ARM_AS) $< -o $@
  8. armv7m_%.bin: armv7m_%.elf
  9. $(ARM_OBJCOPY) -Obinary $< $@
  10. armv7m_%.inc: armv7m_%.bin
  11. $(BIN2C) < $< > $@
  12. clean:
  13. -rm -f *.elf *.bin *.inc