-
Notifications
You must be signed in to change notification settings - Fork 19
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
3 changed files
with
25 additions
and
9 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 |
---|---|---|
@@ -1,23 +1,33 @@ | ||
class I386ElfBinutils < Formula | ||
desc "GNU Binutils targetting i386-elf" | ||
homepage "https://www.gnu.org/software/binutils/" | ||
url "https://sourceware.org/pub/binutils/releases/binutils-2.37.tar.xz" | ||
sha256 "820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c" | ||
revision 2 | ||
url "https://sourceware.org/pub/binutils/releases/binutils-2.42.tar.xz" | ||
sha256 "f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800" | ||
revision 1 | ||
|
||
depends_on "texinfo" => :build | ||
|
||
def install | ||
mkdir "binutils-build" do | ||
system "../configure", "--prefix=#{prefix}", | ||
"--target=i386-elf", | ||
"--disable-multilib", | ||
"--disable-nls", | ||
"--disable-werror" | ||
"--disable-werror", | ||
"--enable-interwork" | ||
system "make" | ||
system "make", "install" | ||
end | ||
end | ||
|
||
test do | ||
system "#{bin}/i386-elf-as", "--version" | ||
(testpath/"program.S").write <<~DATA | ||
.text | ||
example: | ||
movl 0x80, %eax | ||
movl 0x40, %ebx | ||
DATA | ||
system "#{bin}/i386-elf-as", "program.S" | ||
assert_match "file format elf32-i386", shell_output("#{bin}/i386-elf-objdump -D a.out") | ||
end | ||
end |
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
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 |
---|---|---|
|
@@ -22,10 +22,10 @@ Default version is marked in bold. For older versions, you must use the | |
@. | ||
|
||
- i386-elf-binutils | ||
- **2.37 (`nativeos/i386-elf-toolchain/i386-elf-binutils`)** | ||
- **2.42 (`nativeos/i386-elf-toolchain/i386-elf-binutils`)** | ||
- 2.36.1 (`nativeos/i386-elf-toolchain/[email protected]`) | ||
- i386-elf-gcc | ||
- **12.2.0 (`nativeos/i386-elf-toolchain/i386-elf-gcc`)** | ||
- **14.1.0 (`nativeos/i386-elf-toolchain/i386-elf-gcc`)** | ||
- 11.2.0 (`nativeos/i386-elf-toolchain/[email protected]`). | ||
- 11.1.0 (`nativeos/i386-elf-toolchain/[email protected]`). | ||
- i386-elf-gdb | ||
|