On 2017-06-27 13:53, [ext] Jan Kiszka wrote:
> On 2017-06-27 13:19, Reichel Andreas wrote:
>> Add compilation instructions to README.md
>>
>> Signed-off-by: Andreas Reichel <[email protected]>
>> ---
>>  README.md | 26 ++++++++++++++++++++++++++
>>  1 file changed, 26 insertions(+)
>>
>> diff --git a/README.md b/README.md
>> index 9286d2b..1ef5589 100644
>> --- a/README.md
>> +++ b/README.md
>> @@ -225,6 +225,32 @@ pacman -S gnu-efi-libs pciutils
>>  apt-get install gnu-efi libparted-dev libpci-dev
>>  ```
>>  
>> +## Compilation ##
>> +
>> +To compile `efibootguard`, checkout the sources and run
>> +
>> +```
>> +autoreconf -i
> 
> I would recommend -fi.
> 
>> +./configure
>> +make
>> +```
>> +
>> +To cross-compile, the environment variables must be set accordingly, i.e. 
>> `CCXX=<compiler-to-use>`. The cross-compiler prefix `CROSS_COMPILE=` does 
>> *NOT* work. The following example shows how to specify needed paths for an 
>> out-of-tree build, where cross-compilation environment variables have 
>> already been set before:
> 
> Please wrap long lines after 80 chars and possibly also rebase over next.
> 
>> +
>> +```
>> +mkdir build
>> +cd build
>> +autoreconf --install ..
> 
> Is this run in the right directory? Thought you need to call it in the
> source dir.
> 
>> +../configure --host=i586
>> +--with-gnuefi-sys-dir=<sys-root-dir>
>> +--with-gnuefi-include-dir=<sys-root-dir>/usr/include/efi
>> +--with-gnuefi-lds-dir=<sys-root-dir>/usr/lib
>> +--with-gnuefi-lib-dir=<sys-root-dir>/usr/lib
>> +make
>> +```
>> +
>> +where `<sys-root-dir>` points to the wanted sysroot for cross compilation.
>> +
>>  ## Installation ##
>>  
>>  ### Environment setup ###
>>
> 
> Jan
> 

As you are add it ;), could you also add a link to the mailing list and
its archives
(https://www.mail-archive.com/[email protected]/) to the
README?

Thanks!
Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/4bfbe3b7-d15e-e8a8-df58-8fcd5b0fe9f7%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to