Compiling Clover from Source - A Hacky Guide

I had some trouble compiling Clover from source so I wanted to write a quick guide to help those running into errors. The path I found to work is pretty hacky but heh, at least it works!

Note: This was compiled on OS X 10.11.5

  1. I followed the start of the guide at https://clover-wiki.zetam.org/Development but left out the svn revision number to get the most current edk2 version. Version 18198 failed almost immediately when trying to run the ./buildgettext.sh command.
cd ~
mkdir src
cd src
svn co svn://svn.code.sf.net/p/edk2/code/trunk/edk2 edk2
cd edk2
make -C BaseTools/Source/C
svn co svn://svn.code.sf.net/p/cloverefiboot/code Clover 
cd Clover

Next I ran these three commands which prepare your system for CloverGrower.

Without running these commands in the ~/src/edk2/Clover folder you will get errors when trying to compile with CloverGrowerPro because it is looking for nasm in the ~/src/edk2 path.

./buildgettext.sh
./buildgcc-4.9.sh 
./buildnasm.sh

Next I cloned CloverGrowerPro and followed the instructions there:
https://github.com/JrCs/CloverGrowerPro.

git clone git://github.com/JrCs/CloverGrowerPro.git
cd CloverGrowerPro

Next, run ./CloverGrowerPro.sh -s.

Hit enter to select each of the default options. Clover will compile and save to the CloverGrowerPro/edk2/Clover/CloverPackage directory. The only problem is that this is an old version of Clover. You'll need to remove remove it.

cd ~/CloverGrowerPro/edk2
rm -rf Clover
svn co svn://svn.code.sf.net/p/cloverefiboot/code Clover

Now, you can make edits to the Clover source code in CloverGrowerPro/edk2/Clover folder.

Next, you'll need to run the CloverGrower setup again, and be sure to select NO when it asks you if you'd like to use the Apple HFS driver.

cloverpro -s
...
Use Apple HFS+ driver (No, Yes) [No]: n

Again, Clover will compile and save to the CloverGrowerPro/edk2/Clover/CloverPackage directory.

Please comment with your results!