mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 06:33:36 +02:00

This requires to have distro specific install scripts and build.sh script. For now ibmswtpm2 is compiled just for native builds (depends on gcc, compiled natively). libtmps/swtpm could be used. Signed-off-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Bruno Meneguele <bmeneg@redhat.com>(Fedora,CentOS 8(RHEL actually)) [zohar@linux.ibm.com: removed debugging in travis/fedora.sh] Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
46 lines
805 B
Bash
Executable File
46 lines
805 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
|
|
set -ex
|
|
|
|
if [ -z "$CC" ]; then
|
|
echo "missing \$CC!" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case "$TSS" in
|
|
ibmtss) TSS="ibmtss-devel";;
|
|
tpm2-tss) TSS="tpm2-0-tss-devel";;
|
|
'') echo "Missing TSS!" >&2; exit 1;;
|
|
*) echo "Unsupported TSS: '$TSS'!" >&2; exit 1;;
|
|
esac
|
|
|
|
# clang has some gcc dependency
|
|
[ "$CC" = "gcc" ] || CC="gcc $CC"
|
|
|
|
zypper --non-interactive install --force-resolution --no-recommends \
|
|
$CC $TSS \
|
|
asciidoc \
|
|
attr \
|
|
autoconf \
|
|
automake \
|
|
diffutils \
|
|
docbook_5 \
|
|
docbook5-xsl-stylesheets \
|
|
gzip \
|
|
ibmswtpm2 \
|
|
keyutils-devel \
|
|
libattr-devel \
|
|
libopenssl-devel \
|
|
libtool \
|
|
make \
|
|
openssl \
|
|
pkg-config \
|
|
procps \
|
|
sudo \
|
|
vim \
|
|
wget \
|
|
which \
|
|
xsltproc
|
|
|
|
[ -f /usr/lib/ibmtss/tpm_server ] && ln -s /usr/lib/ibmtss/tpm_server /usr/local/bin
|