From 6292c1101121bc8ba2db752cab3cbe41469b29d0 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 30 Mar 2023 15:10:17 +0200 Subject: new spi system --- test/ppu-stm-integration-demo/makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/ppu-stm-integration-demo/makefile') diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile index 7d7a7c8..2f4b6f4 100644 --- a/test/ppu-stm-integration-demo/makefile +++ b/test/ppu-stm-integration-demo/makefile @@ -4,12 +4,8 @@ TARGETS := test-background-color.h test-image.h test-image.tb.vhd all: $(TARGETS) -%.h: %.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 "};" }' >> $@ +%.h: %.txt ./data2test.awk + tr -d ':' < $< | ./data2test.awk > $@ test-%.tb.vhd: test-%.txt ./data2vhdltb.awk tr -d ':' < $< | ./data2vhdltb.awk > $@ -- cgit v1.2.3