boot4u/Makefile

20 lines
383 B
Makefile
Raw Permalink Normal View History

2021-10-14 01:23:15 +09:00
CROSS_COMPILE:=arm-linux-gnueabihf-
AS:=$(CROSS_COMPILE)as
CC:=$(CROSS_COMPILE)gcc
STRIP:=$(CROSS_COMPILE)strip
.PHONY:
2021-11-30 22:56:47 +09:00
all: AppMain.bin m4_loader.bin
2021-10-14 01:23:15 +09:00
.PHONY:
clean:
@rm -f *.bin *.elf
AppMain.bin:
@$(AS) main.S -o main.elf
@./extract.py -p main.elf AppMain.bin
2021-11-30 22:56:47 +09:00
m4_loader.bin:
@$(AS) m4_loader.S -mcpu=cortex-m4 -o m4_loader.elf
@./extract.py -p m4_loader.elf m4_loader.bin