diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-21 05:04:43 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-21 05:04:43 -0600 |
commit | f55b32cbf56858397e323492cf0c6d5748dc7e5b (patch) | |
tree | 273d4630f2dfd53e95bdc233d8c5f06a78de2d6d /src | |
parent | 8616ba850ee2ced8b545088519d347c7a6e9cbdb (diff) |
qemu: force 2MB pages for binutils 2.31
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-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 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 |