Skip to content

Commit 719a592

Browse files
committed
[ci] thumbv7m-none-eabi: add more variable.
1 parent 502023a commit 719a592

File tree

1 file changed

+4
-2
lines changed
  • src/test/run-make/thumb-none-qemu

1 file changed

+4
-2
lines changed

src/test/run-make/thumb-none-qemu/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ RUSTC := $(RUSTC_ORIGINAL)
1111
LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
1212
# We need to be outside of 'src' dir in order to run cargo
1313
WORK_DIR := $(TMPDIR)
14-
1514
HERE := $(shell pwd)
1615

16+
17+
# hint: we could set variables per $(TARGET) basis in order to support other targets.
1718
CRATE := lm3s6965evb
1819
CRATE_URL := https://github.com/japaric/lm3s6965evb
1920
CRATE_SHA1 := 9eeea58826438e84d89e9691a1bb0f85b03d377c
2021
QEMU_CPU := cortex-m3
2122
QEMU_MACHINE := lm3s6965evb
23+
QEMU_OUTPUT_TEXT := "x = 42"
2224

2325
all:
2426
env
@@ -32,7 +34,7 @@ all:
3234
-semihosting-config enable=on,target=native \
3335
-nographic \
3436
-kernel target/$(TARGET)/debug/$(CRATE) > out.txt
35-
cd $(WORK_DIR)/$(CRATE) && grep "x = 42" out.txt
37+
cd $(WORK_DIR)/$(CRATE) && grep $(QEMU_OUTPUT_TEXT) out.txt
3638
else
3739

3840
all:

0 commit comments

Comments
 (0)