mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 22:53:37 +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>
24 lines
442 B
Bash
Executable File
24 lines
442 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
|
|
set -ex
|
|
|
|
if [ -z "$ARCH" ]; then
|
|
echo "missing \$ARCH!" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case "$ARCH" in
|
|
arm64) gcc_arch="aarch64";;
|
|
ppc64el) gcc_arch="powerpc64le";;
|
|
s390x) gcc_arch="$ARCH";;
|
|
*) echo "unsupported arch: '$ARCH'!" >&2; exit 1;;
|
|
esac
|
|
|
|
dpkg --add-architecture $ARCH
|
|
apt update
|
|
|
|
apt install -y --no-install-recommends \
|
|
dpkg-dev \
|
|
gcc-${gcc_arch}-linux-gnu \
|
|
libc6-dev-${ARCH}-cross
|