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:
+[
efibootg...@googlegroups.com](
efibootg...@googlegroups.com)
+
+Archive:
+[
https://www.mail-archive.com/efibootg...@googlegroups.com/](https://www.mail-archive.com/efibootg...@googlegroups.com)
+
+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