From 95ea03431757a829f0018b2950519add508d2629 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Thu, 31 Aug 2023 10:07:55 +0100 Subject: Add micropython building script --- create_tools/create_micropython.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 create_tools/create_micropython.sh (limited to 'create_tools/create_micropython.sh') 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 + -- cgit v1.2.3