Skip to content

Commit

Permalink
arm-none-eabi-binutils 2.42
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Mar 15, 2024
1 parent 187ad9c commit 51c384e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Formula/arm-none-eabi-binutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ class ArmNoneEabiBinutils < Formula
desc "GNU Tools for ARM Embedded Processors - Binutils"
homepage "https://www.gnu.org/software/binutils/binutils.html"

url "https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.xz"
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.38.tar.xz"
sha256 "e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024"
url "https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz"
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.42.tar.xz"
sha256 "f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800"

bottle do
root_url "https://github.com/osx-cross/homebrew-arm/releases/download/arm-none-eabi-binutils-2.38"
Expand Down Expand Up @@ -50,15 +50,7 @@ def install
info.rmtree # info files conflict with native binutils
end

def caveats
<<~EOS
For Mac computers with Apple silicon, arm-none-eabi-binutils might need Rosetta 2 to work properly.
You can learn more about Rosetta 2 here:
> https://support.apple.com/en-us/HT211861
EOS
end

test do
assert_match "GNU ld (GNU Binutils) 2.38\n", `#{opt_prefix}/bin/arm-none-eabi-ld -v`
assert_match "GNU ld (GNU Binutils) 2.42\n", `#{opt_prefix}/bin/arm-none-eabi-ld -v`
end
end

0 comments on commit 51c384e

Please sign in to comment.