掌機 - Miyoo Mini Plus - Build Super Mario War



參考資訊:
https://stackoverflow.com/questions/5098360/cmake-specifying-build-toolchain

步驟如下:

$ cd
$ wget https://github.com/steward-fu/website/releases/download/miyoo-mini/toolchain.tar.gz
$ tar xvf toolchain.tar.gz
$ sudo mv mmiyoo /opt
$ sudo mv prebuilt /opt
$ export PATH=/opt/mmiyoo/bin/:$PATH

$ wget https://github.com/steward-fu/website/releases/download/miyoo-mini-plus/src_smw.zip
$ unzip src_smw.zip
$ mkdir -p supermariowar/build
$ cd supermariowar/build

$ export CROSS=/opt/mmiyoo/bin/arm-linux-gnueabihf-
$ export CC=${CROSS}gcc
$ export AR=${CROSS}ar
$ export AS=${CROSS}as
$ export LD=${CROSS}ld
$ export CXX=${CROSS}g++
$ export HOST=arm-linux
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=/opt/mmiyoo/share/buildroot/toolchainfile.cmake
$ make -j4