From f55b32cbf56858397e323492cf0c6d5748dc7e5b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 21 May 2020 05:04:43 -0600 Subject: qemu: force 2MB pages for binutils 2.31 Signed-off-by: Jason A. Donenfeld --- src/tests/qemu/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index bfbfe9d..9297a1d 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -263,6 +263,7 @@ $(KERNEL_PATH)/.installed: $(KERNEL_TAR) 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 + printf 'ifdef CONFIG_X86_64\nLDFLAGS += $$(call ld-option, -z max-page-size=0x200000)\nendif\n' >> $(KERNEL_PATH)/arch/x86/Makefile 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 -- cgit v1.2.3