-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] 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!
|
||
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 |