Add instructions for compilation
Add mailing-list reference for development
---
 README.md | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/README.md b/README.md
index 95292e8..17d57dc 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,17 @@ Provides the following functionality:
 * Arm a hardware watchdog prior to loading an OS
 * Provides a simple update mechanism with fail-save algorithm
 
+## Development ##
+
+Mailing list:
+[[email protected]]([email protected])
+
+Archive:
+[https://www.mail-archive.com/[email protected]/](https://www.mail-archive.com/[email protected])
+
+For sending patches, please refer to the mailing list and `CONTRIBUTING.md` in
+the source tree.
+
 ## Watchdog support ##
 
 The following watchdog drivers are implemented:
@@ -240,6 +251,35 @@ 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 -fi
+./configure
+make
+```
+
+To cross-compile, the environment variables must be set accordingly, i.e.
+`CXX=<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=<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 ###
-- 
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/20170627125632.18234-1-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to