Jump to content

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


Micky1979
2,126 posts in this topic

Recommended Posts

@Micky

 

I try v3.7 :yes:

 

but:

 

A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.h
A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.uni
A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
A    UefiCpuPkg/CpuIo2Smm/CpuIo2SmmExtra.uni
Révision 22435 extraite.
checking..available, continuing..
unable to get latest Clover's revision, check your internet connection or try later.
 
Sorry.
Link to comment
Share on other sites

Not sure what is causing this in Kubuntu, but I guess this should work since I removed the check:attachicon.gifBuild_Clover.command_v3.7test2.zip

Edit:

 

On Cubuntu 16.04:

 

Result: fresh src, sync EDK2 22628 (commits: r3739)

 

A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.uni
A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
A    UefiCpuPkg/CpuIo2Smm/CpuIo2SmmExtra.uni
Révision 22628 extraite.
checking..available, continuing..
 
===============================================================================
Downloading Clover
                          <----------------------------------------------------
 
an error was encountered syncing the repository:
------------------------------
svn: E205000: Erreur de syntaxe à l'argument de révision '--non-interactive'
 
------------------------------
Can be temporarily, retry later or seek for help.
Link to comment
Share on other sites

Build_Clover.command V3.6 with EDK, set to 22628 (Clover r3739) compiles the latest source without problems.


 

Result: fresh src, sync EDK2 22628 (commits: r3739)

 

A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.uni
A    UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
A    UefiCpuPkg/CpuIo2Smm/CpuIo2SmmExtra.uni
Révision 22628 extraite.
checking..available, continuing..
 
===============================================================================
Downloading Clover
                          <----------------------------------------------------
 
an error was encountered syncing the repository:
------------------------------
svn: E205000: Erreur de syntaxe à l'argument de révision '--non-interactive'
 
------------------------------
Can be temporarily, retry later or seek for help.

 

 

I've got the same error too, happens sometimes and I think the svn:// protocol has something to do with that. As a workaround, the http:// protocol can be used for accessing the repos instead of svn://, but that should be implemented in the script.

  • Like 1
Link to comment
Share on other sites

Hi Micky1979,

may be this line is too long?

18:962  0:000  Build with: [Args: ./ebuild.sh | Command: build -D USE_LOW_EBDA -p Clover/Clover.dsc -a X64 -b RELEASE -t XCODE5 -n 3 | OS: 10.7.5 | XCODE: 4.4.1]

I may propose to exclude red part if possible.

 

Not sure about blue part.

Link to comment
Share on other sites

Hi Micky1979,

may be this line is too long?

18:962  0:000  Build with: [Args: ./ebuild.sh | Command: build -D USE_LOW_EBDA -p Clover/Clover.dsc -a X64 -b RELEASE -t XCODE5 -n 3 | OS: 10.7.5 | XCODE: 4.4.1]

I may propose to exclude red part if possible.

 

Not sure about blue part.

Removed both read/blue from the build-info string in Version.h (you will see change after force rebuild or a new autogen of make files)

ebuild.sh.zip

 

 

@Matgen84, can you show me the svn version are you using?

svn --version

thanks

Link to comment
Share on other sites

Yes but what module? (I'm intresting only about Linux)

I don't know.
 
Les modules d'accès à un dépôt (RA) suivants sont disponibles :
 
* ra_svn : Module d'accès à un dépôt avec le protocole réseau propre de svn.
  - avec authentification Cyrus SASL
  - gère le schéma d'URL 'svn'
* ra_local : Module d'accès à un dépôt sur un disque local.
  - gère le schéma d'URL 'file'
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.8 (compiled with 1.3.8)
  - gère le schéma d'URL 'http'
  - gère le schéma d'URL 'https'
  • Like 1
Link to comment
Share on other sites

micky1979@micky1979:~$ svn --version
svn, version 1.9.3 (r1718519)
   compiled Mar 14 2016, 07:39:01 on x86_64-pc-linux-gnu

Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.8 (compiled with 1.3.8)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /home/micky1979/.subversion
* Gnome Keyring
* GPG-Agent
* KWallet (KDE)

micky1979@micky1979:~$ 

mine is the same exactly :| ...

Link to comment
Share on other sites

Removed both read/blue from the build-info string in Version.h (you will see change after force rebuild or a new autogen of make files)

attachicon.gifebuild.sh.zip

 

 

Big thanks! Now line is much clear!

"Args: | -D USE_LOW_EBDA -a X64 -b RELEASE -t XCODE5 -n 5 | OS: 10.12 | XCODE: 8.0"

  • Like 1
Link to comment
Share on other sites

on line 711 replace:

clover_build_info=$(echo ${clover_build_info} | sed -e 's/ -fr / /' \

                         | sed -e 's/ --force-rebuild / /' | sed -e 's/ --skip-autogen / /' \

                         | sed -e 's/build//' | sed -e 's/  / /')

 

with:

clover_build_info=$(echo ${clover_build_info} | sed -e 's/ -fr / /' \

                         | sed -e 's/ --force-rebuild / /' | sed -e 's/ --skip-autogen / /' \

                         | sed -e 's/build//' | sed -e 's/Args: | /Args: /' | sed -e 's/  / /')


post edited (unwanted new line)

Link to comment
Share on other sites

With sed you can replace a lot of strings/words in an entire source tree:

 

  1. delete a line before or after a pattern
  2. delete an entire paragraph
  3. delete n lines after or before a match
  4. replace a line that match (or a that contains a match)
  5. replace if begin or end
  6. replace n char
  7. replace words in a line, in the entire file... if begin... if end... 
  8. work with pipes
  9. edit file in place or with a backup..

and 10000 more

 

very very usefull. Included in each *nix operating system. Devs use to mod their sources recursively (think on a Linux distro code), or any other things that need to handle text-variables in general.

Link to comment
Share on other sites

a shell invoke command lines, true programs made with real code, like Clover... more difficult, more elegant... more!   .. i like programs and programming :)

So shell is something that allow you to use programs made by others.. the difficult part.

Link to comment
Share on other sites

×
×
  • Create New...