On 2017-06-28 16:06, Jan Kiszka wrote: > On 2017-06-27 14:56, [ext] Reichel Andreas wrote: >> Add instructions for compilation >> Add mailing-list reference for development
Merging was too quick: Missed that there is no signed off, but I also missed... >> --- >> 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 .. ...that this is not consistent with the autoreconf line above (--install vs. -fi). autoreconf will only work against the source dir anyway, so let's pull this ahead of creating and changing to build. >> +../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 ### >> > > Thanks, applied to next. Removed again for now (didn't push yet anyway). 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/8d91d855-7a01-495f-62ea-f3491ba8f1bf%40siemens.com. For more options, visit https://groups.google.com/d/optout.
