Jump to content

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


Micky1979
2,126 posts in this topic

Recommended Posts

Since ApfsSupportPkg was renamed to AppleSupportPkg it doesn't look like it's added to Clover UEFI Drivers selection anymore when using this script to build r4645, so that could be a problem for those using that. The script likely needs updated to handle the AppleSupportPkg name change.

Edited by Awesome Donkey
Link to comment
Share on other sites

15 hours ago, Riley Freeman said:

The script isn't working here. I still don't have AppleSupportPkg in my compiled Clover (and no APFS support on reboot).

 

Even deleted the src directory and let it download everything again.

 

Hi

The latest script v4.9 My modified script based on 4.8.9 works yesterday, not today.

 

Tuesday, In compiled Clover, I have "apfsdriverloader" like before in UEFI drivers choice. It's only the name of directory (in src/edk2/) that's change: apfssupportpkg -----> applesupportpkg

 

EDIT: you're right. Latest script 4.9: Same issue on clean scr folder. I try more test.

 

Build environment: Darwin-17.7.0-x86_64-i386-64bit
Build start time: 14:11:27, Aug.15 2018

WORKSPACE        = /Users/mathieu/src/edk2
ECP_SOURCE       = /Users/mathieu/src/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/mathieu/src/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/mathieu/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/mathieu/src/edk2/BaseTools
CONF_PATH        = /Users/mathieu/src/edk2/Conf


Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = XCODE8

Active Platform          = /Users/mathieu/src/edk2/AppleSupportPkg/AppleSupportPkg.dsc

Processing meta-data .

build.py...
/Users/mathieu/src/edk2/AppleSupportPkg/AppleSupportPkg.dsc(...): error 4000: Instance of library class [HobLib] is not found
	in [/Users/mathieu/src/edk2/MdePkg/Library/DxeServicesLib/DxeServicesLib.inf] [X64]
	consumed by module [/Users/mathieu/src/edk2/AppleSupportPkg/Platform/AppleImageLoader/AppleImageLoader.inf]
 

- Failed -

 

Edited by Matgen84
Link to comment
Share on other sites

i getting an error with the latest script in github


Status: gettext-latest.tar.xz not found.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:14 --:--:--     0curl: (7) Failed to connect to ftp.gnu.org port 21: Operation timed out

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, ellaosx said:

i getting an error with the latest script in github



Status: gettext-latest.tar.xz not found.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:14 --:--:--     0curl: (7) Failed to connect to ftp.gnu.org port 21: Operation timed out

 

 

Same error: it seems to ftp server issue. 

Link to comment
Share on other sites

6 hours ago, STLVNUB said:

Needs fixing

The current local EDK2 revision is the suggested one (S{EDK2_REV}).

It is correct. Have no idea where you get that "S" from.

 

6 hours ago, ellaosx said:

i getting an error with the latest script in github



Status: gettext-latest.tar.xz not found.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:14 --:--:--     0curl: (7) Failed to connect to ftp.gnu.org port 21: Operation timed out

 

3 hours ago, Matgen84 said:

 

Same error: it seems to ftp server issue. 

Server issue. In any case, not script-related.

 

7 hours ago, Matgen84 said:

 

Hi

The latest script v4.9 My modified script based on 4.8.9 works yesterday, not today.

 

Tuesday, In compiled Clover, I have "apfsdriverloader" like before in UEFI drivers choice. It's only the name of directory (in src/edk2/) that's change: apfssupportpkg -----> applesupportpkg

 

EDIT: you're right. Latest script 4.9: Same issue on clean scr folder. I try more test.

 


Build environment: Darwin-17.7.0-x86_64-i386-64bit
Build start time: 14:11:27, Aug.15 2018

WORKSPACE        = /Users/mathieu/src/edk2
ECP_SOURCE       = /Users/mathieu/src/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/mathieu/src/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/mathieu/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/mathieu/src/edk2/BaseTools
CONF_PATH        = /Users/mathieu/src/edk2/Conf


Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = XCODE8

