From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 3/4] travis: Merge debian.cross-compile.*.sh
Date: Wed, 8 Jan 2020 12:48:42 +0100 [thread overview]
Message-ID: <20200108114842.GA29068@dell5510> (raw)
In-Reply-To: <20200108103413.29096-4-pvorel@suse.cz>
Hi,
this needs to be fixed, otherwise Debian cross compile jobs fail.
Kind regards,
Petr
diff --git travis/debian.cross-compile.sh travis/debian.cross-compile.sh
index 2f2b7a70c..8557b832b 100755
--- travis/debian.cross-compile.sh
+++ travis/debian.cross-compile.sh
@@ -3,10 +3,16 @@
set -e
if [ -z "$ARCH" ]; then
- echo "missing \$ARCH!"
+ echo "missing \$ARCH!" >&2
exit 1
fi
+case "$ARCH" in
+arm64) gcc_arch="aarch64";;
+ppc64el) gcc_arch="powerpc64le";;
+*) echo "unsupported arch: '$1'!" >&2; exit 1;;
+esac
+
dpkg --add-architecture $ARCH
apt update
@@ -17,6 +23,6 @@ none) EXTRA_PACKAGES=;;
esac
apt install -y --no-install-recommends \
- gcc-${ARCH}-linux-gnu \
+ gcc-${gcc_arch}-linux-gnu \
libc6-dev-${ARCH}-cross \
$EXTRA_PACKAGES
next prev parent reply other threads:[~2020-01-08 11:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-08 10:34 [LTP] [PATCH 0/4] TI-RPC: enhancements (pkg-config, libntirpc, travis) Petr Vorel
2020-01-08 10:34 ` [LTP] [PATCH 1/4] rpc-tirpc: Detect libtirpc with pkg-config Petr Vorel
2020-01-08 10:34 ` [LTP] [PATCH 2/4] rpc-tirpc: Add libntirpc support Petr Vorel
2020-01-08 10:34 ` [LTP] [PATCH 3/4] travis: Merge debian.cross-compile.*.sh Petr Vorel
2020-01-08 11:48 ` Petr Vorel [this message]
2020-01-08 10:34 ` [LTP] [PATCH 4/4] travis: Test also libntirpc Petr Vorel
2020-01-22 14:49 ` [LTP] [PATCH 0/4] TI-RPC: enhancements (pkg-config, libntirpc, travis) Cyril Hrubis
2020-01-22 16:41 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200108114842.GA29068@dell5510 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox