Jump to content

Build_Clover.command, another Script to build standard Clover (or customized)


Micky1979
2,126 posts in this topic

Recommended Posts

Alright guys, I have a new version for testing. It has the following changes:

 

1. The script now auto-detects the Xcode version and sets the proper toolchain profile for it:

- for Xcode 8 and later - XCODE8

- for Xcode, earlier than 8 - XCODE5

LTO will be disabled for Xcode 7.2.x and earlier and enabled for Xcode 7.3.x and later, as usual.

The two variables, XCODE and GNU (lines 34 and 35) are still present, but should be used only for overriding the auto-detected values (ex. if you want to use the XCODE5 profile with Xcode 8.x or GCC49 instead of the default profile GCC53)

Line 36 contains the setting which build tool to be used - Xcode or GCC. Use only XCODE or GNU as values !!! Any value, different from those two, will cause the script to exit with an error message ! For Linux, that setting is being omitted, because GNU is used by default.

2. The script now can compile Clover under Linux Mint 18.x (which is basically rebranded Ubuntu 16.04.x)

 

The test version is HERE as usual.

 

NOTE: before building Clover with this new version (especially if you have installed Xcode 8 and later), forced EDK2 update ( the update Clover + force edk2 update (no building) option) is a must, otherwise you may get compilation errors.

  • Like 5
Link to comment
Share on other sites

seem okay here .. thanks

 

================================================================================
Build_Clover script v4.4.0                  Wow, are you coming from the future?
                             <--------------------------------------------------
================================================================================
By Micky1979 based on Slice, Zenith432, STLVNUB, JrCs, cecekpawon, Needy,
cvad, Rehabman, philip_petev, ErmaC

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie (8.4/8.5/8.6/8.7)
                             <--------------------------------------------------
CLOVER    Remote revision: 4055    Local revision: 4055
EDK2    Remote revision: 24341    Local revision: 24132

The current local EDK2 revision is the suggested one (24132).

 

Build info.
 ===========
  Package name: Clover_v2.4k_r4055.pkg
  MD5:          0349a2b1a0111ed7b02fe7cd819fb808
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2017-04-08 06:26:05
  Built by:     pico
  Copyright     2012-2017

  adding: Clover_v2.4k_r4055.pkg (deflated 1%)
  adding: Clover_v2.4k_r4055.pkg.md5 (stored 0%)
total 48320
drwxr-xr-x   9 pico  staff       306 Apr  8 06:27 .
drwxr-xr-x  15 pico  staff       510 Apr  8 06:27 ..
-rw-r--r--@  1 pico  staff  12210398 Apr  8 06:27 Clover_v2.4k_r4055.pkg
-rw-r--r--   1 pico  staff        68 Apr  8 06:27 Clover_v2.4k_r4055.pkg.md5
-rw-r--r--   1 pico  staff  12137075 Apr  8 06:27 Clover_v2.4k_r4055.zip
drwxr-xr-x   3 pico  staff       102 Apr  8 06:27 Resources
drwxr-xr-x   7 pico  staff       238 Apr  8 06:27 build
drwxr-xr-x   3 pico  staff       102 Apr  8 06:27 package
drwxr-xr-x   7 pico  staff       238 Apr  8 06:27 utils
================================================================================
build started at:
Sat Apr  8 06:24:32 WIB 2017
finished at
Sat Apr  8 06:27:37 WIB 2017

Done!

  • Like 1
Link to comment
Share on other sites

 

EDK2    Remote revision: 24341    Local revision: 24132

The current local EDK2 revision is the suggested one (24132).

 

I successfully compiled with 24341

  • Like 3
Link to comment
Share on other sites

Same here. Clover r4056, edk2 r24341, Xcode 8.2.1, macOS 10.11.6 and XCODE8 profile. So, we can use that in the script, right? Or...

At your will. 

I am not a user, I am developer. If something goes wrong I can correct. What about users?

  • Like 3
Link to comment
Share on other sites

hello

 

for me with 

 

Clover r4056, edk2 r24341, Xcode 8.3, macOS 10.12.5

 

this build compile and boot the system .. but Clover GUI is not good ..icons are there but several colors in background.. with old script all good

 

thanks

  • Like 1
Link to comment
Share on other sites

this build compile and boot the system .. but Clover GUI is not good ..icons are there but several colors in background.. with old script all good

 

thanks

 

Are you sure it's not the theme? Tried the same version with several themes and there was no difference with all of them, compared to the same Clover build, compiled with edk2 r24132.

Link to comment
Share on other sites

hello

 

nah .. i don't use any theme .. only the built in clover  = embedded

 

good lord .. that don't trouble me .. clover theme

 

thanks

 

Ok, found the cause for that: it's that new XCODE8 compiler profile by @Zenith432. There is something with it that breaks the embedded theme. Tried the same revisions (Clover r4056 and edk2 r24341), compiled with GCC (GCC53) and Xcode (XCODE5), and both builds don't seem to have such problem. Until that thing is fixed, you can workaround the problem by adding XCODE5 to line 34 like this:

XCODE="XCODE5"

to override the Xcode auto-detection part. Don't forget to use the update Clover + force edk2 update (no building) option before you build Clover.

  • Like 3
Link to comment
Share on other sites

  • 3 weeks later...

Clover_v2.4k_r4070 build succeeded using Build_Clover.command v4.4.2,


with EDK2 r24552 under 10.12.4 with XCode 8.3.2 Build 8E2002,thanks.


But I don`t need  CloverThemeManager CloverPrefpane,how to modify it?


 


I try to open Clover_v2.4k_r4070.pkg with betterzip and del  CloverThemeManager.pkg CloverPrefpane.pkg,


And then del all relevant fields in Distribution,it seems to work,but i want to know if there is a better way to exclude it.

Link to comment
Share on other sites

I wouldn't try such things, if I were you, you'll just damage the package. If you don't need those two, use the advanced choice selection and don't install them.

 

post-60007-0-28464800-1494691724_thumb.pngpost-60007-0-17079800-1494691741_thumb.png

 

As you can see, the theme manager is not being installed by default, so just uncheck the other one.

  • Like 1
Link to comment
Share on other sites

Regularly update your OpenSSL lib (read how-to for more detail). Adding "-D NO_MSABI_VA_FUNCS" might help with XCODE8.

 

OpenSSL is actually included in clover, is version 1.0.1e, and modified, also, doesn't use CryptoPkg so those instructions don't help. I updated the source to not use MS ABI intrinsic variable argument functions, so this shouldn't be an issue anymore (but this only applies to GCC, there was no xcode compiler options, I added them too). However, it probably should to be updated to at least 1.1.0e... I don't have the time to do that, so anyone interested, please do, share, I'll review and commit.

  • Like 1
Link to comment
Share on other sites

I wouldn't try such things, if I were you, you'll just damage the package. If you don't need those two, use the advanced choice selection and don't install them.

 

attachicon.gifQQ20170513-191828.pngattachicon.gifQQ20170513-191858.png

 

As you can see, the theme manager is not being installed by default, so just uncheck the other one.

Thanks for your advice, I`m sorry I did`t say it clearly.Due to attachment limit,I want to reduce the size of the clover package.
Is there a better way to exclude compiling or packing them?
Link to comment
Share on other sites

×
×
  • Create New...