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
300 B

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