aboutsummaryrefslogtreecommitdiffstats
path: root/filter/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-08-20 17:06:47 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-08-20 17:06:47 -0400
commit989f4038c6d2a3e5bbee04fa25df181810af621e (patch)
tree73987829cac7e15ab8763211bcef582ec885f3a2 /filter/Makefile
parent2ceb20f4d48a8f163528f86fda484e977438bc80 (diff)
parent29e4b4cf091dd47c9f435ef1d315a1609b83fb19 (diff)
merge elf loading and adc streaming
Diffstat (limited to 'filter/Makefile')
-rw-r--r--filter/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/filter/Makefile b/filter/Makefile
new file mode 100644
index 0000000..a1ce186
--- /dev/null
+++ b/filter/Makefile
@@ -0,0 +1,14 @@
+all:
+ @arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Os --specs=nosys.specs -nostartfiles -fPIE -c test.cpp
+ @arm-none-eabi-ld -shared -n -N -z max-page-size=512 -Ttext-segment=0 \
+ test.o -o test.so
+ @arm-none-eabi-strip -s -S --strip-unneeded test.so
+ @arm-none-eabi-objcopy --remove-section .dynsym \
+ --remove-section .dynstr \
+ --remove-section .dynamic \
+ --remove-section .hash \
+ --remove-section .ARM.exidx \
+ --remove-section .ARM.attributes \
+ --remove-section .comment \
+ test.so
+