xtensa: support 'make qemu' target
Provide generic support for running zephyr kernels on xtensa QEMU and map D_233L SoC to dc233c QEMU core. Change-Id: Ie804588f750213a7cc54dbc95c86ee4d62ba1ea5 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
0b4adc398d
commit
f5f69c99c4
2 changed files with 9 additions and 0 deletions
|
@ -41,3 +41,10 @@ cflags-$(CONFIG_LTO) += $(call cc-option,-flto,)
|
|||
|
||||
KBUILD_CFLAGS += $(cflags-y)
|
||||
KBUILD_CXXFLAGS += $(cflags-y)
|
||||
|
||||
QEMU_CPU_TYPE_xtensa ?= unsupported
|
||||
QEMU_FLAGS_xtensa = -cpu $(QEMU_CPU_TYPE_xtensa) \
|
||||
-machine sim -semihosting -nographic
|
||||
QEMU_xtensa = qemu-system-xtensa
|
||||
|
||||
export QEMU_FLAGS_xtensa QEMU_xtensa
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
obj-y = soc.o
|
||||
|
||||
QEMU_CPU_TYPE_xtensa = dc233c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue