Jump to content

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


Micky1979
2,126 posts in this topic

Recommended Posts


build.py...

/Users/shane/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(350): error 000E: File/directory not found in workspace

/Users/shane/src/edk2/MdePkg/Library/BaseLib/X64/Lfence.nasm

 

 

- Failed -

Build end time: 19:30:39, Nov.15 2018

Build total time: 00:00:02

 

 

o_Ops, ./ebuild.sh exited with error(s), aborting..

Link to comment
Share on other sites

55 minutes ago, SavageAUS said:

 


build.py...

/Users/shane/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(350): error 000E: File/directory not found in workspace

/Users/shane/src/edk2/MdePkg/Library/BaseLib/X64/Lfence.nasm

 

 

- Failed -

Build end time: 19:30:39, Nov.15 2018

Build total time: 00:00:02

 

 

o_Ops, ./ebuild.sh exited with error(s), aborting..

 

 

Do you change from -27956 to -28338 edk2 in the script before the next update 4.9.4

 

I do that and I can compile without issues (option 3 and option 6)

Edited by Matgen84
Link to comment
Share on other sites

53 minutes ago, SavageAUS said:

 


build.py...
/Users/shane/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(350): error 000E: File/directory not found in workspace
/Users/shane/src/edk2/MdePkg/Library/BaseLib/X64/Lfence.nasm

- Failed -
Build end time: 19:30:39, Nov.15 2018
Build total time: 00:00:02

o_Ops, ./ebuild.sh exited with error(s), aborting..

 

 

Line 1638:

EDK2_REV="${EDK2_REV:-28338}"

 

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
3 hours ago, Matgen84 said:

 

Do you try to create new ~/src ?

Yes, I did. Bat In this case, I get the following:

Checked out revision 28338.

 

DuetPkg:

checking..svn: warning: W170000: URL 'https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg' non-existent in revision 28473

 

svn: E200009: Could not display info for all targets because some targets don't exist

checking..svn: warning: W170000: URL 'https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg' non-existent in revision 28473

 

svn: E200009: Could not display info for all targets because some targets don't exist

checking..svn: warning: W170000: URL 'https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg' non-existent in revision 28473

 

svn: E200009: Could not display info for all targets because some targets don't exist

checking..svn: warning: W170000: URL 'https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg' non-existent in revision 28473

 

svn: E200009: Could not display info for all targets because some targets don't exist

checking..svn: warning: W170000: URL 'https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg' non-existent in revision 28473

 

svn: E200009: Could not display info for all targets because some targets don't exist

 

Error: unable to access https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg after 5 attempts.

Build_Clover go to fail voluntarily to avoid problems,

check your internet connection or retry later!

 

svn: E160013: '/p/edk2/code/!svn/rvr/28473/trunk/edk2/DuetPkg' path not found

 

An error was encountered syncing the repository:

------------------------------

 

svn: E160013: '/p/edk2/code/!svn/rvr/28473/trunk/edk2/DuetPkg' path not found

 

------------------------------

Can be temporarily, retry later or seek for help.

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Процесс завершен]

 

If I try to open URL: https://svn.code.sf.net/p/edk2/code/trunk/edk2/DuetPkg/ in Safari manually, it gives an error message:

Not Found

The requested URL /p/edk2/code/trunk/edk2/DuetPkg/ was not found on this server.

Edited by MakAsus
Link to comment
Share on other sites

25 minutes ago, vector sigma said:

I understood.

15 minutes ago, vector sigma said:

UDK2019 will be the same.

But when I use this script:

