mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
kernel: Support v5.x kernels in kconfig build
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
9502197456
commit
d79e8d9d6c
@ -21,8 +21,10 @@ COPY / /
|
|||||||
# Unpack kernels (download if not present)
|
# Unpack kernels (download if not present)
|
||||||
RUN set -e && \
|
RUN set -e && \
|
||||||
for VERSION in ${KERNEL_VERSIONS}; do \
|
for VERSION in ${KERNEL_VERSIONS}; do \
|
||||||
|
MAJOR=$(echo ${VERSION} | cut -d . -f 1) && \
|
||||||
|
MAJOR=v${MAJOR}.x && \
|
||||||
echo "Downloading/Unpacking $VERSION" && \
|
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} && \
|
[ -f sources/linux-${VERSION}.tar.xz ] || curl -fSLo sources/linux-${VERSION}.tar.xz ${KERNEL_SOURCE} && \
|
||||||
bsdtar xf sources/linux-${VERSION}.tar.xz; \
|
bsdtar xf sources/linux-${VERSION}.tar.xz; \
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user