From d79e8d9d6ca9b0c69cae1895ab5b6f3d55c8e1bc Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Sat, 9 Mar 2019 18:55:43 +0000 Subject: [PATCH] kernel: Support v5.x kernels in kconfig build Signed-off-by: Rolf Neugebauer --- kernel/Dockerfile.kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/Dockerfile.kconfig b/kernel/Dockerfile.kconfig index 375c9d03d..d36cdf599 100644 --- a/kernel/Dockerfile.kconfig +++ b/kernel/Dockerfile.kconfig @@ -21,8 +21,10 @@ COPY / / # Unpack kernels (download if not present) RUN set -e && \ for VERSION in ${KERNEL_VERSIONS}; do \ + MAJOR=$(echo ${VERSION} | cut -d . -f 1) && \ + MAJOR=v${MAJOR}.x && \ echo "Downloading/Unpacking $VERSION" && \ - KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION}.tar.xz && \ + KERNEL_SOURCE=https://www.kernel.org/pub/linux/kernel/${MAJOR}/linux-${VERSION}.tar.xz && \ [ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz ${KERNEL_SOURCE} && \ bsdtar xf sources/linux-${VERSION}.tar.xz; \ done