summaryrefslogtreecommitdiffhomepage
path: root/kernel-tree-scripts
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
commitcba7e5200fafa599f5c65c981b05cd1aaa5277e3 (patch)
tree1006892c927f34e2693f0887eebf926397167880 /kernel-tree-scripts
parentf21b7267cca69590987d287a1a973715f3e3d4dc (diff)
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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'kernel-tree-scripts')
-rwxr-xr-xkernel-tree-scripts/create-patch.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel-tree-scripts/create-patch.sh b/kernel-tree-scripts/create-patch.sh
index ee4bc02..3f913ae 100755
--- a/kernel-tree-scripts/create-patch.sh
+++ b/kernel-tree-scripts/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