Active Platform          = /Users/mathieu/src/edk2/AppleSupportPkg/AppleSupportPkg.dsc

Processing meta-data .

build.py...
/Users/mathieu/src/edk2/AppleSupportPkg/AppleSupportPkg.dsc(...): error 4000: Instance of library class [HobLib] is not found
	in [/Users/mathieu/src/edk2/MdePkg/Library/DxeServicesLib/DxeServicesLib.inf] [X64]
	consumed by module [/Users/mathieu/src/edk2/AppleSupportPkg/Platform/AppleImageLoader/AppleImageLoader.inf]
 

- Failed -

 

Build error. I get it too. The current AppleSupportPkg code doesn't seems to play well with the current suggested EDK2 base. What's your edk base (EDK2, UDK, etc.) and version?

Edited by Philip Petev
  • Like 2
Link to comment
Share on other sites

30 minutes ago, Philip Petev said:

It is correct. Have no idea where you get that "S" from.

 

Server issue. In any case, not script-related.

 

Build error. I get it too. The current AppleSupportPkg code doesn't seems to play well with the current suggested EDK2 base. What's your edk base (EDK2, UDK, etc.) and version?

 

Hi

I use EDK2  27429 as suggested version from build_clover.command

 

Thanks

 

One question: how to GitHub instead of SourceForge for EDK2? I don't understand how to do.

Link to comment
Share on other sites

4 minutes ago, Badruzeus said:

Currently, get no issue here.. with latest Build_Clover script (EDK2) or UDK2018.

>> OS X 10.11.6 (15G22010), Xcode 8.2.1

Build_Clover_EDK2.zip

Build_Clover_UDK2018.zip

 

UDK2018 script clone applesupportpkg from ext_package, I think.

Sorry, but with EDK2 script: there is same error build.py error 4000 so failed to build apfsdriverloader

Link to comment
Share on other sites

1 hour ago, Philip Petev said:

It is correct. Have no idea where you get that "S" from.

Everything seems to be back to normal.

I was getting the same error: The current local EDK2 revision is the suggested one (S{EDK2_REV}). so I deleted the Build_Clover.command, downloaded the last version from GitHub deleted the config and the src and now it's building.

The:

Status: gettext-latest.tar.xz not found.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:14 --:--:--    

error is also resolved.
 

Spoiler

 

Build info.
 ===========
  Package name: Clover_v2.4k_r4646.pkg
  MD5:          004206e7b45b81d14ded6c26d4db45d0
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2018-08-15 19:49:23
  Built by:     cyberdevs
  Copyright     2012-2018

  adding: Clover_v2.4k_r4646.pkg (deflated 0%)
  adding: Clover_v2.4k_r4646.pkg.md5 (stored 0%)
total 47248
drwxr-xr-x   9 cyberdevs  staff       288 Aug 15 19:50 .
drwxr-xr-x  14 cyberdevs  staff       448 Aug 15 19:50 ..
-rw-r--r--@  1 cyberdevs  staff  11888486 Aug 15 19:50 Clover_v2.4k_r4646.pkg
-rw-r--r--   1 cyberdevs  staff        68 Aug 15 19:50 Clover_v2.4k_r4646.pkg.md5
-rw-r--r--   1 cyberdevs  staff  11839279 Aug 15 19:50 Clover_v2.4k_r4646.zip
drwxr-xr-x   3 cyberdevs  staff        96 Aug 15 19:49 Resources
drwxr-xr-x   6 cyberdevs  staff       192 Aug 15 19:50 build
drwxr-xr-x   3 cyberdevs  staff        96 Aug 15 19:50 package
drwxr-xr-x   6 cyberdevs  staff       192 Aug 15 19:50 utils
================================================================================
build started at:
Wed Aug 15 19:48:17 +0430 2018
finished at
Wed Aug 15 19:50:22 +0430 2018

Done!

                             <--------------------------------------------------
Clover was built successfully!
Press any key to continue...

 

  • Like 1
Link to comment
Share on other sites

today i installed clean 10.14 beta7

 

9.4.1

10.14 beta7

build is no problem.

but i can't see ApfsDriverLoader.efi in package.

309468955_2018-08-1612_57_10.png.5704e2471cb7b64aba0b1dabd0953cea.png


https://github.com/Dids/clover-builder
Dids build is no problem.

recently, i reported it to dids for cleanup

as result, dids cleanup this

https://github.com/Dids/clover-builder/commit/71b8e2c9bc75ea358cdc7d934cc208b6d3befd1c

 

The clover has already been added to the ApfsDriverLoader package. Is there an additional ApfsDriverLoader address added to the script?


sorry for my bad english

Edited by Sherlocks
  • Like 2
Link to comment
Share on other sites

Ok, here's the thing.

The build went through ok but I still get the same error:

The current local EDK2 revision is the suggested one (S{EDK2_REV}).

Here's the message I get when I run @artur_pt's version:


 

Spoiler

 

Build_Clover script v4.8.9                             Update available (v4.9.0)
                             <--------------------------------------------------
================================================================================
                        What's New in Version 4.9.0?

GH edk2 repo support. ApfsSupportPkg to AppleSupportPkg
================================================================================
By Micky1979 based on Slice, apianti, vit9696, Download Fritz, Zenith432,
STLVNUB, JrCs,cecekpawon, Needy, cvad, Rehabman, philip_petev, ErmaC

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie and Stretch
                             <--------------------------------------------------
CLOVER    Remote revision: 4646    Local revision: 4646
EDK2    Remote revision: 27707    Local revision: 27429

The current local EDK2 revision is not the suggested one (27483)!
It's recommended to change it to the suggested one,
using the update Clover + force edk2 update option!
Used settings: /Users/cyberdesv/BuildCloverConfig.txt 
                             <--------------------------------------------------
Please enter your choice: 
 1) update "buildclover" symlink
 2) update Build_Clover.command
 3) update Clover only (no building)
 4) update Clover + force edk2 update (no building)
 5) run my script on the source
 6) build existing revision (no update, for testing only)
 7) build existing revision for release (no update, standard build)
 8) build existing revision with custom macros enabled
 9) enter Developers mode (only for devs)
 10) Try Clover Configurator Pro.app
 11) edit the configuration file
 12) Exit


 

and when I update the option 1 and 2 then I'll get this:

The current local EDK2 revision is the suggested one (S{EDK2_REV}).

 

and still no ApfsDriverLoader.efi in the installer.

Link to comment
Share on other sites

 

 

Download the latest script from Github, i found wrong typo in line 491. I think.  S instead of $

491 [[ "${EDK2_REP}" == "https://github.com/tianocore/edk2/trunk" ]] && SUGG_REV="$(( EDK2_REV - 10084 ))" || SUGG_REV="S{EDK2_REV}"

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

4 minutes ago, Matgen84 said:

Download the latest script from Github, i found wrong typo in line 491. I think.  S instead of $


491 [[ "${EDK2_REP}" == "https://github.com/tianocore/edk2/trunk" ]] && SUGG_REV="$(( EDK2_REV - 10084 ))" || SUGG_REV="S{EDK2_REV}"

 

Thanks you are right about the typo!

I replaced the S with $ and it is working correctly :)

  • Thanks 1
Link to comment
Share on other sites

10 minutes ago, Sherlocks said:

today i installed clean 10.14 beta7

 

9.4.1

10.14 beta7

build is no problem.

but i can't see ApfsDriverLoader.efi in package.

309468955_2018-08-1612_57_10.png.5704e2471cb7b64aba0b1dabd0953cea.png


https://github.com/Dids/clover-builder
Dids build is no problem.

 

The clover has already been added to the ApfsDriverLoader package. Is there an additional ApfsDriverLoader address added to the script?


sorry for my bad english

@Philip Petev says: "Build error. I get it too. The current AppleSupportPkg code doesn't seems to play well with the current suggested EDK2 base." Build_Clover.command use EDK2 27429. What about Clover's team use for sync version? I don't know

 

Sorry for my bad english

Link to comment
Share on other sites

[mention=60007]Philip Petev[/mention] says: "Build error. I get it too. The current AppleSupportPkg code doesn't seems to play well with the current suggested EDK2 base." Build_Clover.command use EDK2 27429. What about Clover's team use for sync version? I don't know   Sorry for my bad english

 

 

AppleSupportPkg uses UDK.Dids build used UDK.here is his script.

https://github.com/Dids/clover-builder/commit/6b096a531e1a27f3fe6e2794fbd7400ac859c3f5

 

EDIT1

need to update aptiofixpkg address in script

 

나의 LG-F800S 의 Tapatalk에서 보냄

 

 

 

 

 

 

 

  • Thanks 1
Link to comment
Share on other sites

I was testing the possibility to download the EDK2 code from the GH repo instead of the SF repo, but it seems there is a difference of how subversion handles a pure svn repo and a git repo with svn emulation (such as the GH one). The result is a folder, where every EDK2 module is at different revision, so I reverted that code (v4.9.1).

That however won't fix the problem with AppleSupportPkg. I'm getting this error even with the suggested EDK2 revision (SF) and judging by the message, I think it's about code, not present in this EDK2 revision. My presumption is the author uses UDK instead, which probably has that code.

Edited by Philip Petev
  • Like 1
Link to comment
Share on other sites

32 minutes ago, Philip Petev said:

I was testing the possibility to download the EDK2 code from the GH repo instead of the SF repo, but it seems there is a difference of how subversion handles a pure svn repo and a git repo with svn emulation (such as the GH one). The result is a folder, where every EDK2 module is at different revision, so I reverted that code (v4.9.1).

That however won't fix the problem with AppleSupportPkg. I'm getting this error even with the suggested EDK2 revision (SF) and judging by the message, I think it's about code, not present in this EDK2 revision. My presumption is the author uses UDK instead, which probably has that code.

I just tested (Pauli Jokela) AKA Did's build script and he uses UDK and the build includes the APFSDriverLoader-64.efi

But with our script the APFSDriverLoader-64.efi is still missing.

  • Like 2
Link to comment
Share on other sites

I just tested (Pauli Jokela) AKA Did's build script and he uses UDK and the build includes the APFSDriverLoader-64.efi

But with our script the APFSDriverLoader-64.efi is still missing.

right Did's build is good. his script used UDK like you mentioned. also recently he removed 3rd party uefi driver aptiofix and apfsdriverloader for cleanup according to clover package that i reported it in his github. because clover already has it. he just added hfs+ driver.

 

나의 LG-F800S 의 Tapatalk에서 보냄

 

 

 

  • Like 1
Link to comment
Share on other sites

10 hours ago, Cyberdevs said:

I just tested (Pauli Jokela) AKA Did's build script and he uses UDK and the build includes the APFSDriverLoader-64.efi

But with our script the APFSDriverLoader-64.efi is still missing.

Where to access Did's script?

Link to comment
Share on other sites

8 minutes ago, SavageAUS said:

Where to access Did's script?

Here it is:

Did's Build_Clover.command.zip

 

 

 

2 hours ago, Badruzeus said:

But I get ApfsDriverLoader on Clover package using script v4.9.0, as you could see on my prev. built logs, with EDK2. Or, I was wrong..

The log says it's included in the package, so you're not wrong about that. But I wonder what could be wrong with my package builder?!

I removed everything twice and re downloaded them but no luck so far.

Edited by Cyberdevs
  • Like 2
Link to comment
Share on other sites

5 minutes ago, Cyberdevs said:

Here it is:

Did's Build_Clover.command.zip

 

 

 

The log says it's included in the package, so you're not wrong about that. But I wonder what's could be wrong with my package builder?!

I removed everything twice and re downloaded them but no luck so far.

 

I face exactly the same issue.. with new Build Clover command no APFSDriverLoader-64.efi.. Else everything compiles flawless.. 

Edited by KGP-iMacPro
Link to comment
Share on other sites

×
×
  • Create New...