This is used to build LibreELEC as per
https://github.com/kmod-project/kmod/issues/298. Test with it.
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
run: |
export DEBIAN_FRONTEND=noninteractive
export TZ=Etc/UTC
+
+ . /etc/os-release
+
+ backports_pkgs=()
+ pkgs=()
+ if [[ "$VERSION_CODENAME" == "bullseye" ]]; then
+ echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
+ backports_pkgs=("meson" "ninja-build")
+ else
+ pkgs+=("pahole")
+ fi
+
apt-get update
apt-get install --yes \
build-essential \
libzstd-dev \
linux-headers-generic \
meson \
- pahole \
scdoc \
zlib1g-dev \
- zstd
+ zstd \
+ "${pkgs[@]}"
+
+ if (( ${#backports_pkgs[@]} )); then
+ apt-get install --yes -t ${VERSION_CODENAME}-backports "${backports_pkgs[@]}"
+ fi
- compiler: 'gcc'
container: 'debian:unstable'
multilib: 'true'
+ - compiler: 'gcc'
+ container: 'debian:bullseye-slim'
+ meson_setup: '-Dzstd=disabled -Dxz=disabled -Dzlib=disabled -Dopenssl=enabled -Dtools=true'
- compiler: 'gcc'
container: 'fedora:latest'
- compiler: 'gcc'