Skip to content

Commit

Permalink
INSTALL.md: Add embedded build instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
  • Loading branch information
AndreasFuchsTPM committed Oct 10, 2023
1 parent 5225565 commit 8276939
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 8276939

Please sign in to comment.