diff options
| author | Damien George | 2018-09-24 12:09:28 +1000 |
|---|---|---|
| committer | Damien George | 2019-02-12 13:50:01 +1100 |
| commit | e7332b05841549a41614e522285639dcaa7bd526 (patch) | |
| tree | 339ca8a643891c44fb3fbcec2c4ba1fb765bc21e /ports/qemu-arm/Makefile.test | |
| parent | 775c7b86f017b81d31c3d463aec1b18088dbcdab (diff) | |
qemu-arm: Rework to run bare-metal on boards with Cortex-M CPUs.
Adds support for 3 Cortex-M boards, selectable via "BOARD" in the Makefile:
- microbit, Cortex-M0 via nRF51822
- netduino2, Cortex-M3 via STM32F205
- mps2-an385, Cortex-M3 via FPGA
netduino2 is the default board because it's supported by older qemu
versions (down to at least 2.5.0).
Diffstat (limited to 'ports/qemu-arm/Makefile.test')
| -rw-r--r-- | ports/qemu-arm/Makefile.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/qemu-arm/Makefile.test b/ports/qemu-arm/Makefile.test index a9aace6d0..347c2fefd 100644 --- a/ports/qemu-arm/Makefile.test +++ b/ports/qemu-arm/Makefile.test @@ -15,10 +15,10 @@ $(BUILD)/tinytest.o: $(Q)$(CC) $(CFLAGS) -DNO_FORKING -o $@ -c $(TINYTEST)/tinytest.c $(BUILD)/firmware-test.elf: $(OBJ_COMMON) $(OBJ_TEST) - $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + $(Q)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS) $(Q)$(SIZE) $@ test: $(BUILD)/firmware-test.elf - qemu-system-arm -machine integratorcp -cpu cortex-m3 -nographic -monitor null -serial null -semihosting -kernel $(BUILD)/firmware-test.elf > $(BUILD)/console.out + qemu-system-arm -machine $(BOARD) $(QEMU_EXTRA) -nographic -monitor null -semihosting -kernel $< > $(BUILD)/console.out $(Q)tail -n2 $(BUILD)/console.out $(Q)tail -n1 $(BUILD)/console.out | grep -q "status: 0" |
