add a section about building GRUB v2 on macOS authored by Chris's avatar Chris
...@@ -1025,6 +1025,41 @@ or ...@@ -1025,6 +1025,41 @@ or
diskutil list diskutil list
``` ```
<a href="building-grub-on-macos-from-source"></a>
#### Building GNU GRUB on macOS from source
1. Clone the grub source
```
git clone git://git.savannah.gnu.org/grub.git
```
2. Clone **objconv** from GitHub
```
git clone git@github.com:vertis/objconv.git
```
> GRUB will not compile using Xcode tooling out of the box, thus the dependency for **objconv**
3. Build **objconv**
```
g++ -o objconv -O2 src/*.cpp
```
4. Put **objconv** in the `$PATH`
5. Build GRUB to support **x86_64** and **efi**
```
cd /path/to/src/grub
mkdir grub-build
../configure --prefix=/path/to/put/the/grub/binary --target=x86_64 --with-platform=efi
make
make install
```
> **make** should be run the **grub-build** dir and **NOT** the grub git source root.
**Optional**
6. Specify a font to use with GRUB, on macOS most system fonts can be found in **/Library/Fonts**, that said, choose a **.ttf** font for the below command.
```
/path/to/grub-mkfont -o share/grub/unicode.pf2 /Library/Fonts/Times\ New\ Roman.ttf
```
<a href="working-with-automountd"></a> <a href="working-with-automountd"></a>
#### Working with automountd #### Working with automountd
... ...
......