aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/kernel-tree
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-02-27 21:27:11 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2017-02-27 21:27:11 -0800
commitcd27feb7b3b45fca43e2260e1da156d94a13907b (patch)
treedc5365dc57803d76ecc3f3b2c171e713ad9e13a5 /contrib/kernel-tree
parentcompat: use maybe_unused macro over gcc-specific (diff)
downloadwireguard-monolithic-historical-cd27feb7b3b45fca43e2260e1da156d94a13907b.tar.xz
wireguard-monolithic-historical-cd27feb7b3b45fca43e2260e1da156d94a13907b.zip
create-patch: add context below to work with busybox patch
It turns out that GNU patch is happy to only have one line of context above the inserted area and zero lines below, because of its fuzzy match feature. However, busybox patch is crippled and terrible, and thus must have context above and below the insertion point. So, we grudgingly add it to our manually crafted minimal patch.
Diffstat (limited to 'contrib/kernel-tree')
-rwxr-xr-xcontrib/kernel-tree/create-patch.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/kernel-tree/create-patch.sh b/contrib/kernel-tree/create-patch.sh
index ee4bc02..3f913ae 100755
--- a/contrib/kernel-tree/create-patch.sh
+++ b/contrib/kernel-tree/create-patch.sh
@@ -9,12 +9,14 @@ done
cat <<_EOF
--- a/net/Kconfig
+++ b/net/Kconfig
-@@ -85,1 +85,2 @@ config INET
+@@ -85,2 +85,3 @@ config INET
if INET
+source "net/wireguard/Kconfig"
+ source "net/ipv4/Kconfig"
--- a/net/Makefile
+++ b/net/Makefile
-@@ -16,1 +16,2 @@
+@@ -16,2 +16,3 @@
obj-\$(CONFIG_NETFILTER) += netfilter/
+obj-\$(CONFIG_WIREGUARD) += wireguard/
+ obj-\$(CONFIG_INET) += ipv4/
_EOF