Add compilation instructions to README.md Signed-off-by: Andreas Reichel <[email protected]> --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
diff --git a/README.md b/README.md index 9286d2b..aaa3d63 100644 --- a/README.md +++ b/README.md @@ -225,6 +225,30 @@ 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 +./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: + +``` +mkdir build +cd build +autoreconf --install .. +../configure --host=i586 +--with-gnuefi-sys-dir=/home/ch/Work/sdk/iot2000/sysroots/i586-nlp-32-poky-linux +--with-gnuefi-include-dir=/home/ch/Work/sdk/iot2000/sysroots/i586-nlp-32-poky-linux/usr/include/efi +--with-gnuefi-lds-dir=/home/ch/Work/sdk/iot2000/sysroots/i586-nlp-32-poky-linux/usr/lib +--with-gnuefi-lib-dir=/home/ch/Work/sdk/iot2000/sysroots/i586-nlp-32-poky-linux/usr/lib +make +``` + ## Installation ## ### Environment setup ### -- 2.11.0 -- 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/20170627105925.8370-1-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
