diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-21 01:22:59 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-21 01:25:21 -0600 |
commit | bcd6eb0e482bae290140024d4d1642868d763aa6 (patch) | |
tree | c5a503c0e09dae0223d26a3c95db7e8bc4eedcf6 | |
parent | 78d3ff17e3d39f32916009e94fc498f16e240ba7 (diff) |
qemu: remove -Werror in order to build ancient kernels better
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/tests/qemu/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index 9a1c9fe..a4cd33e 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -261,6 +261,7 @@ ifeq ($(findstring -git,$(KERNEL_VERSION)),) $(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 "/^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 |