mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-18 17:01:07 +00:00
kernel: Disable WireGuard for 5.1.x kernels
Getting compile errors: AS [M] /wireguard/crypto/zinc/chacha20/chacha20-x86_64.o In file included from <command-line>: /wireguard/compat/compat.h:795:10: fatal error: net/netfilter/nf_nat_core.h: No such file or directory #include <net/netfilter/nf_nat_core.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
63a120c4a1
commit
0a46f29a05
@ -131,11 +131,14 @@ RUN make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie" && \
|
|||||||
([ -n "${DEBUG}" ] && cp vmlinux /out || true)
|
([ -n "${DEBUG}" ] && cp vmlinux /out || true)
|
||||||
|
|
||||||
# WireGuard
|
# WireGuard
|
||||||
RUN curl -fsSL -o /wireguard.tar.xz "${WIREGUARD_URL}" && \
|
RUN set -e && \
|
||||||
echo "${WIREGUARD_SHA256} /wireguard.tar.xz" | sha256sum -c - && \
|
if [ "$KERNEL_SERIES" != "5.1.x" ]; then \
|
||||||
cp /wireguard.tar.xz /out/src/ && \
|
curl -fsSL -o /wireguard.tar.xz "${WIREGUARD_URL}" && \
|
||||||
tar -C / --one-top-level=wireguard --strip-components=2 -xJf /wireguard.tar.xz "WireGuard-${WIREGUARD_VERSION}/src" && \
|
echo "${WIREGUARD_SHA256} /wireguard.tar.xz" | sha256sum -c - && \
|
||||||
make -j "$(getconf _NPROCESSORS_ONLN)" M="/wireguard" modules
|
cp /wireguard.tar.xz /out/src/ && \
|
||||||
|
tar -C / --one-top-level=wireguard --strip-components=2 -xJf /wireguard.tar.xz "WireGuard-${WIREGUARD_VERSION}/src" && \
|
||||||
|
make -j "$(getconf _NPROCESSORS_ONLN)" M="/wireguard" modules; \
|
||||||
|
fi
|
||||||
|
|
||||||
# Modules and Device Tree binaries
|
# Modules and Device Tree binaries
|
||||||
RUN make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
|
RUN make INSTALL_MOD_PATH=/tmp/kernel-modules modules_install && \
|
||||||
|
Loading…
Reference in New Issue
Block a user