From 239595e4a9ec74dc9666804333a11492084ba74c Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Tue, 1 Aug 2023 13:27:32 +0200 Subject: [PATCH] INSTALL.md: Add embedded build instructions Signed-off-by: Andreas Fuchs --- INSTALL.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 769211ec5..9bd85d553 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -223,3 +223,31 @@ $ make doxygen-doc The generated documentation will appear here: * doxygen-doc/html HTML format (start with file doxygen-doc/html/index.html) * doxygen-doc/rtf/refman.rtf RTF format + +# Building for embedded + +The libraries SYS, ESYS, MU, RC, tctildr, tcti-spi-helper, tcti-i2c-helper +can also be build for embedded devices. The following is an example to build +for cortex-m4: +``` +./bootstrap +./configure \ + --disable-fapi \ + --disable-esys \ + --disable-policy \ + --disable-tcti-cmd \ + --disable-tcti-device \ + --disable-tcti-libtpms \ + --disable-tcti-mssim \ + --disable-tcti-pcap \ + --disable-tcti-spi-lt2go \ + --disable-tcti-spi-ftdi \ + --disable-tcti-swtpm \ + --disable-doxygen-doc \ + --enable-nodl \ + --host=arm-none-eabi \ + --prefix=/home/afuchs/tpm2-software/INSTALL.uC \ + CFLAGS='-mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb' \ + LDFLAGS='--specs=nosys.specs' +make +``` \ No newline at end of file