diff options
author | fredizzimo <fsundvik@gmail.com> | 2016-07-02 00:22:09 +0300 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-07-01 17:22:09 -0400 |
commit | c30aba0bce989d29458bd3b56090400cb0a91d03 (patch) | |
tree | 2e45f59b758412341459372bcd7d7375e8a42e68 /util | |
parent | 4d4f7684e684bec319f166121463a88cd4a62703 (diff) |
Add ChibiOS packages to the avr_setup script (#468)
* Add ChibiOS packages to the avr_setup script
* Add git as a dependency
* Rename avr_setup.sh -> install_dependencies.sh
Also fix the Vagrant welcome message to reflect the new directory
structure.
Diffstat (limited to 'util')
-rw-r--r-- | util/install_dependencies.sh (renamed from util/avr_setup.sh) | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/util/avr_setup.sh b/util/install_dependencies.sh index 916d0378b4..24564a2ac5 100644 --- a/util/avr_setup.sh +++ b/util/install_dependencies.sh @@ -16,7 +16,11 @@ if [[ -n "$(type -P pacman )" ]]; then avr-gcc \ avr-binutils \ avr-libc \ - dfu-util + dfu-util \ + arm-none-eabi-gcc \ + arm-none-eabi-binutils \ + arm-none-eabi-newlib \ + git elif [[ -n "$(type -P apt-get)" ]]; then # Debian and derivatives @@ -39,7 +43,11 @@ elif [[ -n "$(type -P apt-get)" ]]; then binutils-avr \ avr-libc \ dfu-programmer \ - dfu-util + dfu-util \ + gcc-arm-none-eabi \ + binutils-arm-none-eabi \ + libnewlib-arm-none-eabi \ + git elif [[ -n "$(type -P yum)" ]]; then # Fedora, CentOS or RHEL and derivatives @@ -57,7 +65,14 @@ elif [[ -n "$(type -P yum)" ]]; then avr-gcc \ avr-libc \ dfu-programmer \ - dfu-util + dfu-util \ + gcc-arm-none-eabi \ + binutils-arm-none-eabi \ + libnewlib-arm-none-eabi \ + git + # The listed eabi pacackes do unfortunately not exist for CentOS, + # But at least in Fedora they do, so try to install them anyway + # TODO: Build them from sources, if the installation fails elif [[ -n "$(type -P zypper)" ]]; then # openSUSE @@ -69,6 +84,9 @@ elif [[ -n "$(type -P zypper)" ]]; then kernel-devel \ patch \ wget \ - dfu-programmer + dfu-programmer \ + git + # TODO: The avr and eabi tools are not available as default packages, so we need + # another way to install them fi |