Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test_px4_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
run: echo "${{ github.workspace }}/px4-autopilot/venv/bin" >> "$GITHUB_PATH"

- name: Install formula
run: brew install --build-from-source ${{ matrix.formula }}
run: |
brew install --build-from-source ${{ matrix.formula }}
brew link --overwrite --force arm-gcc-bin@13

- name: Run formula tests
run: brew test ${{ matrix.formula }}
Expand Down
24 changes: 21 additions & 3 deletions Formula/px4-dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class Px4Dev < Formula
desc "PX4 development toolchain"
homepage "https://px4.io"
url "https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/px4.py"
version "1.15.0"
sha256 "5eda2111dc20c092dc8241768121cf4173edabb593b2b199e6c233b5088c52aa"
version "1.16.0"
sha256 "7fc8a739658212cea302f446ef31c60babb5928ce98c9d990617f039e0da9ada"

depends_on "ant"
depends_on "astyle"
Expand All @@ -12,11 +12,13 @@ class Px4Dev < Formula
depends_on "cmake"
depends_on "discoteq/discoteq/flock"
depends_on "fastdds"
depends_on "gcc-arm-none-eabi"
depends_on "genromfs"
depends_on "kconfig-frontends"
depends_on "ncurses"
depends_on "ninja"
depends_on "osx-cross/arm/arm-gcc-bin@13"
depends_on "python"
depends_on "python-tk"

def install
# Patch px4.py to use HTTPS for remote tag lookup instead of SSH
Expand All @@ -29,6 +31,22 @@ def install
ohai "PX4 Toolchain Installed"
end

def caveats
<<~EOS
The PX4 development toolchain has been installed, including the ARM cross-compiler
from the osx-cross/arm tap (arm-gcc-bin@13).

Homebrew does not link versioned formulae by default, so you must link the compiler manually

brew link --overwrite --force arm-gcc-bin@13

If you have other versions of arm-none-eabi-gcc installed, this may override them.
You can unlink it manually with:

brew unlink arm-gcc-bin@13
EOS
end

test do
# Ensure the script runs without SSH errors and prints release info
output = shell_output("#{bin}/px4.py")
Expand Down
Loading