diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-13 20:38:34 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-13 20:38:34 +0100 |
commit | ec7b1726e60f6077fc90d736e8224b9473534d79 (patch) | |
tree | 988b9766edeef9ccabd1a3ddefa9723dadc095ec /test/ppu-stm-integration-demo/makefile | |
parent | 994e96753aeb65080001530b1e62e070c975f4f1 (diff) |
untested POC
Diffstat (limited to 'test/ppu-stm-integration-demo/makefile')
-rw-r--r-- | test/ppu-stm-integration-demo/makefile | 6 |
1 files changed, 6 insertions, 0 deletions
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 <stdint.h>" >> $@ + (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 "};" }' >> $@ |