From ec7b1726e60f6077fc90d736e8224b9473534d79 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 13 Mar 2023 20:38:34 +0100 Subject: untested POC --- test/ppu-stm-integration-demo/makefile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/ppu-stm-integration-demo/makefile (limited to 'test/ppu-stm-integration-demo/makefile') diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile new file mode 100644 index 0000000..715a22b --- /dev/null +++ b/test/ppu-stm-integration-demo/makefile @@ -0,0 +1,6 @@ +data.h: data.txt + echo "#pragma once" > $@ + echo "#include " >> $@ + (printf "#define HH_PPUINTDEMO_LENGTH "; wc -l < $<) >> $@ + tr -d ':' < $< | awk 'BEGIN { printf "const uint16_t HH_PPUINTDEMO_ADDR[] = { " } 1 { printf "0x"$$1", " } END { print "};" }' >> $@ + tr -d ':' < $< | awk 'BEGIN { printf "const uint16_t HH_PPUINTDEMO_DATA[] = { " } 1 { printf "0x"$$2", " } END { print "};" }' >> $@ -- cgit v1.2.3