mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-02 21:53:17 +02:00
CI: Rename travis script directory
This is a preparation for adding GitHub Actions support. Also run from root directory. It's a bit confusing to run from travis directory. Signed-off-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
23
ci/debian.cross-compile.sh
Executable file
23
ci/debian.cross-compile.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/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
|
Reference in New Issue
Block a user