7
edits
[unchecked revision] | [unchecked revision] |
mNo edit summary |
(document the process of getting x86_64-elf-gcc from homebrew on macOS) |
||
Line 367:
We can now build our example kernel by running '''make'''. This command, if successful, should generate, inside the '''bin''' directory, a file called '''myos''' (or the chosen kernel name). This is our Limine protocol-compliant kernel executable.
===Compiling the kernel on macOS===
''If you are not using macOS, you can skip this section.''
The macOS Xcode toolchain uses Mach-O binaries, and not the ELF binaries supported by limine. The solution is to obtain a cross compiler from [https://brew.sh homebrew]. After installing homebrew, install the '''x86_64-elf-gcc''' package, then replace '''DEFAULT_CC''' with '''x86_64-elf-gcc''' and '''DEFAULT_LD''' with '''x86_64-elf-ld'''.
===Creating the image===
|