From 9b2b9ad47c4e134ad293cfaffce771a11257d2cc Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 4 Mar 2021 10:43:54 -0500 Subject: [PATCH] chore: add sample apps as submodules --- .gitmodules | 15 ++++++++++++++- runtime/tests/CMSIS_5_NN | 1 + runtime/tests/Makefile | 21 +++++++++++++++++++-- runtime/tests/TinyEKF | 1 + runtime/tests/gocr | 1 + runtime/tests/sod | 1 + 6 files changed, 37 insertions(+), 3 deletions(-) create mode 160000 runtime/tests/CMSIS_5_NN create mode 160000 runtime/tests/TinyEKF create mode 160000 runtime/tests/gocr create mode 160000 runtime/tests/sod diff --git a/.gitmodules b/.gitmodules index 6a34ae2..4d25491 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,4 +13,17 @@ path = runtime/thirdparty/jsmn url = https://github.com/gwsystems/jsmn.git [submodule "runtime/tests/gocr"] path = runtime/tests/gocr - url = https://github.com/gwsystems/gocr + url = https://github.com/gwsystems/gocr.git + branch = sledge +[submodule "runtime/tests/TinyEKF"] + path = runtime/tests/TinyEKF + url = https://github.com/gwsystems/TinyEKF.git + branch = sledge +[submodule "runtime/tests/CMSIS_5_NN"] + path = runtime/tests/CMSIS_5_NN + url = https://github.com/gwsystems/CMSIS_5_NN.git + branch = sledge +[submodule "runtime/tests/sod"] + path = runtime/tests/sod + url = https://github.com/gwsystems/sod.git + branch = sledge diff --git a/runtime/tests/CMSIS_5_NN b/runtime/tests/CMSIS_5_NN new file mode 160000 index 0000000..07ae612 --- /dev/null +++ b/runtime/tests/CMSIS_5_NN @@ -0,0 +1 @@ +Subproject commit 07ae6121fd8effdfed1faadec0a240346706a98d diff --git a/runtime/tests/Makefile b/runtime/tests/Makefile index 07fac84..6103e11 100644 --- a/runtime/tests/Makefile +++ b/runtime/tests/Makefile @@ -6,14 +6,31 @@ TESTSRT=$(TESTS:%=%_rt) .PHONY: all clean rttests -all: rttests +all: rttests tinyekf cifar10 gocr sod @echo "Compilation done!" rttests: $(TESTSRT) clean: @rm -rf ${TMP_DIR} - #@rm -f ${BIN_DIR}/*_wasm.so + @rm -rf ${SLEDGE_BIN_DIR}/*_wasm.so + +tinyekf: + make clean all -C ./TinyEKF/extras/c/ -f makefile.wasm + cp ./TinyEKF/extras/c/gps_ekf_fn.aso ${SLEDGE_BIN_DIR}/ekf_wasm.so + +cifar10: + make clean all -C ./CMSIS_5_NN/ -f Makefile + cp ./CMSIS_5_NN/tmp/cifar10.awsm.so ${SLEDGE_BIN_DIR}/cifar10_wasm.so + +gocr: + make clean all -C ./gocr/src/ -f makefile.wasm + cp ./gocr/src/gocr.aso ${SLEDGE_BIN_DIR}/gocr_wasm.so + +sod: + make clean all samples samples.wasm -C ./sod/ + cp ./sod/bin/license_plate_detection.awsm /sledge/runtime/bin/lpd_wasm.so + cp ./sod/bin/resize_image.awsm /sledge/runtime/bin/resize_wasm.so %_rt: @mkdir -p ${TMP_DIR} diff --git a/runtime/tests/TinyEKF b/runtime/tests/TinyEKF new file mode 160000 index 0000000..fe59ef0 --- /dev/null +++ b/runtime/tests/TinyEKF @@ -0,0 +1 @@ +Subproject commit fe59ef0e551746aee4d007e4516321bfbe65fe74 diff --git a/runtime/tests/gocr b/runtime/tests/gocr new file mode 160000 index 0000000..c6d88a8 --- /dev/null +++ b/runtime/tests/gocr @@ -0,0 +1 @@ +Subproject commit c6d88a8ab23bd7787d22eaa3ce9e65bbd957d62a diff --git a/runtime/tests/sod b/runtime/tests/sod new file mode 160000 index 0000000..8df9f4d --- /dev/null +++ b/runtime/tests/sod @@ -0,0 +1 @@ +Subproject commit 8df9f4d8a3fd80f06d38cae50362d507f5878ebf