]> code.bitgloo.com Git - bitgloo/alee-forth.git/commitdiff
msp430: build reg data with bash, not make
authorClyne Sullivan <clyne@bitgloo.com>
Sat, 11 Nov 2023 17:06:02 +0000 (12:06 -0500)
committerClyne Sullivan <clyne@bitgloo.com>
Sat, 11 Nov 2023 17:06:02 +0000 (12:06 -0500)
msp430/Makefile [deleted file]
msp430/build.sh [new file with mode: 0755]

diff --git a/msp430/Makefile b/msp430/Makefile
deleted file mode 100644 (file)
index 8b91764..0000000
+++ /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 (executable)
index 0000000..3d296d3
--- /dev/null
@@ -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