osx-cross / homebrew-avr

Homebrew AVR Toolchain
BSD 2-Clause "Simplified" License
396 stars 79 forks source link
arduino avr avr-gcc avr-programming avr-toolchain brew homebrew

homebrew-avr

This repository contains the GNU AVR Toolchain as formulae for Homebrew.

AVR is a popular family of micro-controllers, used for example in the Arduino project.

Current Versions

Support for older GCC versions (4, 6, 7) has been removed. Please, raise an issue if you need one back.

Installing homebrew-avr formulae

First, make sure you have xcode command line developer tools installed with

$ xcode-select --install

Then, just run the following to install the latest version of avr-gcc:

$ brew tap osx-cross/avr
$ brew install avr-gcc

If you want to install a different version:

$ brew install avr-gcc@{x}

Where {x} being the version number such as avr-gcc@8 or avr-gcc@10

Note: only the default version will be available in your $PATH. The other ones are keg-only and thus won't be available in /usr/local/bin.

You can run brew info avr-gcc or brew info avr-gcc@{x} for more information on the flags available.

Docs

brew info avr-gcc, brew help, man brew, or the Homebrew documentation.

Thanks

This repository is based on the works of: