tests: xip: remove hack and add qemu_x86_xip

We now have a variant x86 build target that only is run
for tests tagged with "xip", which is this one.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-07-29 19:00:31 -07:00 committed by Carles Cufí
commit a7354ab391
4 changed files with 38 additions and 8 deletions

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2020 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "qemu_x86.dts"

View file

@ -0,0 +1,12 @@
identifier: qemu_x86_xip
name: QEMU Emulation for X86 (XIP enabled)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- xip

View file

@ -0,0 +1,19 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_HPET_TIMER=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_NS16550=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_QEMU_ICOUNT_SHIFT=5
CONFIG_XIP=y

View file

@ -2,11 +2,3 @@ tests:
arch.common.xip:
filter: CONFIG_XIP
tags: xip
# Platforms where XIP is supported but not on by default (rare, typically
# emulator targets, to show that XIP is working for a particular arch)
arch.common.xip.nondefault:
platform_whitelist: qemu_x86 qemu_x86_coverage
extra_configs:
- CONFIG_XIP=y
tags: xip