mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
This commit lets the natmod tests runner to automatically detect the architecture of the test target. This allows to avoid to explicitly pass the architecture name to the runner in test scripts. However, the ability to manually specify a target was not removed but it was made optional. This way the user is able to override the architecture name if needed (like if one wants to test an armv6 MPY on an armv7 board). Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
12 lines
261 B
Makefile
12 lines
261 B
Makefile
QEMU_ARCH = riscv32
|
|
QEMU_MACHINE = virt
|
|
|
|
CFLAGS += -DQEMU_SOC_VIRT
|
|
CFLAGS += -DMICROPY_HW_MCU_NAME='"$(RV32_ARCH)"'
|
|
|
|
LDSCRIPT = mcu/rv32/virt.ld
|
|
|
|
SRC_BOARD_O += shared/runtime/gchelper_native.o shared/runtime/gchelper_rv32i.o
|
|
|
|
MPY_CROSS_FLAGS += -march=rv32imc
|