jrcs / clovergrowerpro Goto Github PK
View Code? Open in Web Editor NEWThis project forked from stlvnub/clovergrower
Compile Tool For Clover UEFI/bios OS X Booter
This project forked from stlvnub/clovergrower
Compile Tool For Clover UEFI/bios OS X Booter
$ ./CloverGrowerPro.sh
Check for CloverGrowerPro update every Day/Week/Month/Never [W]:
Where to put the toolchain directory ?
TOOCHAIN directory [/Users/majdom/Documents/CloverGrowerPro/toolchain]:
Where to put the edk2 source files ?
edk2 directory [/Users/majdom/Documents/CloverGrowerPro/edk2]:
Do you have the rights to commit Clover source files [No]:
Activate firmare VBios Patch by default [No]:
Checking for new version of CloverGrowerPro...
fatal: Not a git repository (or any of the parent directories): .git
Can you please advise how these changes can be implemented into CGP.
Rev 3002
Link Time Optimization
https://gcc.gnu.org/wiki/LinkTimeOptimization
http://notabs.org/uefi/tmp/
http://sourceforge.net/projects/edk2develo...20Optimization/
Clover is not changed. The change is a build rule. I switched on LTO.
./ebuild.sh -D LTO
Reduced 86%
Attached Image
704 x 274 (71.48K)
To do this you need to compile new gcc-4.9.2 with new config --enable-plugin that I made in our script rev3002
./buildgcc-4.9.sh
./buildnasm.sh
Then check files in the folder Patches_to_edk2 and apply them.
build-rules.txt
tools-def.txt
GenC.py
Base.h
I am not sure GCP will do this automatically - it does not. For your average user (NonDev) the required changes in the log files are unclear.
Please correct.
on my laptop running lion. clover builds fine but package script has issue: -
CloverCD/usr/bin
[CP] cdboot
[CP] metal
[CP] CLOVERX64
[CP] BOOTX64
[CP] drivers64
cp: /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64/PS2MouseDxe-64.efi: No such file or directory
make: *** [image] Error 1
zip warning: name not matched: Clover_v2_r1179.pkg
zip warning: name not matched: Clover_v2_r1179.pkg.md5
zip error: Nothing to do! (Clover_v2_r1179.zip)
I noticed the case of the filename is different Ps2MouseDxe.efi
This needs to be rectified in the makefile
i rectified this on my local machine but I realised some bits are not getting built: -
Generating DUETEFIMAINFVX64 FV
GUID cross reference file can be found at /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/FV/Guid.xref
FV Space Information
DUETEFIMAINFVX64 [46%Full] 2752512 total, 1266512 used, 1486000 free
Compressing DUETEFIMainFv.FV ...
Encoding
Compressing DxeMain.efi ...
Encoding
Compressing DxeIpl.efi ...
Encoding
Generate Loader Image ...
Created /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/FV/Efildr64
943+0 records in
943+0 records out
482816 bytes transferred in 0.003690 secs (130844290 bytes/sec)
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/FV/boot -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/Bootloaders/x64/boot6
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/FSInject.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/EFI/drivers64/FSInject-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/FSInject.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/EFI/drivers64UEFI/FSInject-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/OsxFatBinaryDrv.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/EFI/drivers64UEFI/OsxFatBinaryDrv-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/VboxHfs.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/EFI/drivers64UEFI/VboxHfs-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/VBoxExt2.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64/VBoxExt2-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/VBoxExt4.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64/VBoxExt4-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/PartitionDxe.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64UEFI/PartitionDxe-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/DataHubDxe.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64UEFI/DataHubDxe-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/Ps2MouseDxe.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64/Ps2MouseDxe-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/UsbMouseDxe.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64/UsbMouseDxe-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/XhciDxe.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64/XhciDxe-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/OsxAptioFixDrv.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64UEFI/OsxAptioFixDrv-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/OsxLowMemFixDrv.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64UEFI/OsxLowMemFixDrv-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/CsmVideoDxe.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64UEFI/CsmVideoDxe-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/EmuVariableUefi.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/drivers-Off/drivers64UEFI/EmuVariableUefi-64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/CLOVERX64.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/EFI/BOOT/CLOVERX64.efi
/Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Build/Clover/RELEASE_GCC47/X64/CLOVERX64.efi -> /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/CloverV2/EFI/BOOT/BOOTX64.efi
Done!
Generating BootSectors
make: Nothing to be done for `all'.
Done!
Cloverx64 release OK
Clover Grower Complete Build process took 8m47s to complete...
Type 'm' To make Clover_v2_r1179.pkg...
m
cd to /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage and run ./makepkg.
===================== Building Package =================
Building Clover Install Package
=================== BiosBoot ===========================
[BUILD] BiosBoot
3 blocks
2073 blocks
===================== EFI folder =======================
Error addTemplateScripts: template 'EFIfolder' doesn't exists
make: *** [pkg] Error 1
making cdboot
Update cdboot with boot file size info
================= Distrib =================
[RM] /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/CloverCD
[MKDIR] /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/CloverCD/usr/standalone/i386
[MKDIR] /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/CloverCD/EFI
[MKDIR] /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/CloverCD/EFI/BOOT/themes/
[MKDIR] /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/CloverCD/usr/bin
[CP] cdboot
[CP] metal
[CP] CLOVERX64
[CP] BOOTX64
[CP] drivers64
[CP] boot
[HDIUTIL] /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/Clover-1179-X64.iso
zip warning: name not matched: Clover_v2_r1179.pkg
zip warning: name not matched: Clover_v2_r1179.pkg.md5
zip error: Nothing to do! (Clover_v2_r1179.zip)
mkdir buildPKG/1179.
mkdir: /Volumes/Data/chameleon_source/CloverGrowerPro/builtPKG/1179: File exists
cp /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym/ builtPKG/1179.
rm -rf /Volumes/Data/chameleon_source/CloverGrowerPro/edk2/Clover/CloverPackage/sym.
open builtPKG/1179.
Good Night.
r1178 was fine on ML 10.8.2. but ML is not stable for me beach ball issue so I use Lion
Why is EFIfolder template missing, bit lost?
I was unable to build Clover since OS X 10.11.3 due to Apple gcc upgrade to 5.x. I fixed that issue by building on an earlier version of OS X. Now I'm not able to build any clover version anywhere. I'm not sure but it seems that the last edk version is responsible.
Hi,
just did a try, but there are some small typo-glitches, easy to fix:
There is a folder, but it' named "EFIFolder" - but in package/buildpkg.sh Line 454 it's coded as "choiceId="EFIfolder".
That's also true, because it's name is "Ps2MouseDxe-64.efi" (note the lower s).
Fix Line 96 in CloverPackage/Makefile, should be "@cp -f
Best regards, MC68030
This is not an issue, more like a feature request: to be added an option (maybe in CloverGrowerPro.conf) that will auto-build the package without user confirmation.
terminal stops with following message...
.
.
gcc -Wno-deprecated-declarations -o ../bin/GnuGenBootSector GnuGenBootSector.o -L../libs -lCommon
ld: file not found: /usr/lib/system/libsystem_stats.dylib for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/GnuGenBootSector] Error 1
make[1]: *** [GnuGenBootSector] Error 2
make: *** [Source/C] Error 2
Cloverx64 release ERROR!!
what do i need to do to get around this error ?
any help appreciated
I'd appreciate this being added. Otherwise if svn revision is the same, it continues with the build even if builtPKG is populated with current revision.
It would be nice not to have to Ctrl-C when I notice No Clover Update found. Current revision:xxxx
Thanks.
There are some issues while downloading the correct 'tools' for patching. I have changed the file buildgcc.sh and now it is working: http://pastebin.com/mq0Q7nvv
Update: tried with other mirrors but still a build error with gcc.
./CloverGrowerPro.sh: line 643: rootSystem: unbound variable
I got this error while build toolchine:Toolchain build ERROR!!
How to fix it?
I have a new Macbook Pro 2 days ago. I install Xcode 8.2 and Command line tool for Xcode 8.2. And try build CloverGrowerPro lastest version. During building, i got error at:
/Users/mimotek/VNPT_CLOVER/CloverGrowerPro/edk2/Clover/CloverPackage/package/../../../../opt/local
GNU gettext utilities is mandatory to build Clover package.
Use the /Users/mimotek/VNPT_CLOVER/CloverGrowerPro/edk2/Clover/buildgettext.sh script to build them.
Can you give me some ideas, tks!
sh-3.2$ clover -r 1062
Good Night *
Welcome To CloverGrowerPro v5.0 *
This script by JrCs *
Original script by STLVNUB *
running 'clover' on 'Mountain Lion'
Work Folder: /tmp/CloverGrowerPro
Available : 207595 MB
Forcing Clover revision 1062
Getting SVN Source, Hang ten…
Checked edk2 SVN, 'No updates were found...'
Checked Clover SVN, 'Updates found...'
Auto Updating Clover From 1101 to 1062 ...
svn: Failed to add directory 'CloverPackage': an unversioned directory of the same name already exists
Svn up Clover svn://svn.code.sf.net/p/cloverefiboot/code ERROR!!
running ./ebuild.sh -gcc47 -release -x64
Initializing workspace
Loading previous configuration from $WORKSPACE/Conf/BuildEnv.sh
WORKSPACE: /Users/taruga/Desktop/CloverGrowerPro/edk2
EDK_TOOLS_PATH: /Users/taruga/Desktop/CloverGrowerPro/edk2/BaseTools
Building tools as they are not found
make -C Source/C
Attempting to detect ARCH from 'uname -m': x86_64
Detected ARCH of X64 using uname.
mkdir -p .
make -C Common
gcc -c -MD -fshort-wchar -fno-strict-aliasing -fno-merge-constants -nostdlib -Wall -Werror -c -g -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ BasePeCoff.c -o BasePeCoff.o
clang: error: argument unused during compilation: '-fno-merge-constants'
make[2]: *** [BasePeCoff.o] Error 1
make[1]: *** [Common] Error 2
make: *** [Source/C] Error 2
Cloverx64 release ERROR!!
No Clover Update found. Current revision: 1101
No build already done. Forcing Clover build
Ready to build Clover 1101, Using Gcc 4.7.2
Clover: 1101 *
Starting >>>>New<<<< Build Process: 01:14:56
Building CloverX64, gcc47 release
Creating new RAM disk
Initialized /dev/rdisk1 as a 200 MB HFS Plus volume
running ./ebuild.sh -gcc47 -x64 -release
/usr/local/bin/clover: line 367: ./ebuild.sh: No such file or directory
Cloverx64 release ERROR!!
Ejecting RAM disk
"disk1" unmounted.
"disk1" ejected.
sh-3.2$ clover -v
clover 5.0
Running on 10.12.
1st Clover built fine.
"touch" one source file and cannot build again.
See here
Hi, cloverpro is giving this error
build.py...
: error C0DE: Unknown fatal error when processing [/Users/giacomo/CloverGrowerPro/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf](Please send email to [email protected] for help, attaching following call stack trace!)
(Python 2.7.10 on darwin) Traceback (most recent call last):
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2062, in Main
MyBuild.Launch()
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1815, in Launch
self._MultiThreadBuildPlatform()
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1650, in _MultiThreadBuildPlatform
Ma.CreateMakeFile(True)
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line 3519, in CreateMakeFile
LibraryAutoGen.CreateMakeFile()
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line 3525, in CreateMakeFile
if Makefile.Generate():
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 184, in Generate
FileContent = self.TEMPLATE.Replace(self._TemplateDict)
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 512, in _CreateTemplateDict
RespDict = self.CommandExceedLimit()
File "/Users/giacomo/CloverGrowerPro/edk2/BaseTools/Source/Python/AutoGen/GenMake.py", line 716, in CommandExceedLimit
SingleCommandLength += self._AutoGenObject.IncludePathLength + len(IncPrefix) * len(self._AutoGenObject._IncludePathList)
AttributeError: 'ModuleAutoGen' object has no attribute 'IncludePathLength'
Cloverx64 release ERROR!!
Ejecting RAM disk
"disk2" unmounted.
"disk2" ejected.
Thanks
Giacomo
clover grower is not building with latest clover trunk changes in trunk 3503 also needs new nasm and mtoc binarys. the scripts are located here http://www.insanelymac.com/forum/topic/306156-clover-bugissue-report-and-patch/?p=2235839 post 706
When i want to build new Clover package it gives that error.
Toolchain Folder doesnot have ebuild.sh file but cloverGrowerPro.sh ask it.
How can i solve it?
running ./ebuild.sh -gcc49 -release -D USE_APPLE_HFSPLUS_DRIVER --x64
./CloverGrowerPro.sh: line 441: ./ebuild.sh: No such file or directory
Cloverx64 release ERROR!!
hi every one sir how to make patch file for lenovo t440s bios password break
$ cloverpro -r 1060
********************************************
* Good Morning *
* Welcome To CloverGrowerPro v5.0 *
* This script by JrCs *
* Original script by STLVNUB *
* Clover Credits: Slice, dmazar and others *
********************************************
running 'cloverpro' on 'Mountain Lion'
Work Folder: /Users/majdom/Documents/CloverGrowerPro
Available : 204668 MB
Forcing Clover revision 1060
Getting SVN Source, Hang ten…
Checked edk2 SVN, 'No updates were found...'
Checked, Updates found...
Auto Updating Clover From 1139 to 1060 ...
svn: Directory 'CloverPackage/CloverV2/drivers-Off/drivers64UEFI/.svn' containing working copy admin area is missing
Svn up Clover svn://svn.code.sf.net/p/cloverefiboot/code ERROR!!
I have a problem the last two days, trying to connect to the Clover source via svn:// (SF servers problem I think). Tried to change the repo address in CloverGrowerPro.conf from svn:// to http:// and it worked, but the script is still trying to connect via svn:// to the ed2k source. Could you make the ed2k repo URL adjustable via the CloverGrowerPro.conf too (something like ED2KSVNURL='svn://svn.code.sf.net/p/edk2/code/trunk/edk2')?
I get this:
Checking for new version of CloverGrowerPro...
fatal: Not a git repository (or any of the parent directories): .git
logout
Right after initial config.
To reproduce:
in Terminal
$open CloverGrower.command
in Finder
Dubble click CloverGrower.command
i have freshly installed EL Cap and re-run CGP but unfortunately it failes to build , same result on both Hackintosh aswell myMac mini , here is terminal saved output
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.