mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 10:48:38 +00:00
Merge branch 'main' of https://github.com/boreddevnl/BoredOS
This commit is contained in:
commit
f6b6fd97ce
1 changed files with 1 additions and 32 deletions
33
docs/build/toolchain.md
vendored
33
docs/build/toolchain.md
vendored
|
|
@ -18,35 +18,4 @@ To build BoredOS, you need the following tools:
|
||||||
- *Why?* `xorriso` packages the compiled kernel, Limine bootloader, and asset files (fonts, images, userland binaries) into the final bootable `boredos.iso` CD-ROM image.
|
- *Why?* `xorriso` packages the compiled kernel, Limine bootloader, and asset files (fonts, images, userland binaries) into the final bootable `boredos.iso` CD-ROM image.
|
||||||
|
|
||||||
4. **QEMU** (Optional but highly recommended for testing):
|
4. **QEMU** (Optional but highly recommended for testing):
|
||||||
- `qemu-system-x86_64` is used for rapid emulation and testing.
|
- `qemu-system-x86_64` is used to virtualize the OS for testing or to mess around.
|
||||||
|
|
||||||
## Installation (macOS)
|
|
||||||
|
|
||||||
You can easily install the complete toolchain using Homebrew:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
brew install x86_64-elf-binutils x86_64-elf-gcc nasm xorriso qemu
|
|
||||||
```
|
|
||||||
|
|
||||||
## Installation (Linux)
|
|
||||||
|
|
||||||
Depending on your distribution, the installation commands vary. Note that some distributions may require you to build the `x86_64-elf` cross-compiler from source if it isn't available in their default repositories.
|
|
||||||
|
|
||||||
### Debian / Ubuntu
|
|
||||||
```sh
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo nasm xorriso qemu-system-x86
|
|
||||||
```
|
|
||||||
*(Note: You will need to build the `x86_64-elf` cross-compiler from source or find a compatible PPA, as it is not in the default Debian/Ubuntu repositories.)*
|
|
||||||
|
|
||||||
### Arch Linux
|
|
||||||
Arch Linux provides the regular tools in its standard repositories and the cross-compiler via the AUR:
|
|
||||||
```sh
|
|
||||||
sudo pacman -S nasm xorriso qemu-full
|
|
||||||
yay -S x86_64-elf-gcc x86_64-elf-binutils
|
|
||||||
```
|
|
||||||
|
|
||||||
### Fedora
|
|
||||||
```sh
|
|
||||||
sudo dnf install make gcc gcc-c++ bison flex gmp-devel mpfr-devel libmpc-devel texinfo nasm xorriso qemu
|
|
||||||
```
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue