本帖最后由 btwise 于 2017-10-30 13:20 编辑
clover(四叶草)是一个开源的优秀的操作系统引导器,目前大多用来引导PC上安装的MAC系统,即黑苹果系统,源码开放,更新及时,我们可以随时自己编译最新的CLOVER版本,当然也可以按自己的想法,自定义自己的安装包和内容。 为了方便一些黑苹果用户安装CLOVER引导以及针对机型进行选择安装内容,大概整理出一些关于CLOVER的编译和自定义菜单教程,欢迎更多高手来实现更多功能。常规CLOVER的源码下载和编译- CLOVER的源码下载 编译CLOVER首先得下载源码,目前的编译工具有CloverGrowerPro和BUILDCLOVER,我感觉最好用的莫属BUILDCLOVER,它的更新源很快,也很及时。
- 下载buildclover.command脚本,然后运行它 sh Build_Clover.command
运行之后会自动下载CLOVER的所有源码和BUILDCLOVER自己的脚本程序,编译打包CLOVER需要依靠XCODE和xcode command line tools,所以提前系统里要有这些东西。 下载好所有文件之后,会自动运行脚本的所有菜单,下载的源文件在你的用户目录下得SRC目录下。 第一次运行后菜单选第一项,可以创建buildclover命令的软链接,这样以后在终端里随时可以运行这个命令,而不必去对应的脚本所在目录运行脚本了 ================================================================================Build_Clover script v4.5.6 No update available. <--------------------------------------------------================================================================================By Micky1979 based on Slice, Zenith432, STLVNUB, JrCs, cecekpawon, Needy, cvad, Rehabman, philip_petev, ErmaCSupported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie and Stretch <--------------------------------------------------CLOVER Remote revision: 4265 Local revision: 4265 EDK2 Remote revision: 25574 Local revision: 25480The current local EDK2 revision is the suggested one (25480). Used settings: /Users/btwise/BuildCloverConfig.txt 最上面的一些信息是表示脚本的版本,是否有更新,如果不是最新版,菜单里会有更新自己的选项;也显示了本地CLOVER和远程最新的CLOVER版本号,你可以选择是否更新CLOVER最新的源码 - ======================================================CLOVER Remote revision: 4265 Local revision: 4265 EDK2 Remote revision: 25574 Local revision: 25480The current local EDK2 revision is the suggested one (25480). Please enter your choice: 1) update Clover only (no building) 2) update Clover + force edk2 update (no building) 3) run my script on the source 4) build existing revision (no update, for testing only) 5) build existing revision for release (no update, standard build) 6) build existing revision with custom macros enabled 7) enter Developers mode (only for devs) 8) edit the configuration file 9) Exit
复制代码 至此,标准的编译CLOVER安装包到此结束,下一节重点说一下自定义安装包得过程。。。。。。 |