aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.test.include9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include
index d310290b4..1e3eaea88 100644
--- a/src/Makefile.test.include
+++ b/src/Makefile.test.include
@@ -221,3 +221,12 @@ endif
echo "};};"; \
} > "[email protected]" && mv -f "[email protected]" "$@"
@echo "Generated $@"
+
+%.raw.h: %.raw
+ @$(MKDIR_P) $(@D)
+ @{ \
+ echo "static unsigned const char $(*F)[] = {" && \
+ $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
+ echo "};"; \
+ } > "[email protected]" && mv -f "[email protected]" "$@"
+ @echo "Generated $@"