Created
October 24, 2021 04:30
-
-
Save akagisho/614fa65a857829588e503b9488582710 to your computer and use it in GitHub Desktop.
Vagrantfile for Keyboard Quantizer
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
Vagrant.configure('2') do |config| | |
config.vm.box = 'ubuntu/focal64' | |
config.vm.hostname = 'qmk' | |
config.vm.provider :virtualbox do |vb| | |
vb.gui = false | |
end | |
config.vm.provision 'shell', inline: <<-SHELL | |
apt update | |
apt -y upgrade | |
apt -y install gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib python3-pip | |
pip3 install --upgrade pip | |
cd /root | |
if [ ! -f pico_setup.sh ]; then | |
curl -OL https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh | |
chmod +x pico_setup.sh | |
export SKIP_VSCODE=1 | |
export SKIP_UART=1 | |
./pico_setup.sh | |
cp -pr /root/pico/pico-sdk /usr/local/lib/ | |
fi | |
cd /home/vagrant | |
if [ ! -d qmk_quantizer ]; then | |
git clone https://github.com/sekigon-gonnoc/qmk_firmware.git -b rp2040 qmk_quantizer | |
chown -R vagrant qmk_quantizer | |
cd qmk_quantizer | |
./util/qmk_install.sh | |
python3 -m pip install qmk | |
sudo -u vagrant python3 -m pip install --user -r requirements.txt | |
fi | |
cd /home/vagrant/qmk_quantizer | |
sudo -u vagrant PICO_SDK_PATH=/usr/local/lib/pico-sdk make keyboard_quantizer/rp:default:uf2 | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment