Jump to content

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


Micky1979
2,126 posts in this topic

Recommended Posts

@Badruzeus, there is no issue with the EDK2 version, that version is set to 24045 for a reason: it's the latest EDK2 version that the Clover source is synced with (check the Clover history log). Using any different value than that (especially higher) and the possible consequence is at your responsibility!

  • Like 2
Link to comment
Share on other sites

Look at my previous post and the two posts before it.

Sorry for my  english.

 

I doesn't understand: Build_Clover script v4.3.1------>EDK2 Remote revision: 24061. 

 

But commit r4037 by Zenith is: sync edk2 svn 24063 

Link to comment
Share on other sites

Version 4.3.1 was released at the point when the latest Clover commit was r24045, that's why it has 24045, set as the suggested edk2 revision inside it.

Now I see something that I can't say is it curious or funny: the latest edk2 revision is indeed 24061 and yet, the latest Clover revision is synced with edk2 24063. @Zenith432 must have crystal ball or something like that at home !

Anyway, until that misunderstanding has been cleared, the suggested Clover revision should stay 24045, who knows, that could be just a typo, but @Zenith432 should clear that mystery.

  • Like 1
Link to comment
Share on other sites

zenith432 must be using github.com/tianocore/edk2 repository which was ahead of sf.net/projects/edk2 by 2 commits at the time 4037 was checked in so calculated that the most recent github revision at that time would eventually be svn revision 24063.

  • Like 2
Link to comment
Share on other sites

Guys, I've played with the script the last several days and now it has a new notifications about the script updates and the lines, used for the header, are now drawn by a function. All works perfectly for me, but I'd like to see feedback from more users before I push those changes to the main repo.
 
The test version 4.3.3 is here (right-click on that link and choose Save as).
 
For the test purpose, change the script version (the SCRIPTVER="v4.3.3" line) accordingly to 4.3.1, 4.3.2 (the current version) and 4.3.3 and see the version notification at the same line.
 

ha! .. we should switch to git.. :wacko:


As long as @Slice uses the SVN repo, we should use it too. Such change would require rewriting the part regarding the EDK2 updates.

  • Like 5
Link to comment
Share on other sites

Version 4.3.4 is up! That update is recommended for Clover 4038+ is synced with EDK2 r24109

 Done!  :) Clover v2.4k r4038 built with Build_Clover.command v4.3.4 under OS X El Capitan 10.11.6 (15G1217), XCode 8.2 Build 8C38 and EDK2 rev 24124. Thanks @philip_petev & others.

post-826765-0-11371800-1489563734_thumb.jpg

post-826765-0-68112200-1489563748_thumb.jpg

Build_Clover.command_03-15-2017.txt

Link to comment
Share on other sites

  • 2 weeks later...

hey get this error how can fix it?

build.py...
/Users/nuiran/src/edk2/Clover/Clover.dsc(...): error 4000: Instance of library class [UefiBootManagerLib] is not found
	in [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf] [X64]
	consumed by module [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf]
 

- Failed -
Build end time: 15:21:46, Mar.25 2017
Build total time: 00:00:02

thx

Link to comment
Share on other sites

Insufficient information. Post the full log.

Running from: macOS 10.12.4
Xcode 8.2.1
Build version 8C1002
                             <--------------------------------------------------
================================================================================
Compiler settings
                             <--------------------------------------------------
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
                             <--------------------------------------------------
================================================================================
BUILDTOOL is XCODE5
                             <--------------------------------------------------

================================================================================
nasm check:
                             <--------------------------------------------------
NASM version 2.12.02 compiled on Jul  6 2016
================================================================================
gettext check:
                             <--------------------------------------------------
found gettext at /Users/nuiran/src/opt/local/bin
================================================================================
Custom boot7
                             <--------------------------------------------------
================================================================================
Modding package resources
                             <--------------------------------------------------
success!

TOOLCHAIN_DIR: /Users/nuiran/src/opt/local
NASM_PREFIX: /Users/nuiran/src/opt/local/bin/
NASM_VER: 2.12.02
Initializing workspace
Loading previous configuration from /Users/nuiran/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/nuiran/src/edk2
EDK_TOOLS_PATH: /Users/nuiran/src/edk2/BaseTools
CONF_PATH: /Users/nuiran/src/edk2/Conf

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED -D NO_GRUB_DRIVERS -D ONLY_SATA_0 -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE5 -n 9 

Build environment: Darwin-16.5.0-x86_64-i386-64bit
Build start time: 23:29:40, Mar.25 2017

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


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

Active Platform          = /Users/nuiran/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/nuiran/src/edk2/Clover/Clover.fdf

Processing meta-data .

build.py...
/Users/nuiran/src/edk2/Clover/Clover.dsc(...): error 4000: Instance of library class [UefiBootManagerLib] is not found
	in [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf] [X64]
	consumed by module [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf]
 

- Failed -
Build end time: 23:29:42, Mar.25 2017
Build total time: 00:00:02
Link to comment
Share on other sites

No problem here

 

Build_Clover script v4.3.7                                  No update available.
                             <--------------------------------------------------
================================================================================
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: 4045    Local revision: 4045
EDK2    Remote revision: 24194    Local revision: 24132

 

Build info.
 ===========
  Package name: Clover_v2.4k_r4045.pkg
  MD5:          fcedcbd50a5e0347703e7846cb5313e0
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2017-03-26 07:09:46
  Built by:     pico
  Copyright     2012-2017

  • Like 3
Link to comment
Share on other sites

Running from: macOS 10.12.4
Xcode 8.2.1
Build version 8C1002
                             <--------------------------------------------------
================================================================================
Compiler settings
                             <--------------------------------------------------
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
                             <--------------------------------------------------
================================================================================
BUILDTOOL is XCODE5
                             <--------------------------------------------------

================================================================================
nasm check:
                             <--------------------------------------------------
NASM version 2.12.02 compiled on Jul  6 2016
================================================================================
gettext check:
                             <--------------------------------------------------
found gettext at /Users/nuiran/src/opt/local/bin
================================================================================
Custom boot7
                             <--------------------------------------------------
================================================================================
Modding package resources
                             <--------------------------------------------------
success!

TOOLCHAIN_DIR: /Users/nuiran/src/opt/local
NASM_PREFIX: /Users/nuiran/src/opt/local/bin/
NASM_VER: 2.12.02
Initializing workspace
Loading previous configuration from /Users/nuiran/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/nuiran/src/edk2
EDK_TOOLS_PATH: /Users/nuiran/src/edk2/BaseTools
CONF_PATH: /Users/nuiran/src/edk2/Conf

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED -D NO_GRUB_DRIVERS -D ONLY_SATA_0 -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE5 -n 9 

Build environment: Darwin-16.5.0-x86_64-i386-64bit
Build start time: 23:29:40, Mar.25 2017

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


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

Active Platform          = /Users/nuiran/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/nuiran/src/edk2/Clover/Clover.fdf

Processing meta-data .

build.py...
/Users/nuiran/src/edk2/Clover/Clover.dsc(...): error 4000: Instance of library class [UefiBootManagerLib] is not found
	in [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf] [X64]
	consumed by module [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf]
 

- Failed -
Build end time: 23:29:42, Mar.25 2017
Build total time: 00:00:02

without custom macros enabled compile fine?

Link to comment
Share on other sites

without custom macros enabled compile fine?

Running from: macOS 10.12.4
Xcode 8.2.1
Build version 8C1002
                             <--------------------------------------------------
================================================================================
Compiler settings
                             <--------------------------------------------------
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
                             <--------------------------------------------------
================================================================================
BUILDTOOL is XCODE5
                             <--------------------------------------------------

================================================================================
nasm check:
                             <--------------------------------------------------
NASM version 2.12.02 compiled on Jul  6 2016
================================================================================
gettext check:
                             <--------------------------------------------------
found gettext at /Users/nuiran/src/opt/local/bin
================================================================================
boot6
                             <--------------------------------------------------
TOOLCHAIN_DIR: /Users/nuiran/src/opt/local
NASM_PREFIX: /Users/nuiran/src/opt/local/bin/
NASM_VER: 2.12.02
Initializing workspace
Loading previous configuration from /Users/nuiran/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/nuiran/src/edk2
EDK_TOOLS_PATH: /Users/nuiran/src/edk2/BaseTools
CONF_PATH: /Users/nuiran/src/edk2/Conf

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED -D CHECK_FLAGS -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE5 -n 9 

Build environment: Darwin-16.5.0-x86_64-i386-64bit
Build start time: 01:37:39, Mar.26 2017

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


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

Active Platform          = /Users/nuiran/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/nuiran/src/edk2/Clover/Clover.fdf

Processing meta-data .

build.py...
/Users/nuiran/src/edk2/Clover/Clover.dsc(...): error 4000: Instance of library class [UefiBootManagerLib] is not found
	in [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf] [X64]
	consumed by module [/Users/nuiran/src/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf]
 

- Failed -
Build end time: 01:37:41, Mar.26 2017
Build total time: 00:00:02


o_Ops, ./ebuild.sh exited with error(s), aborting..
Link to comment
Share on other sites

×
×
  • Create New...