summaryrefslogtreecommitdiff
path: root/create_tools/create_micropython.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_tools/create_micropython.sh')
-rwxr-xr-xcreate_tools/create_micropython.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/create_tools/create_micropython.sh b/create_tools/create_micropython.sh
new file mode 100755
index 0000000..0f49dae
--- /dev/null
+++ b/create_tools/create_micropython.sh
@@ -0,0 +1,25 @@
+#!/bin/dash
+
+SOURCE_DIR=src
+MPY_VERSION=1.20.0
+
+OUT_DIRECTORY=out
+
+#prepare
+_PWD=`pwd`
+
+echo "Unarchive busbox"
+cd $SOURCE_DIR
+tar -xvf micropython-$MPY_VERSION.tar.xz
+cd micropython-$MPY_VERSION
+#git submodule init
+#git submodule update
+patch -p1 < ../../config/0001-Mod-micropython.patch
+cd ports/unix
+make submodules
+make -j4
+
+#save result
+echo "Copy result to out"
+cp ./build-standard/micropython ../../../../$OUT_DIRECTORY
+