boot4u/Makefile
2022-02-19 22:47:16 +09:00

20 lines
383 B
Makefile
Executable File

CROSS_COMPILE:=arm-linux-gnueabihf-
AS:=$(CROSS_COMPILE)as
CC:=$(CROSS_COMPILE)gcc
STRIP:=$(CROSS_COMPILE)strip
.PHONY:
all: AppMain.bin m4_loader.bin
.PHONY:
clean:
@rm -f *.bin *.elf
AppMain.bin:
@$(AS) main.S -o main.elf
@./extract.py -p main.elf AppMain.bin
m4_loader.bin:
@$(AS) m4_loader.S -mcpu=cortex-m4 -o m4_loader.elf
@./extract.py -p m4_loader.elf m4_loader.bin