[Buildroot] [PATCH v5 6/9] package/kvm-unit-tests: honour BR2_ARM64_PAGE_SIZE
Alex Bennée
alex.bennee at linaro.org
Thu Sep 11 21:27:46 UTC 2025
The latest kvm-unit-tests defaults to 4k but there is no reason why we
shouldn't honour the system page size if it is set.
Reviewed-by: Thomas Huth <huth at tuxfamily.org>
Signed-off-by: Alex Bennée <alex.bennee at linaro.org>
---
package/kvm-unit-tests/kvm-unit-tests.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/kvm-unit-tests/kvm-unit-tests.mk b/package/kvm-unit-tests/kvm-unit-tests.mk
index 1d7eec2d21..efc3c859aa 100644
--- a/package/kvm-unit-tests/kvm-unit-tests.mk
+++ b/package/kvm-unit-tests/kvm-unit-tests.mk
@@ -40,6 +40,14 @@ KVM_UNIT_TESTS_CONF_OPTS =\
--processor="$(GCC_TARGET_CPU)" \
--endian="$(KVM_UNIT_TESTS_ENDIAN)"
+ifeq ($(BR2_ARM64_PAGE_SIZE_4K),y)
+KVM_UNIT_TESTS_CONF_OPTS += --page-size=4k
+else ifeq ($(BR2_ARM64_PAGE_SIZE_16K),y)
+KVM_UNIT_TESTS_CONF_OPTS += --page-size=16k
+else ifeq ($(BR2_ARM64_PAGE_SIZE_64K),y)
+KVM_UNIT_TESTS_CONF_OPTS += --page-size=64k
+endif
+
# For all architectures but x86-64, we use the target
# compiler. However, for x86-64, we use the host compiler, as
# kvm-unit-tests builds 32 bit code, which Buildroot toolchains for
--
2.47.3
More information about the buildroot
mailing list