Jump to content
Micky1979

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

2,126 posts in this topic

Recommended Posts

well that's a lot simpler! and it works.

PS: i made a more space efficient clover icon by using the macOS iconutil to dump out the iconset and removed the 512 and 1024 size.

 

Edited by tluck

Share this post


Link to post
Share on other sites
Advertisement
12 hours ago, vector sigma said:

I want to use that in Clover as well, just I've to decide if use a procompiled version or build it...

It will be good improvement and precompiled version will be enough as the sources located in neighbor project.

Share this post


Link to post
Share on other sites
On 1/22/2019 at 1:59 AM, vector sigma said:

Hi, when I created the build script for the HWSensor project I was looking for a way to set the image for the package but after saw the above lines in Clover last year...I decide to make a tiny command line called seticon (source code here). Attached a prebuilt one, usage:

 


seticon /path/to/any/image/supported/by/macOS/anyImage.png /path/to/any/file/or/directory

 

It just require an uncompressed image unlike clover is actually doing...using just one line. Please tell me if works as expected as I hope.

seticon.zip

Thanks, very simple works.

Share this post


Link to post
Share on other sites

FYI: after the update to 10.14.3 vs beta - the icon thing for the pkg file seems to work again now? 

seems "ditto" for the unzip was temporarily broken -- but now i see the file has a resource fork with unpackaged by ditto

 

$ ditto -xk Icon.zip Icons

 

$ ls -l@ Icons/Icon.icns

-rw-r--r--@ 1 tluck  staff  795355 Jun 30  2018 Icon.icns

com.apple.FinderInfo     32

com.apple.ResourceFork 453615

com.apple.quarantine     28

Share this post


Link to post
Share on other sites

Currently, having issue building Clover with GCC53 under Ubuntu 18.04.1:

 

 

=================================================================
Running from: Ubuntu 18.04
                             <--------------------------------------------------
=================================================================
Compiler settings
                             <--------------------------------------------------
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-1ubuntu2~18.04' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.2.0 (Ubuntu 8.2.0-1ubuntu2~18.04) 
                             <--------------------------------------------------
=================================================================
BUILDTOOL is GCC53
                             <--------------------------------------------------

=================================================================
nasm check:
                             <--------------------------------------------------
NASM version 2.13.02
Loading previous configuration from /home/badruzeus/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /home/badruzeus/src/edk2
EDK_TOOLS_PATH: /home/badruzeus/src/edk2/BaseTools
CONF_PATH: /home/badruzeus/src/edk2/Conf

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

 

 

Screenshot from 2019-02-12 23-04-54.png

 

Built succeeded on OS X 10.11.6 with Xcode 8.2.1 though.

Edited by Badruzeus

Share this post


Link to post
Share on other sites

It is a bug of GCC53. The variable TextHeight defined exactly in same places and there are no such messages about it.

You may insert a line

INTN BCSMargin = 11;

somewhere above this line to check if the issue will be resolved.

Share this post


Link to post
Share on other sites
7 hours ago, Wackymac said:

anyway to get around nasm.us being down?

there are few extra sources which have all (quite) the repositories up you can google it and you'll find...

i used 'em to get my ffmpeg and handbrake builds done

can't remember the exact address since i didn't saved it, but its stored onto an Universitity server in colorado if i'm not mistaken...

you should find one even on github

Edited by LAbyOne

Share this post


Link to post
Share on other sites
8 hours ago, Wackymac said:

anyway to get around nasm.us being down?

Really!

I found new sources here

https://repo.or.cz/nasm.git

But nasm.us down, github and sf.net has old codes.

Share this post


Link to post
Share on other sites

Just a question, who can rewrite existing buildnasm.sh script to use this new address?

Download sources as

git clone --depth 1 https://repo.or.cz/nasm.git

Share this post


Link to post
Share on other sites
20 minutes ago, Slice said:

Just a question, who can rewrite existing buildnasm.sh script to use this new address?

Download sources as

git clone --depth 1 https://repo.or.cz/nasm.git

LOL i was wrong about colorado :) its oregon!!!

 

Anyway @Slice simply replace this line and all will be allright

 

        curl -f -o download.tmp --remote-name https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/$tarball || exit 1

  to   ->

        curl -f -o download.tmp --remote-name https://ftp.osuosl.org/pub/blfs/conglomeration/nasm/$tarball || exit 1

buildnasm.sh

Edited by LAbyOne

Share this post


Link to post
Share on other sites
19 minutes ago, LAbyOne said:

LOL i was wrong about colorado :) its oregon!!!

 

