2024-07-07 17:37:04 +02:00
|
|
|
include config/config.mk
|
|
|
|
|
|
|
|
TARGET := sentinel-65x-512K
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: build/$(TARGET).bin
|
|
|
|
|
2024-07-08 05:08:08 +02:00
|
|
|
include config/kernel.mk
|
2024-07-07 17:37:04 +02:00
|
|
|
|
2024-07-11 07:50:40 +02:00
|
|
|
build/$(TARGET).bin: build/kernel.bin
|
2024-07-07 17:37:04 +02:00
|
|
|
#Create an empty .bin file.
|
|
|
|
@dd if=/dev/zero of=$@ bs=1024 count=512
|
|
|
|
|
2024-07-11 07:51:39 +02:00
|
|
|
# Add the kernel module at offset 0x000000
|
2024-07-11 07:50:40 +02:00
|
|
|
@dd if=build/kernel.bin of=$@ conv=notrunc
|
2024-07-07 17:37:04 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@find build -type f \( \
|
|
|
|
-name '*.pgz' -o \
|
|
|
|
-name '*.bin' -o \
|
|
|
|
-name '*.elf' -o \
|
|
|
|
-name '*.a' -o \
|
2024-07-16 05:37:08 +02:00
|
|
|
-name '*.lst' -o \
|
|
|
|
-name '*.list' \
|
2024-07-07 17:37:04 +02:00
|
|
|
\) -delete
|
|
|
|
@find src -type f \( \
|
2024-07-12 08:55:55 +02:00
|
|
|
-name '*.o' -o \
|
|
|
|
-name '*.bin' \
|
2024-07-16 05:37:08 +02:00
|
|
|
-name '*.lst' -o \
|
|
|
|
-name '*.list' \
|
2024-07-07 17:37:04 +02:00
|
|
|
\) -delete
|
|
|
|
|
|
|
|
.PHONY: flash
|
2024-07-11 07:50:40 +02:00
|
|
|
flash: build/$(TARGET).bin
|
2024-07-07 17:37:04 +02:00
|
|
|
$(MP) $(MPFLAGS) -w $<
|