#!/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