cmake: emu: Allow overriding the qemu binary

The xlnx-zcu102 qemu machine is the only one that supports a Cortex-R
processor.  However, its main CPUs are Cortex A53s which requires the
aarch64 qemu binary to run.

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
Bradley Bolen 2019-07-31 17:21:58 -04:00 committed by Ioannis Glaropoulos
commit b602e38396

View file

@ -2,6 +2,8 @@
if("${ARCH}" STREQUAL "x86")
set_ifndef(QEMU_binary_suffix i386)
elseif(DEFINED QEMU_ARCH)
set_ifndef(QEMU_binary_suffix ${QEMU_ARCH})
else()
set_ifndef(QEMU_binary_suffix ${ARCH})
endif()