6 ############### Install packages for building
7 apt-get
-y install ca-certificates
8 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc
/apt
/sources.list
9 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc
/apt
/sources.list.d
/backports.list
10 dpkg
--add-architecture armhf
16 crossbuild-essential-armhf \
36 ############### Generate cross build file for Meson
38 cross_file
="/cross_file-armhf.txt"
39 /usr
/share
/meson
/debcrossgen
--arch armhf
-o "$cross_file"
40 # Explicitly set ccache path for cross compilers
41 sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
42 # Don't need wrapper for armhf executables
43 sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
48 apt-get autoremove -y --purge