aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-11-11 12:06:02 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-11-11 12:06:02 -0500
commitfbaf08aa6c7ef456f090809a5b71288d30f188da (patch)
treed3e6b64d1ee2d0aac5bb75efb1ee05e2ec221fcf
parent957cf676ff1dbf5973b7ad04d843400a647fab14 (diff)
msp430: build reg data with bash, not make
-rw-r--r--msp430/Makefile12
-rwxr-xr-xmsp430/build.sh9
2 files changed, 9 insertions, 12 deletions
diff --git a/msp430/Makefile b/msp430/Makefile
deleted file mode 100644
index 8b91764..0000000
--- a/msp430/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-dict: lzss
- cat msp430fr2476_symbols.ld | grep "^PROVIDE.*" | sed -e "s/^PROVIDE(//" -e "s/[ ][ ]*//" -e "s/=.0x/\\\\x/" -e "s/..);/\\\\x&/" -e "s/);//" > msp430fr2476_symbols.dat
- grep -E "^#define \w+\s+\([0-9].*$$" msp430fr2476.h | sed -e "s/).*$$/)/" -e "s/^#define //" -e "s/[ ][ ]*//" -e "s/(0x/\\\\x/" -e "s/..)/\\\\x&/" -e "s/)//" -e "s/(/\\\\x/" -e "s/\\\\x\\\\/\\\\x00\\\\/" > msp430fr2476.dat
- cat msp430fr2476_symbols.dat msp430fr2476.dat | tr '\n' '\373' | tr -d '\r' > msp430fr2476_all.dat
- @echo "printf ... > msp430fr2476_all.bin"
- @printf "$(shell cat msp430fr2476_all.dat)" > msp430fr2476_all.bin
- ./lzss e msp430fr2476_all.bin msp430fr2476_all.lzss
- ls -l msp430fr2476_all.lzss
- xxd -i msp430fr2476_all.lzss > msp430fr2476_all.h
-
-lzss: lzss.c
-
diff --git a/msp430/build.sh b/msp430/build.sh
new file mode 100755
index 0000000..3d296d3
--- /dev/null
+++ b/msp430/build.sh
@@ -0,0 +1,9 @@
+#!/bin/bash -x
+
+cat msp430fr2476_symbols.ld | grep "^PROVIDE.*" | sed -e "s/^PROVIDE(//" -e "s/[ ][ ]*//" -e "s/=.0x/\\\\x/" -e "s/..);/\\\\x&/" -e "s/);//" > msp430fr2476_symbols.dat
+grep -E "^#define \w+\s+\([0-9].*$" msp430fr2476.h | sed -e "s/).*$/)/" -e "s/^#define //" -e "s/[ ][ ]*//" -e "s/(0x/\\\\x/" -e "s/..)/\\\\x&/" -e "s/)//" -e "s/(/\\\\x/" -e "s/\\\\x\\\\/\\\\x00\\\\/" > msp430fr2476.dat
+cat msp430fr2476_symbols.dat msp430fr2476.dat | tr '\n' '\373' | tr -d '\r' > msp430fr2476_all.dat
+echo -e "$(cat msp430fr2476_all.dat)" > msp430fr2476_all.bin
+./lzss e msp430fr2476_all.bin msp430fr2476_all.lzss
+ls -l msp430fr2476_all.lzss
+xxd -i msp430fr2476_all.lzss > msp430fr2476_all.h