Was able to build Refind 0.12.0 on my Mac using the TianoCore Approach. Needed some small modifications from what was in the BUILDING.txt file but it went great and able to repeat.
I did it to implement GOP support from Clover for those of us on classic MacPros as the previous efi we had has been stuck on v0.10.3 which was what someone did before moving on.
The old v0.10.3 GOP efi also had Memlog added from Clover to generate a log on progres of loading the BootScreen which I have not yet managed to get working but will tackle that next.
Anyway, just wanted to flag up some build warnings which look to my untrained eyes as things that could be addressed in a future release:
Here are the changes to the documented items in BUILDING.txt that were needed for the build (I built on macOS using TianoCore as stated):
Preparing Your Development Kit
1. ITEM 2A: Copy to /usr/local is not really needed. It can be in any path. Using a subfolder under Documents
2. ITEM 5: Actually easier to set ACTIVE_PLATFORM to "RefindPkg/RefindPkg.dsc". With this, you can just use "build" at the end. Also cleaner as does not build the MdePkg stuff
Compiling rEFInd the TianoCore Way
1. ITEM 7: You can just use "build" here if ACTIVE_PLATFORM is already properly set in Conf/target.txt
Compiling rEFInd Under OS X
1. BULLET POINT 1: It doesn't build with current release as of today, May 2020, but does 100% of the time with UDK2018.
2. BULLET POINT 2: Seems best to install all the items on the referenced page including Qemu. I use HomeBrew.
3. BULLET POINT 5: The build fails until the "StdLib" folder from UDK2018 is copied into RefindPkg.
Last edit: dakanji 2020-07-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Was able to build Refind 0.12.0 on my Mac using the TianoCore Approach. Needed some small modifications from what was in the BUILDING.txt file but it went great and able to repeat.
I did it to implement GOP support from Clover for those of us on classic MacPros as the previous efi we had has been stuck on v0.10.3 which was what someone did before moving on.
I have now been able to bump this up to v0.12.0 as stored here: https://github.com/dakanji/Refind-GOPFix/releases
The old v0.10.3 GOP efi also had Memlog added from Clover to generate a log on progres of loading the BootScreen which I have not yet managed to get working but will tackle that next.
Anyway, just wanted to flag up some build warnings which look to my untrained eyes as things that could be addressed in a future release:
Here are the changes to the documented items in BUILDING.txt that were needed for the build (I built on macOS using TianoCore as stated):
Preparing Your Development Kit
1. ITEM 2A: Copy to /usr/local is not really needed. It can be in any path. Using a subfolder under Documents
2. ITEM 5: Actually easier to set ACTIVE_PLATFORM to "RefindPkg/RefindPkg.dsc". With this, you can just use "build" at the end. Also cleaner as does not build the MdePkg stuff
Compiling rEFInd the TianoCore Way
1. ITEM 7: You can just use "build" here if ACTIVE_PLATFORM is already properly set in Conf/target.txt
Compiling rEFInd Under OS X
1. BULLET POINT 1: It doesn't build with current release as of today, May 2020, but does 100% of the time with UDK2018.
2. BULLET POINT 2: Seems best to install all the items on the referenced page including Qemu. I use HomeBrew.
3. BULLET POINT 5: The build fails until the "StdLib" folder from UDK2018 is copied into RefindPkg.
Last edit: dakanji 2020-07-26
Changing
StdLib/Include
to../StdLib/Include
in my RefindPkg.dec file achieves the same end.I finally built it, but it took me a lot of time to make it work. There were several missing libraries which I added from here:
https://github.com/abdyfranco/next-loader/tree/master/src/edk2/UDK2018/MyWorkSpace
They had to be added to the edk2 directory in various places and most importantly the target has to be set to XCODE5 as GCC5 does not work at all.
~~~
build -a X64 -b RELEASE -t XCODE5 -p RefindPkg/RefindPkg.dsc
~~~:
Mostly followed the instructions here:
https://github.com/tianocore/edk2-platforms
https://github.com/tianocore/tianocore.github.io/wiki/Xcode
https://github.com/dakanji/Refind-GOPFix/blob/GOPFix/BUILDING.txt#L411
Last edit: Startergo 2020-07-31
Just follow these intructions: https://github.com/dakanji/Refind-GOPFix/blob/GOPFix/BUILDING.md