qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

macos.sh (1172B)


      1 #!/usr/bin/env bash
      2 
      3 _qmk_install_prepare() {
      4     echo "Checking Homebrew installation"
      5 
      6     if ! brew --version >/dev/null 2>&1; then
      7         echo "Error! Homebrew is broken or not installed."
      8         echo "Please run \`brew doctor\` or follow the installation instructions at https://brew.sh/, then re-run this script."
      9         return 1
     10     fi
     11 
     12     # Conflicts with arm-none-eabi toolchain from osx-cross
     13     brew uninstall --ignore-dependencies --cask gcc-arm-embedded >/dev/null 2>&1
     14     brew uninstall --ignore-dependencies homebrew/core/arm-none-eabi-gcc >/dev/null 2>&1
     15     brew uninstall --ignore-dependencies homebrew/core/arm-none-eabi-binutils >/dev/null 2>&1
     16     brew uninstall --ignore-dependencies osx-cross/arm/arm-gcc-bin@8 >/dev/null 2>&1
     17 
     18     brew update && brew upgrade --formulae
     19 }
     20 
     21 _qmk_install() {
     22     echo "Installing dependencies"
     23 
     24     # All macOS & Python dependencies are managed in the Homebrew package:
     25     #   https://github.com/qmk/homebrew-qmk
     26     brew install qmk/qmk/qmk
     27 
     28     # Keg-only, so need to be manually linked
     29     brew link --force avr-gcc@8
     30     brew link --force arm-none-eabi-binutils
     31     brew link --force arm-none-eabi-gcc@8
     32 }