xref: /third_party/ltp/ci/debian.cross-compile.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/ci/
1f08c3bdfSopenharmony_ci#!/bin/sh
2f08c3bdfSopenharmony_ci# Copyright (c) 2018-2020 Petr Vorel <pvorel@suse.cz>
3f08c3bdfSopenharmony_ciset -ex
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ciif [ -z "$ARCH" ]; then
6f08c3bdfSopenharmony_ci	echo "missing \$ARCH!" >&2
7f08c3bdfSopenharmony_ci	exit 1
8f08c3bdfSopenharmony_cifi
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_cicase "$ARCH" in
11f08c3bdfSopenharmony_ciarm64) gcc_arch="aarch64";;
12f08c3bdfSopenharmony_cippc64el) gcc_arch="powerpc64le";;
13f08c3bdfSopenharmony_cis390x) gcc_arch="$ARCH";;
14f08c3bdfSopenharmony_ci*) echo "unsupported arch: '$ARCH'!" >&2; exit 1;;
15f08c3bdfSopenharmony_ciesac
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_cidpkg --add-architecture $ARCH
18f08c3bdfSopenharmony_ciapt update
19f08c3bdfSopenharmony_ci
20f08c3bdfSopenharmony_ciapt install -y --no-install-recommends \
21f08c3bdfSopenharmony_ci	gcc-${gcc_arch}-linux-gnu \
22f08c3bdfSopenharmony_ci	libc6-dev-${ARCH}-cross \
23f08c3bdfSopenharmony_ci	libmnl-dev:$ARCH \
24f08c3bdfSopenharmony_ci	libtirpc-dev:$ARCH
25

Indexes created Thu Nov 07 10:32:03 CST 2024