Anyway @Slice simply replace this line and all will be allright

 

        curl -f -o download.tmp --remote-name https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/$tarball || exit 1

  to   ->

        curl -f -o download.tmp --remote-name https://ftp.osuosl.org/pub/blfs/conglomeration/nasm/$tarball || exit 1

buildnasm.sh

Thanks, committed!

Share this post


Link to post
Share on other sites
On 2/13/2019 at 6:00 PM, Slice said:

It is a bug of GCC53. The variable TextHeight defined exactly in same places and there are no such messages about it.

You may insert a line

INTN BCSMargin = 11;

somewhere above this line to check if the issue will be resolved.

Problem SOLVED. Thank you.

 

#EDIT: Also suceeded built under Ubuntu 18.04.2 with NASM 2.14.02:

================================================================================
BUILDTOOL is GCC53
                             <--------------------------------------------------

================================================================================
nasm check:
                             <--------------------------------------------------
NASM version 2.14.02 compiled on Feb 14 2019
Loading previous configuration from /home/badruzeus/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /home/badruzeus/src/edk2
EDK_TOOLS_PATH: /home/badruzeus/src/edk2/BaseTools
CONF_PATH: /home/badruzeus/src/edk2/Conf

================================================================================
build started at:
Thu Feb 14 22:54:47 WIB 2019
finished at
Thu Feb 14 22:59:30 WIB 2019

Done!

                             <--------------------------------------------------
Clover was built successfully!

 

Edited by Badruzeus

Share this post


Link to post
Share on other sites
19 hours ago, Wackymac said:

ah, i thought in the build script

 

The script is not modified at this time. We have to wait a bit to update the new nasm support. I think.

 

EDIT: nasm.us seems to be active again. Just change nasmpreferred to 2.14.12 in the script instead of 2.13.03

Edited by Matgen84

Share this post


Link to post
Share on other sites
On 2/14/2019 at 2:21 PM, Slice said:

Thanks, committed!

 

On 2/14/2019 at 2:01 PM, LAbyOne said:

LOL i was wrong about colorado :) its oregon!!!

 

Anyway @Slice simply replace this line and all will be allright

 

        curl -f -o download.tmp --remote-name https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/$tarball || exit 1

  to   ->

        curl -f -o download.tmp --remote-name https://ftp.osuosl.org/pub/blfs/conglomeration/nasm/$tarball || exit 1

buildnasm.sh

 

nasm.us seems to be active again. What is the difference between nasm.us and ftp.osuosl.org? Please.

Capture d’écran 2019-02-15 à 16.05.11.png

Share this post


Link to post
Share on other sites

Its obvious

 

SINCE nasm.us was down, the reasonable option to get New Users build Clover was to add a NEW source for nasm, 

 

Obviously again for all who already had a src folder from previous builds hence having already compiled all needed tools into opt folder wouldn't notice that it would compromise the compilation

 

So to reply your answer (if it wasn't clear) 

there's no difference in sources

only the server changed

 

and if you want you can now replace (inversing the addresses you quoted) to original state

Share this post


Link to post
Share on other sites
3 minutes ago, LAbyOne said:

Its obvious

 

SINCE nasm.us was down, the reasonable option to get New Users build Clover was to add a NEW source for nasm, 

 

Obviously again for all who already had a src folder from previous builds hence having already compiled all needed tools into opt folder wouldn't notice that it would compromise the compilation

 

So to reply your answer (if it wasn't clear) 

there's no difference in sources

only the server changed

 

and if you want you can now replace (inversing the addresses you quoted) to original state

 

Hi

 

Thanks :) I understand.

 

But nasm.us is active again. Just put NASM_PREFERRED="2.14.02" in the script. All works fine for new src folder.

 

Sorry for my bad english

Share this post


Link to post
Share on other sites

Is the script working ok currently, I haven't updated in a few weeks and it just failed on me (Also after letting it create a new /src folder)?

 

================================================================================
Building AptioFixPkg
                             <--------------------------------------------------

Build environment: Darwin-16.7.0-x86_64-i386-64bit
Build start time: 23:06:02, Feb.20 2019

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


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

Active Platform          = /Users/dan/src/edk2/AptioFixPkg/AptioFixPkg.dsc

Processing meta-data ..

build.py...
/Users/dan/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(519): error 000E: File/directory not found in workspace
	/Users/dan/src/edk2/MdePkg/Library/BaseLib/X86SpeculationBarrier.c
 

- Failed -
Build end time: 23:06:04, Feb.20 2019
Build total time: 00:00:02


================================================================================
Building AppleSupportPkg
                             <--------------------------------------------------

Build environment: Darwin-16.7.0-x86_64-i386-64bit
Build start time: 23:06:04, Feb.20 2019

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


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

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

Processing meta-data .

build.py...
/Users/dan/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(519): error 000E: File/directory not found in workspace
	/Users/dan/src/edk2/MdePkg/Library/BaseLib/X86SpeculationBarrier.c
 

- Failed -
Build end time: 23:06:06, Feb.20 2019
Build total time: 00:00:02

================================================================================
Building Clover
                             <--------------------------------------------------
================================================================================
boot6
                             <--------------------------------------------------
TOOLCHAIN_DIR: /Users/dan/src/opt/local
MTOC_PREFIX: /usr/local/bin/
NASM_PREFIX: /Users/dan/src/opt/local/bin/
NASM_VER: 2.13.03
Building from: /Users/dan/src/edk2

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED --conf=/Users/dan/src/edk2/Conf -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE8 -n 9 

Build environment: Darwin-16.7.0-x86_64-i386-64bit
Build start time: 23:06:07, Feb.20 2019

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


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

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

Processing meta-data ...

build.py...
/Users/dan/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(519): error 000E: File/directory not found in workspace
	/Users/dan/src/edk2/MdePkg/Library/BaseLib/X86SpeculationBarrier.c
 

- Failed -
Build end time: 23:06:11, Feb.20 2019
Build total time: 00:00:03


o_Ops, ./ebuild.sh exited with error(s), aborting..
Dans-Mac-mini:~ dan$ 

 

Share this post


Link to post
Share on other sites

Build_Clover.commandV4.9.5,Clover-4881,OSX_10.13.6,XCODE-10.1,EDK2-28853,TC=XCODE8

[CC] MultS64x64
/Users/z77x/src/edk2/OcSupportPkg/Library/OcMiscLib/Base64Decode.c:54:1: error: conflicting types for 'Base64Decode'
Base64Decode (
^
/Users/z77x/src/edk2/MdePkg/Include/Library/BaseLib.h:2812:1: note: previous declaration is here
Base64Decode (
^
1 error generated.
[SLINK] UefiHiiServicesLib
Building ... /Users/z77x/src/edk2/OcSupportPkg/Library/OcTimerLib/OcTimerLib.inf [X64]
make: *** [/Users/z77x/src/edk2/Build/AppleSupportPkg/RELEASE_XCODE8/X64/OcSupportPkg/Library/OcMiscLib/OcMiscLib/OUTPUT/Base64Decode.obj] Error 1


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/z77x/src/edk2/Build/AppleSupportPkg/RELEASE_XCODE8/X64/OcSupportPkg/Library/OcMiscLib/OcMiscLib]


build.py...
 : error F002: Failed to build module
	/Users/z77x/src/edk2/OcSupportPkg/Library/OcMiscLib/OcMiscLib.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 08:35:46, Feb.21 2019
Build total time: 00:00:08

logComp4881(TC=XCODE8.txt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By TimothyF
      My steps so far:
      Set up Catalina install USB exactly according to Plain Vanilla guide. Disconnect my Windows drive in PC, so that only the empty Hard Drive is connected to Motherboard. Boot to USB, select Install Catalina option. BIOS set to UEFI, Safe mode Off. Always get stuck at the same IOconsoleUsers: GIOScreenLockState point. Tried -radvesa, -radoff, nv-disable=0 boot options (separately), and disabling BIOS virtualization (vt-d) -> NO luck. This from the top search result https://www.reddit.com/r/hackintosh/comments/b5a6ry/ioconsoleusersgioscreenlockstate_3_blackscreen/  
      Screen pics attached. Here are the last couple of lines that could be important:
      GTrace synchronization point 4
      Unsupported CPU
      Unsupported PCH
      Adding ADGP mode validate property
      hmm.. mismatch sizes 3100 vs 20
      IOConsoleUsers: time(0) 0->0, lin 0, llk 1,
      IOconsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 0, sm 0x0
       
      Please give me some ideas what else might work. Thank you.


       
       
      Other details of Clover and Desktop PC below:
       
      Clover USB specs OS installer used: Catalina (10.15) Clover revision: 5103 Kexts included: ATH9KFixup.kext AppleALC.kext Lilu.kext RealtekRTL8111.kext USBInjectAll.kext VirtualSMC.kext WhateverGreen.kext config.plist: config.plist ------------------------------------------ Target Desktop specs: Dell Inspiron 3847 (64 bit) CPU: Intel Core i5-4460, 3.2 GHz, 4 cores Architecture: Haswell GPU: Intel HD 4600 Motherboard: Dell 088DT1 (version A01) Chipset: Intel H81 Install method: with USB, configured with Clover, 100% following Plain Vanilla guide for Desktops RAM: 12 GB, 2 slots Hard drive for installation: SATA HDD 4TB, by HGST LAN: RTL8111/8168/8411 WLAN: AR9565 (atheros) Audio: Realtek ALC661 (not 100% sure this is correct)  
    • By MaLd0n
      Install MacOS with Olarila Image, Step by Step, Install and Post Install  
      https://www.olarila.com/topic/5794-hackintosh-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
          First... If you need DSDT edits for SkyLake, KabyLake or CoffeeLake... -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) -Post Ioreg, extract with Ioreg Explorer http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222606 -Run it, post files generated in your desktop http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222609  Installation   --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Paste my EFI folder into EFI partition  EFI GA H110M-S2.zip     --Install Sierra/High Sierra and boot into system!   Post Installation   --Paste my EFI folder into EFI partition  EFI GA H110M-S2.zip     --Reboot and activate video!   -Nvidia WebDriver Sierra http://www.insanelymac.com/forum/topic/312525-nvidia-web-driver-updates-for-macos-sierra-update-07212017/ -Nvidia WebDriver High Sierra http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-10162017/ -Cuda http://www.insanelymac.com/forum/topic/302795-cuda-90214-is-out-update-10162017/   --DSDT My DSDT with Skylake patches DSDT.GA H110M-S2.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By STLVNUB
      Script file to clone Clover, Opencore (official and unofficial) repos
      Script will create link to itself in /usr/local/bin/bob
      Wouldn't hurt to check there are no "Bob"'s there, i "Hope" there isn't.
      Then you only need to type bob. and a parameter
      "n" for NDK repo, unofficial
      "a" for ACID repo, official
      "c" for CLOVER
      It also takes "all" for ALL, if your game
       
      Easier typing bob than.....usual stuff
      Enjoy
       
    • By TimothyF
      My PROBLEM: I followed the Plain Vanilla guide (https://hackintosh.gitbook.io/-r-hackintosh-vanilla-desktop-guide/) to a T in creating the OS X Catalina installer USB. I'm totally new to Hackintosh, and just want an Apple environment to Time Machine migrate my files and system from my ageing MacBook Pro. When I start to use the USB on the target PC (Dell Inspiron 3847 desktop), I ONLY see the Microsoft (which is the original OS, and on a SEPARATE Hard drive from where I want to install Mac OS), ZERO option for installing the OSX Catalina! Please SEE PICTURE link: https://imgur.com/a/FnLB2Q9   I'm a beginner, but I tried to google my problem. The answers were either incomplete, hard for me to understand and put into action, or were outdated and applied to older OSXs. I appreciate any help in diagnosing and solving this problem!   Clover USB specs OS installer used: Catalina (10.15) Clover revision: 5103 Kexts included: ATH9KFixup.kext AppleALC.kext Lilu.kext RealtekRTL8111.kext USBInjectAll.kext VirtualSMC.kext WhateverGreen.kext config.plist: see attached ------------------------------------------ Target Desktop specs: Dell Inspiron 3847 (64 bit) CPU: Intel Core i5-4460, 3.2 GHz, 4 cores Architecture: Haswell GPU: Intel HD 4600 Motherboard: Dell 088DT1 (version A01) Chipset: Intel H81 Install method: with USB, configured with Clover, 100% following Plain Vanilla guide for Desktops RAM: 12 GB, 2 slots Hard drive for installation: SATA HDD 4TB, by HGST LAN: RTL8111/8168/8411 WLAN: AR9565 (atheros) Audio: Realtek ALC661 (not 100% sure this is correct)   ------------------------------------ Attached:
      Screenshot of Clover installer not showing the Mac OSX option
      config.plist of my installer USB
      Clover_Install_Log.txt (not sure if this is relevant)   THANK YOU VERY MUCH!     config.plist
      Clover_Install_Log.txt
    • By Simon's InsaneMac
      Hi, I'm kind of lost when scrolling to Clover Configurator, so I decided to use an EFI from the web and just configure the most basic stuff. But that sadly didn't work, im always getting the attached screen IMG_0054.HEIC (and I don't know whether all the errors are listed, as I can't scroll). 
      Anyways I thought it'd be better to do a custom setup. Can anyone give me some help with what to choose in the settings? Here's my rig:
      i7 8700k
      Asus z370-G (Rog Strix)
      gtx 1060 6gb
      samsung ssd (SATA)
      WD hard drive
       
      Your help would be much appreciated!
×