cmake: emu: qemu: do not enable CAN bus on NIOS2 and LEON3

QEMU for NIOS2 and LEON3 do not provide support for the "can-bus" object
type. Skip configuring CAN bus command line arguments for these.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2022-11-02 12:24:29 +01:00 committed by Stephanos Ioannidis
commit b3b64e9ede

View file

@ -269,7 +269,7 @@ elseif(QEMU_NET_STACK)
endif()
endif(QEMU_PIPE_STACK)
if(CONFIG_CAN)
if(CONFIG_CAN AND NOT (CONFIG_NIOS2 OR CONFIG_SOC_LEON3))
# Add CAN bus 0
list(APPEND QEMU_FLAGS -object can-bus,id=canbus0)