Jump to content

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


Micky1979
2,126 posts in this topic

Recommended Posts

Never used caja, but you can make it conditional based on the presence of one of the two (caja or nautilus) and report back with the correct syntax?

For curl there's a problem using apt? That means that also wget is not present. Can you take a look and locate the problem?  .. should be nice fixing compilation on another Linux distro!

Thanks

 

EDIT, about the pkg or the iso in linux. .. I don't know. May be possible to build both, but also runnable?

Link to comment
Share on other sites

hello Micky 

one suggestion :

when user select to create symlink then you should use (or make copy) script from SRC or Build_Clover/SRC folder instead script is placed somewhere 

this will won't be issue when script is deleted and can use terminal to trigger 

 

BTW build 3884 is fine with modified buildpkg.sh 

Link to comment
Share on other sites

I installed clean Sierra. To compile Clover it asked for xcode command line tool. Did this, OK.

Next step: download binary NASM and install into /usr/local/bin.

Thats all! I can compile Clover here. 

What about gettext?

Link to comment
Share on other sites

Hello Micky

 

update Build Clover.command 4.1.6 + Clover 3884 I get an error

Error can't add choice 'HashServiceFix-64': a choice with same name already exists.
make: *** [pkg] Error 1

Fabio

 

Same here. I think something with the package definitions is messed up. The macOS packages framework doesn't allow two or more subpackages with one and the same internal descriptor.

Link to comment
Share on other sites

hello Micky 

one suggestion :

when user select to create symlink then you should use (or make copy) script from SRC or Build_Clover/SRC folder instead script is placed somewhere 

this will won't be issue when script is deleted and can use terminal to trigger 

 

BTW build 3884 is fine with modified buildpkg.sh 

naah, when you create the symlink in /usr/local/bin is usefull if you have multiple accounts so that you can run it easily w/o make multiple copies of it. But what should do the script if you call it from another src... make another copy of itself on the new src? Instead use the MODE=R and all the repositories are downloaded inside the folder that contains Build_Clover.command, then when you create the symlink it just refear to that source regardless of which OS or partition you are calling him (or it).

I installed clean Sierra. To compile Clover it asked for xcode command line tool. Did this, OK.

Next step: download binary NASM and install into /usr/local/bin.

Thats all! I can compile Clover here. 

What about gettext?

For me is ok, me and STLVNUB we where talking about if you use the 'developer mode' option... that as expected did not install gettext or any other stuff. 

Hello Micky

 

update Build Clover.command 4.1.6 + Clover 3884 I get an error

Error can't add choice 'HashServiceFix-64': a choice with same name already exists.
make: *** [pkg] Error 1

Fabio

 

 

Same here. I think something with the package definitions is messed up. The macOS packages framework doesn't allow two or more subpackages with one and the same internal descriptor.

Yep see here.  Is not clear to me if new drivers (HashServiceFix-64 and UsbkbDxe-64) can be used with CloverEFI, but buildpkg.sh does not allow duplicate choices in the Distribution file (yep, not really the script, but is OSX that will not allow this later). So the modded buildpkg.sh I made allow those two drivers to be embedded by adding a suffix (not on the driver, but on a new .pkg file) and being compilable so that you can installa it in drivers64UEFI or also in drivers64. If that is not correct, Slice should remove them in ebuild.sh otherwise a copy is made and buildpkg.sh will always try to build a duplicate choice that is not allowed.

Excuse my dumb ass question, but what is the flag that makes boot6/7 450KB in size?

With OLD SCHOOL legacy iso build to work here, the size should be 483KB...

 

I use USB legacy to boot virgin RETAIL DVD's and the 450KB boot (boot7) file does not show the DVD's, and thats if it boots to GUI.

so evey time I compile new version I must copy an OLDER 483KB (boot6) file to the USB.

 

Pardon my OT.

:)

 

edit:

Snow Leopard does not boot with 450KB file, kernel panic, with 483KB all good on HP 6910P

the lto flag was eradicate by Slice in toolsdef.txt for the XCODE5 tool chain because of some problem leaving it enabled with newer Xcode 8. It's still available if you build with gcc or you are in linux.

If you refear to this.

Link to comment
Share on other sites

Yep see here.  Is not clear to me if new drivers (HashServiceFix-64 and UsbkbDxe-64) can be used with CloverEFI, but buildpkg.sh does not allow duplicate choices in the Distribution file (yep, not really the script, but is OSX that will not allow this later). So the modded buildpkg.sh I made allow those two drivers to be embedded by adding a suffix (not on the driver, but on a new .pkg file) and being compilable so that you can installa it in drivers64UEFI or also in drivers64. If that is not correct, Slice should remove them in ebuild.sh otherwise a copy is made and buildpkg.sh will always try to build a duplicate choice that is not allowed.

 

 

Following the signs, no problem with version 4.1.6 and built Clover r 3884

 

Fabio

Output di Terminal Clover 3884.zip

  • Like 1
Link to comment
Share on other sites

Excuse my dumb ass question, but what is the flag that makes boot6/7 450KB in size?

With OLD SCHOOL legacy iso build to work here, the size should be 483KB...

 

I use USB legacy to boot virgin RETAIL DVD's and the 450KB boot (boot7) file does not show the DVD's, and thats if it boots to GUI.

so evey time I compile new version I must copy an OLDER 483KB (boot6) file to the USB.

 

Pardon my OT.

:)

 

edit:

Snow Leopard does not boot with 450KB file, kernel panic, with 483KB all good on HP 6910P

The flag will be

./ebuild.sh --std-ebda

to create 483kb file.

But I think the problem is not here.. See also choice Boot7 for MCP79. 

  • Like 2
Link to comment
Share on other sites

You will be able to test next version by editing the current last version at line 252 by adding 'USE_LOW_EBDA':

# additional macro to compile Clover EFI
macros=(
        USE_APPLE_HFSPLUS_DRIVER
        USE_BIOS_BLOCKIO
        DISABLE_USB_SUPPORT
        NO_GRUB_DRIVERS
        NO_GRUB_DRIVERS_EMBEDDED
        ONLY_SATA_0
        DISABLE_UDMA_SUPPORT
        ENABLE_VBIOS_PATCH_CLOVEREFI
        ENABLE_PS2MOUSE_LEGACYBOOT
        DEBUG_ON_SERIAL_PORT
        ENABLE_SECURE_BOOT
        USE_ION
        DISABLE_USB_MASS_STORAGE
        ENABLE_USB_OHCI
        ENABLE_USB_XHCI
        REAL_NVRAM
        CHECK_FLAGS
        USE_LOW_EBDA
        )

..then add what you need using "build existing revision with custom macros enabled". Please test

  • Like 1
Link to comment
Share on other sites

hello mickey :)

 

i updated 4.1.6 script

 

and i build latest clover. but fail here is log

 

my enviroment

10.2.2 beta sierra, xcode8.1

 

 

===================== drivers64 ========================

[bUILD] GrubEXFAT-64

[bUILD] GrubISO9660-64

[bUILD] GrubNTFS-64

[bUILD] GrubUDF-64

[bUILD] HashServiceFix-64

[bUILD] NvmExpressDxe-64

[bUILD] Ps2MouseDxe-64

[bUILD] UsbKbDxe-64

[bUILD] UsbMouseDxe-64

[bUILD] VBoxExt2-64

[bUILD] VBoxExt4-64

[bUILD] VBoxIso9600-64

[bUILD] XhciDxe-64

=============== drivers64 UEFI mandatory ===============

[bUILD] AppleImageCodec-64.UEFI

[bUILD] AppleKeyAggregator-64.UEFI

[bUILD] AppleUITheme-64.UEFI

[bUILD] DataHubDxe-64.UEFI

[bUILD] FirmwareVolume-64.UEFI

[bUILD] FSInject-64.UEFI

[bUILD] OsxFatBinaryDrv-64.UEFI

[bUILD] SMCHelper-64.UEFI

[bUILD] VBoxHfs-64.UEFI

=================== drivers64 UEFI =====================

[bUILD] CsmVideoDxe-64

[bUILD] EmuVariableUefi-64

[bUILD] HashServiceFix-64

Error can't add choice 'HashServiceFix-64': a choice with same name already exists.

make: *** [pkg] Error 1

===============================================================================

build started at:

Tue Nov  1 15:44:08 KST 2016

finished at

Tue Nov  1 15:49:33 KST 2016

 

Done!

 

thank you

  • Like 1
Link to comment
Share on other sites

Not about the script .. I can build Clover_v2.3k_r3893.pkg with Build_Clover script v4.1.6

 

===========

Package name: Clover_v2.3k_r3893.pkg

MD5: 471ebbf8476da954ba7fa14edc6da017

Version: v2.3k

Stage: v2.3k

Date/Time: 2016-11-01 14:33:00

Built by: pico

Copyright 2012-2016

 

maybe rollback the edk2 can solve your problem

 

  • Like 2
Link to comment
Share on other sites

uild_Clover script v4.1.6  is the latest version avaiable
                          <----------------------------------------------------
===============================================================================
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.6
                          <----------------------------------------------------
Remote revision: 3894 Local revision: 3892
                          <----------------------------------------------------
Please enter your choice: 
 1) add "buildclover" symlink to /usr/local/bin
 2) update Clover only (no building)
 3) update Clover + force edk2 update (no building)
 4) run my script on the source
 5) build existing revision (no update, for testing only)
 6) build existing revision for release (no update, standard build)
 7) build existing revision with custom macros enabled
 8) info and limitations about this script
 9) enter Developers mode (only for devs)
 10) Exit
? 2
===============================================================================
Running from: 10.11.6
                          <----------------------------------------------------
===============================================================================
Xcode 8.1
Build version 8B62
                          <----------------------------------------------------

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-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
===============================================================================

                          <----------------------------------------------------

===============================================================================
Updating edk2
                          <----------------------------------------------------
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   592    0   592    0     0    675      0 --:--:-- --:--:-- --:--:--   675
edk2 appear to be up to date, skipping ...
checking..available, continuing..

===============================================================================
Updating Clover
                          <----------------------------------------------------
Updating '.':
U    CloverPackage/package/Scripts.templates/EFIFolder/MountESP
U    rEFIt_UEFI/Platform/Settings.c
U    rEFIt_UEFI/Platform/Platform.h
U    rEFIt_UEFI/Platform/hda.c
U    rEFIt_UEFI/Platform/hda.h
Updated to revision 3894.
===============================================================================
Apply Edk2 patches
                          <----------------------------------------------------

Remote revision: 3894 Local revision: 3894 
                          <----------------------------------------------------
Please enter your choice: 

..........

total 75464
drwxr-xr-x  13 labyone  staff       442 Nov  1 10:38 .
drwxr-xr-x  15 labyone  staff       510 Nov  1 10:38 ..
drwxr-xr-x   5 labyone  staff       170 Nov  1 10:38 CloverCD
drwxr-xr-x   4 labyone  staff       136 Nov  1 10:38 CloverISO-3894
-rw-r--r--   1 labyone  staff   6768864 Nov  1 10:38 CloverISO-3894.tar.lzma
-rw-r--r--@  1 labyone  staff  15788001 Nov  1 10:37 Clover_v2.3k_r3894.pkg
-rw-r--r--   1 labyone  staff        68 Nov  1 10:38 Clover_v2.3k_r3894.pkg.md5
-rw-r--r--   1 labyone  staff  15689400 Nov  1 10:38 Clover_v2.3k_r3894.zip
drwxr-xr-x   3 labyone  staff       102 Nov  1 10:37 Resources
drwxr-xr-x   7 labyone  staff       238 Nov  1 10:37 build
drwxr-xr-x   4 labyone  staff       136 Nov  1 10:38 i386
drwxr-xr-x   3 labyone  staff       102 Nov  1 10:38 package
drwxr-xr-x   7 labyone  staff       238 Nov  1 10:37 utils

build started at:
Tue Nov  1 10:35:03 CET 2016
finished at
Tue Nov  1 10:38:09 CET 2016

Done!

it woks fine here build with no problem  

Link to comment
Share on other sites

Ok also if compiling in Linux, IF gcc=6.2.1 use GCC53 else GCC49 etc

in ebuild.sh

USE_LOW_EBDA=1 450KB :(

USE_LOW_EBDA=0 483KB :)

ha ha ok, is enabled by default. correct.

So that need just "--std-ebda" as arg. Ok will add an opt in dev mode "build CloverEFI with --std-ebda"

Link to comment
Share on other sites

×
×
  • Create New...