Last active
January 13, 2022 07:38
-
-
Save yswallow/d4709421edd173d8f314a58bd9680764 to your computer and use it in GitHub Desktop.
PRKのcloneからビルドまでを自動化するスクリプト(pacmanやaptでインストールするパッケージは含まない)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rbenv install 3.0.0 | |
# rbenv install mruby-3.0.0 | |
git clone https://github.com/yswallow/prk_firmware.git | |
export PRK_HOME=$(pwd)/prk_firmware | |
cd $PRK_HOME | |
git checkout monkey | |
git submodule update --init | |
cd $PRK_HOME/lib/picoruby | |
git submodule update --init | |
cd $PRK_HOME/src/ruby | |
bundle install | |
cd $PRK_HOME | |
git clone https://github.com/raspberrypi/pico-sdk.git | |
export PICO_SDK_PATH=$PRK_HOME/pico-sdk | |
cd $PICO_SDK_PATH | |
git submodule update --init | |
cd $PRK_HOME/lib/picoruby/src/mrubyc | |
bundle install | |
make | |
cd $PRK_HOME/lib/picoruby | |
make host_production_libc | |
make | |
cd $PRK_HOME/build | |
cmake ../ | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment