include config/config.mk TARGET := sentinel-65x-512K .PHONY: all all: build/$(TARGET).bin include config/kernel.mk build/$(TARGET).bin: build/kernel.bin #Create an empty .bin file. @dd if=/dev/zero of=$@ bs=1024 count=512 # Add the kernel module at offset 0x000000 @dd if=build/kernel.bin of=$@ conv=notrunc .PHONY: clean clean: @find build -type f \( \ -name '*.pgz' -o \ -name '*.bin' -o \ -name '*.elf' -o \ -name '*.a' -o \ -name '*.lst' -o \ -name '*.list' \ \) -delete @find src -type f \( \ -name '*.o' -o \ -name '*.bin' \ -name '*.lst' -o \ -name '*.list' \ \) -delete .PHONY: flash flash: build/$(TARGET).bin $(MP) $(MPFLAGS) -w $<