#!/bin/sh # SPDX-License-Identifier: GPL-2.0 # # Copyright (c) 2018-2020 Petr Vorel # Copyright (c) 2021 Canonical Ltd. # Copyright (c) 2023 Linaro Ltd # Author: Krzysztof Kozlowski # # set -ex if [ -z "$ARCH" ]; then echo "missing \$ARCH!" >&2 exit 1 fi dpkg --add-architecture $ARCH apt update apt install -y --no-install-recommends \ libftdi-dev:${ARCH} \ libudev-dev:${ARCH} \ libyaml-dev:${ARCH} \ libgpiod-dev:${ARCH} \ gcc-`dpkg-architecture -a ${ARCH} -q DEB_TARGET_GNU_TYPE` echo "Install finished: $0"