#!/bin/bash
#
echo "=================";
echo "make dir src";
echo "=================";
cd ~;
mkdir src;
echo "=================";
echo "download EDK2";
echo "=================";
cd ~/src/;
svn co -r 28338 svn://svn.code.sf.net/p/edk2/code/trunk/edk2 ~/src/edk2;
echo "=================";
echo "download Clover";
echo "=================";
cd ~/src/edk2;
svn checkout svn://svn.code.sf.net/p/cloverefiboot/code/ ~/src/edk2/Clover;
echo "=================";
echo "patch Edk2 Files";
echo "=================";
cp -R ~/src/edk2/Clover/Patches_for_EDK2/* ~/src/edk2/;
echo "=================";
echo "End Updates";
echo "=================";


Before running Build_Clover.command, everything is fine.
Probably need to remake Build_Clover.command.

Edited by MakAsus
Link to comment
Share on other sites

53 minutes ago, vector sigma said:

Just don't checkout DuetPkg


edk2array=(
	MdePkg
	MdeModulePkg
	CryptoPkg
	EdkCompatibilityPkg
	IntelFrameworkModulePkg
	IntelFrameworkPkg
	OvmfPkg
	OptionRomPkg
	PcAtChipsetPkg
	ShellPkg
	UefiCpuPkg
	BaseTools
	)

 

Did not help. :(

Link to comment
Share on other sites

5 hours ago, MakAsus said:

Yes, I did. Bat In this case, I get the following:

Checked out revision 28338.

 

DuetPkg:

checking..

 

Hi

 

Despite of DuetPkg checkout error: I can build Clover with Build_Clover.command 4.9.4 (EDK2 28338). Maybe the script will must be update

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

2 hours ago, vector sigma said:

Just don't checkout DuetPkg


edk2array=(
	MdePkg
	MdeModulePkg
	CryptoPkg
	EdkCompatibilityPkg
	IntelFrameworkModulePkg
	IntelFrameworkPkg
	OvmfPkg
	OptionRomPkg
	PcAtChipsetPkg
	ShellPkg
	UefiCpuPkg
	BaseTools
	)

 

That's not enough. That static array is being replaced by the data, obtained by downloading the update.sh script from the Clover repo. In order to succeed, DuetPkg should be removed from the array, but also line 903 must be commented out or removed.

# if [[ "${#edk2ArrayOnline[@]}" -ge "1" ]]; then unset -v edk2array; edk2array=( "${edk2ArrayOnline[@]}" ); fi

 

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

2 hours ago, Philip Petev said:

That's not enough. That static array is being replaced by the data, obtained by downloading the update.sh script from the Clover repo. In order to succeed, DuetPkg should be removed from the array, but also line 903 must be commented out or removed.


# if [[ "${#edk2ArrayOnline[@]}" -ge "1" ]]; then unset -v edk2array; edk2array=( "${edk2ArrayOnline[@]}" ); fi

 

 

46 minutes ago, Slice said:

Clover 4800 without Duet dependency. Check please!

 

Thanks you @Slice and @Philip Petev

  • Like 1
Link to comment
Share on other sites

1 hour ago, Slice said:

Clover 4800 without Duet dependency. Check please!

Clover is built, but ebuild.sh still tries to generate boot sectors and fail. That using the master at latest revision. Shouldn't ebuild.sh (and buildpkg.sh) be modified to be uefi only all the time now?

ebuild.sh.zip

buildpkg.sh.zip

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

The tools to build Duet were removed from the master branch as well so there is no possible way to generate the legacy firmware on the master branch anymore, you must use UDK2017 branch.

 

EDIT: https://lists.01.org/pipermail/edk2-devel/2018-November/032746.html

https://bugzilla.tianocore.org/show_bug.cgi?id=1322#c3

EDIT2: Or the last svn revision before Duet was removed which is r28457, or this commit from the git repo https://github.com/tianocore/edk2/commit/8efc6d84ca41e692cc60702e1f27276f7883b6db

EDIT3: Or the tools need to be taken from BaseTools and added to the clover repository to be used.

EDIT4: These were the removed tools: https://github.com/tianocore/edk2/commit/7702ceb8afa4f94b949eca4fbbc5dc84e550e082

Edited by apianti
  • Like 4
Link to comment
Share on other sites

3 hours ago, vector sigma said:

Better option. Those tools needed:


GnuGenBootSector 
BootSectImage 
EfiLdrImage 
GenPage

..and the DuetPkg..

 

No, the DuetPkg was only needed for one library which has now been moved into the clover repo. Only those tools are needed.

 

2 hours ago, MakAsus said:

I just managed to normally update the sources and compile Clover r4801. Everything worked without errors. Respect to the developers! :)

 

Then you either did not update edk2, or are using the UDK2018 branch.

 

EDIT: Changed UDK2017 to UDK2018.

Edited by apianti
Link to comment
Share on other sites

×
×
  • Create New...