diff --git a/debian-armv6 b/debian-armv6 index d4f9549..f5e2866 100644 --- a/debian-armv6 +++ b/debian-armv6 @@ -60,15 +60,15 @@ RUN $APT_INSTALL \ libraspberrypi-dev \ libglib2.0-dev -# install cmake on debian buster from buster-backports -RUN if [ "$SUITE" = "buster" ]; then \ - echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" > /etc/apt/sources.list.d/buster-backports-sources.list; \ - apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0E98404D386FA1D9 6ED0E7B82643E131; \ - $APT_UPDATE && $APT_INSTALL -t buster-backports cmake; \ - rm /etc/apt/sources.list.d/buster-backports-sources.list; \ -else \ - $APT_INSTALL cmake; \ -fi +# install latest cmake +ARG CMAKE_VERSION=3.28.1 +ARG CMAKE_VERSION_DOT=v3.28 +RUN set -ex \ + && CMAKE_BUILD_DIR=$(mktemp -d) \ + && trap "rm -rf $CMAKE_BUILD_DIR" EXIT \ + && cd $CMAKE_BUILD_DIR && curl -sL https://cmake.org/files/${CMAKE_VERSION_DOT}/cmake-${CMAKE_VERSION}.tar.gz -o cmake.tar.gz \ + && tar xf cmake.tar.gz --strip-components 1 \ + && ./configure && make && make install # download qemu and set exec flag RUN curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-arm.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-arm-static /usr/bin/qemu-static && chmod +x /usr/bin/qemu-static