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:
|
2022-02-21 06:29:21 +09:00
|
|
|
@rm -f *.bin *.elf pixels.c
|
2021-10-14 01:23:15 +09:00
|
|
|
|
2022-02-21 06:29:21 +09:00
|
|
|
pixels.c:
|
|
|
|
@python3 img2c.py image.jpg pixels.c
|
|
|
|
|
|
|
|
AppMain.bin: pixels.c
|
|
|
|
@$(CC) -nostdlib -static -fPIC -mcpu=cortex-a7 main.S pixels.c -o main.elf
|
2021-10-14 01:23:15 +09:00
|
|
|
@./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
|