From 07b01acb7fc98f9b67b3c4b5e4a557779f1a5849 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Wed, 15 Feb 2023 15:35:50 -0800 Subject: [PATCH] vmtest.config: add Arm definition Signed-off-by: Omar Sandoval --- vmtest/config.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/vmtest/config.py b/vmtest/config.py index 54756cd6..b1a5293b 100644 --- a/vmtest/config.py +++ b/vmtest/config.py @@ -221,6 +221,34 @@ ARCHITECTURES = { qemu_options=("-M", "virt", "-cpu", "cortex-a57"), qemu_console="ttyAMA0", ), + Architecture( + name="arm", + kernel_arch="arm", + kernel_srcarch="arm", + kernel_config=""" + CONFIG_NR_CPUS=8 + CONFIG_HIGHMEM=y + # Debian armhf userspace assumes EABI and VFP. + CONFIG_AEABI=y + CONFIG_VFP=y + CONFIG_ARCH_VIRT=y + CONFIG_PCI_HOST_GENERIC=y + CONFIG_RTC_CLASS=y + CONFIG_RTC_DRV_PL031=y + CONFIG_SERIAL_AMBA_PL011=y + CONFIG_SERIAL_AMBA_PL011_CONSOLE=y + # Before Linux kernel commit f05eb1d24eb5 ("ARM: + # stackprotector: prefer compiler for TLS based per-task + # protector") (in v5.18), this enables the + # arm_ssp_per_task_plugin GCC plugin, which fails to build with + # the kernel.org cross compiler. + CONFIG_STACKPROTECTOR_PER_TASK=n + """, + kernel_flavor_configs={}, + kernel_org_compiler_name="arm-linux-gnueabi", + qemu_options=("-M", "virt"), + qemu_console="ttyAMA0", + ), Architecture( name="ppc64", kernel_arch="powerpc",