Skip to content

Instantly share code, notes, and snippets.

@yswallow
Last active January 13, 2022 07:38
Show Gist options
  • Save yswallow/d4709421edd173d8f314a58bd9680764 to your computer and use it in GitHub Desktop.
Save yswallow/d4709421edd173d8f314a58bd9680764 to your computer and use it in GitHub Desktop.
PRKのcloneからビルドまでを自動化するスクリプト(pacmanやaptでインストールするパッケージは含まない)
# 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