diff options
author | FreeArtMan <dos21h@gmail.com> | 2023-08-31 10:07:55 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2023-08-31 10:07:55 +0100 |
commit | 95ea03431757a829f0018b2950519add508d2629 (patch) | |
tree | 497cd701558e21c58c4c447322e7a5caa5edafa3 /create_tools/create_micropython.sh | |
parent | b45185d2a439802d6bf2cd0b0a8b0cd4cfea1b53 (diff) | |
download | os201-95ea03431757a829f0018b2950519add508d2629.tar.gz os201-95ea03431757a829f0018b2950519add508d2629.zip |
Add micropython building script
Diffstat (limited to 'create_tools/create_micropython.sh')
-rwxr-xr-x | create_tools/create_micropython.sh | 25 |
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 + |