You've already forked ATOM-and-Module-Display-FPGA-Source
mirror of
https://github.com/m5stack/ATOM-and-Module-Display-FPGA-Source.git
synced 2026-05-20 10:59:51 -07:00
25 lines
602 B
Makefile
25 lines
602 B
Makefile
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
.PHONY: all clean
|
|
|
|
TARGET ?= atomdisplay
|
|
BITSTREAM_RLE = ../eda/$(TARGET)/build/$(TARGET)/impl/pnr/$(TARGET).rle
|
|
BITSTREAM_HEADER = ./libraries/M5GFX/src/lgfx/v1/panel/Panel_M5HDMI_FS.h
|
|
|
|
all: $(BITSTREAM_RLE)
|
|
cp $(BITSTREAM_RLE) fs_bitstream.rle
|
|
xxd -c 16 -i fs_bitstream.rle > fs_bitstream.h
|
|
echo -n "static constexpr const " > $(BITSTREAM_HEADER)
|
|
cat fs_bitstream.h >> $(BITSTREAM_HEADER)
|
|
platformio run -t upload
|
|
|
|
monitor:
|
|
miniterm /dev/ttyUSB0 115200 --raw
|
|
|
|
|
|
$(BITSTREAM_RLE):
|
|
cd ../eda/$(TARGET); make rle
|
|
|
|
clean:
|
|
-@$(RM) fs_bitstream.*
|
|
-@$(RM) -r .pio
|