Home

Awesome

i386-elf-toolchain tap

GCC toolchain for i386

This tap provides Homebrew formulas to build a suitable compiler for the i386-elf toolchain, which is useful to build 32 bit freestanding applications such as kernels using the GNU toolchain.

The formulas in this repo are based in the instructions that at some point were provided by the OSDev wiki. The page has changed in these years, but as long as the instructions continue working, I will not probably update the compile flags unless there is some benefit.

I test this tap in macOS and Linux.

Currently packaged versions

Default version is marked in bold. For older versions, you must use the @.

How to use

Tap the repository and install the packages.

brew tap nativeos/i386-elf-toolchain
brew install nativeos/i386-elf-toolchain/i386-elf-binutils
brew install nativeos/i386-elf-toolchain/i386-elf-gcc

Disclaimer

There is a real formula for GNU GRUB in this repo. The purpose of this formula is to make easier to install GRUB on a Mac in order to author ISO files containing kernel images and bootloaders, or virtual hard drives or IMG files. BE CAREFUL WITH THIS, you don't want to accidentaly wipe your host bootloader with this.

These formulaes are provided here for utility reasons in the hope that they are useful to people playing with operating systems and kernel development, but they come with no warranties. I'm not responsible on whatever you do with these formulaes. Always check the contents of a formula before installing it.