Files
cdba/ci/debian.sh
Dmitry Baryshkov b6ef0718d4 ci: install pkg-config or pkgconf
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-09-21 16:37:48 +03:00

39 lines
814 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2021 Canonical Ltd.
# Copyright (c) 2023 Linaro Ltd
# Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
# <krzk@kernel.org>
#
set -ex
apt update
# Some distros (e.g. Ubuntu Hirsute) might pull tzdata which asks questions
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
# Choose some random place in Europe
echo "tzdata tzdata/Areas select Europe
tzdata tzdata/Zones/Europe select Berlin
" > /tmp/tzdata-preseed.txt
debconf-set-selections /tmp/tzdata-preseed.txt
PKGS_CC="build-essential"
case $CC in
clang*)
PKGS_CC="clang"
;;
esac
apt install -y --no-install-recommends \
pkg-config \
libftdi-dev \
libudev-dev \
libyaml-dev \
make \
$PKGS_CC
echo "Install finished: $0"