Files
amneziawg-linux-kernel-module/kernel-tree-scripts/create-patch.sh
Jason A. Donenfeld a7805a4412 create-patch: be sure it's actually after NETFILTER
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-02-13 21:55:18 +01:00

21 lines
620 B
Bash
Executable File

#!/bin/sh
WG="$(readlink -f "$(dirname "$(readlink -f "$0")")/../../src/")"
for i in "$WG"/*.c "$WG"/*.h "$WG"/selftest/*.h "$WG"/crypto/*.c "$WG"/crypto/*.h "$WG"/crypto/*.S "$WG"/Kbuild "$WG"/Kconfig $(find "$WG"/compat -name '*.c' -o -name '*.h' -o -name '*.include'); do
diff -u /dev/null "$i" | sed "s:${WG}:b/net/wireguard:;s:Kbuild:Makefile:"
done
cat <<_EOF
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -85,1 +85,2 @@ config INET
if INET
+source "net/wireguard/Kconfig"
--- a/net/Makefile
+++ b/net/Makefile
@@ -16,1 +16,2 @@
obj-\$(CONFIG_NETFILTER) += netfilter/
+obj-\$(CONFIG_WIREGUARD) += wireguard/
_EOF