summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 01:41:54 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 01:46:57 -0600
commit8616ba850ee2ced8b545088519d347c7a6e9cbdb (patch)
tree2913aa8d5b25f0b610d615fc9f178e2721d46755 /src
parentbcd6eb0e482bae290140024d4d1642868d763aa6 (diff)
qemu: patch kernels that rely on ancient make
Kernels without 9feeb638cde0 ("tools build: fix # escaping in .cmd files for future Make") face problems when building with more recent make, so patch these to avoid issues. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/tests/qemu/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile
index a4cd33e..bfbfe9d 100644
--- a/src/tests/qemu/Makefile
+++ b/src/tests/qemu/Makefile
@@ -262,6 +262,7 @@ $(KERNEL_PATH)/.installed: $(KERNEL_TAR)
mkdir -p $(KERNEL_PATH)
flock -s $<.lock tar --strip-components=1 -C $(KERNEL_PATH) -xf $<
find $(KERNEL_PATH) -type f -name Makefile -exec sed -i 's/-Werror\(\s\|$$\)//g' {} +
+ sed -i "/printf '\\\\#/d" $(KERNEL_PATH)/tools/build/Build.include || true
sed -i "/^if INET\$$/a source \"net/wireguard/Kconfig\"" $(KERNEL_PATH)/net/Kconfig
sed -i "/^obj-\$$(CONFIG_NETFILTER).*+=/a obj-\$$(CONFIG_WIREGUARD) += wireguard/" $(KERNEL_PATH)/net/Makefile
ln -sfT $(shell readlink -f ../..) $(KERNEL_PATH)/net/wireguard