Skip to content

Commit

Permalink
✨ (formula): Add arm-gcc@13
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed May 22, 2024
1 parent d26d73b commit c3d7851
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
class ArmGccBinAT13 < Formula
@tar_file = if Hardware::CPU.arm?
"arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz"
else
"arm-gnu-toolchain-13.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz"
end

@tar_file_sha = if Hardware::CPU.arm?
"21a9e875250bcb0db8df4cb23dd43c94c00a1d3b98ecba9cdd6ed51586b12248"
else
"00c0eeb57ae92332f216151ac66df6ba17d2d3b306dac86f4006006f437b2902"
end

desc "Pre-built GNU toolchain for Arm Cortex-M and Cortex-R processors"
homepage "https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads"

url "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/#{@tar_file}"
version "13.2.Rel1"

sha256 @tar_file_sha

bottle do
root_url "https://github.com/osx-cross/homebrew-arm/releases/download/[email protected]"
rebuild 2
sha256 cellar: :any_skip_relocation, big_sur: "f6bf8cdb4b4029c11c194b43ba76493ad1593993e1fac7e1dfb1c5d2f05943b9"
sha256 cellar: :any_skip_relocation, catalina: "9318ba31774a22db2c8c283b91976ea40e712ef79b3d2a68abb1e80e04dfc2a1"
end

keg_only <<~KEG_ONLY_EOS
it may interfere with another version of arm-gcc-bin.
This is useful if you want to have multiple versions installed
KEG_ONLY_EOS

def install

Check failure on line 34 in Formula/[email protected]

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

`brew install --verbose --build-bottle osx-cross/arm/arm-gcc-bin@13` failed on macOS Sonoma (14) on Apple Silicon!

==> Fetching osx-cross/arm/arm-gcc-bin@13 ==> Downloading https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/cc87bdadd9df50d99815d9b307c3eab84edd7c5e1ebb02c09e571e5cca1e6f3d--arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz ==> Verifying checksum for 'cc87bdadd9df50d99815d9b307c3eab84edd7c5e1ebb02c09e571e5cca1e6f3d--arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz' Error: arm-gcc-bin@13: SHA256 mismatch Expected: 21a9e875250bcb0db8df4cb23dd43c94c00a1d3b98ecba9cdd6ed51586b12248 Actual: 39c44f8af42695b7b871df42e346c09fee670ea8dfc11f17083e296ea2b0d279 File: /Users/runner/Library/Caches/Homebrew/downloads/cc87bdadd9df50d99815d9b307c3eab84edd7c5e1ebb02c09e571e5cca1e6f3d--arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz To retry an incomplete download, remove the file above. ::error::arm-gcc-bin@13: SHA256 mismatch%0AExpected: 21a9e875250bcb0db8df4cb23dd43c94c00a1d3b98ecba9cdd6ed51586b12248%0A Actual: 39c44f8af42695b7b871df42e346c09fee670ea8dfc11f17083e296ea2b0d279%0A File: /Users/runner/Library/Caches/Homebrew/downloads/cc87bdadd9df50d99815d9b307c3eab84edd7c5e1ebb02c09e571e5cca1e6f3d--arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz%0ATo retry an incomplete download, remove the file above.%0A
bin.install Dir["bin/*"]
prefix.install Dir["arm-none-eabi", "include", "lib", "libexec", "share"]
end

test do
assert_match "Arm GNU Toolchain #{version}", `#{opt_prefix}/bin/arm-none-eabi-gcc --version`
end
end

0 comments on commit c3d7851

Please sign in to comment.