diff options
| author | chax <mislav.cakaric@homecontrol.no> | 2019-05-21 12:01:11 +0200 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-05-26 10:11:38 -0700 |
| commit | 7fbb253f88b6a87f5d39662273b4d6e57619de53 (patch) | |
| tree | d1cfb8a8a3665d88f79cba43ea1fd032855121ed /util/linux_install.sh | |
| parent | fe8c2209ca9172352cb46cc6cf7800e4998849ea (diff) | |
| download | qmk_firmware-7fbb253f88b6a87f5d39662273b4d6e57619de53.tar.gz qmk_firmware-7fbb253f88b6a87f5d39662273b4d6e57619de53.zip | |
Add Solus support to linux_install.sh script
Diffstat (limited to 'util/linux_install.sh')
| -rwxr-xr-x | util/linux_install.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh index df7039e09..fb003270b 100755 --- a/util/linux_install.sh +++ b/util/linux_install.sh | |||
| @@ -6,6 +6,8 @@ GENTOO_WARNING="This script will make a USE change in order to ensure that that | |||
| 6 | 6 | ||
| 7 | SLACKWARE_WARNING="You will need the following packages from slackbuilds.org:\n\tarm-binutils\n\tarm-gcc\n\tavr-binutils\n\tavr-gcc\n\tavr-libc\n\tavrdude\n\tdfu-programmer\n\tdfu-util\n\tnewlib\nThese packages will be installed with sudo and sboinstall, so ensure that your user is added to sudoers and that sboinstall is configured." | 7 | SLACKWARE_WARNING="You will need the following packages from slackbuilds.org:\n\tarm-binutils\n\tarm-gcc\n\tavr-binutils\n\tavr-gcc\n\tavr-libc\n\tavrdude\n\tdfu-programmer\n\tdfu-util\n\tnewlib\nThese packages will be installed with sudo and sboinstall, so ensure that your user is added to sudoers and that sboinstall is configured." |
| 8 | 8 | ||
| 9 | SOLUS_INFO="Your tools are now installed. To start using them, open new terminal or source these scripts:\n\t/usr/share/defaults/etc/profile.d/50-arm-toolchain-path.sh\n\t/usr/share/defaults/etc/profile.d/50-avr-toolchain-path.sh" | ||
| 10 | |||
| 9 | if grep ID /etc/os-release | grep -qE "fedora"; then | 11 | if grep ID /etc/os-release | grep -qE "fedora"; then |
| 10 | sudo dnf install \ | 12 | sudo dnf install \ |
| 11 | arm-none-eabi-binutils-cs \ | 13 | arm-none-eabi-binutils-cs \ |
| @@ -155,6 +157,25 @@ elif grep ID /etc/os-release | grep -q slackware; then | |||
| 155 | echo "Quitting..." | 157 | echo "Quitting..." |
| 156 | fi | 158 | fi |
| 157 | 159 | ||
| 160 | elif grep ID /etc/os-release | grep -q solus; then | ||
| 161 | sudo eopkg it \ | ||
| 162 | -c system.devel \ | ||
| 163 | arm-none-eabi-gcc \ | ||
| 164 | arm-none-eabi-binutils \ | ||
| 165 | arm-none-eabi-newlib \ | ||
| 166 | avr-libc \ | ||
| 167 | avr-binutils \ | ||
| 168 | avr-gcc \ | ||
| 169 | avrdude \ | ||
| 170 | dfu-util \ | ||
| 171 | dfu-programmer \ | ||
| 172 | python3 \ | ||
| 173 | git \ | ||
| 174 | wget \ | ||
| 175 | zip \ | ||
| 176 | unzip | ||
| 177 | printf "\n$SOLUS_INFO\n" | ||
| 178 | |||
| 158 | else | 179 | else |
| 159 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" | 180 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" |
| 160 | echo | 181 | echo |
