File tree 1 file changed +4
-2
lines changed
src/test/run-make/thumb-none-qemu
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ RUSTC := $(RUSTC_ORIGINAL)
11
11
LD_LIBRARY_PATH := $(HOST_RPATH_DIR )
12
12
# We need to be outside of 'src' dir in order to run cargo
13
13
WORK_DIR := $(TMPDIR )
14
-
15
14
HERE := $(shell pwd)
16
15
16
+
17
+ # hint: we could set variables per $(TARGET) basis in order to support other targets.
17
18
CRATE := lm3s6965evb
18
19
CRATE_URL := https://github.com/japaric/lm3s6965evb
19
20
CRATE_SHA1 := 9eeea58826438e84d89e9691a1bb0f85b03d377c
20
21
QEMU_CPU := cortex-m3
21
22
QEMU_MACHINE := lm3s6965evb
23
+ QEMU_OUTPUT_TEXT := "x = 42"
22
24
23
25
all :
24
26
env
32
34
-semihosting-config enable=on,target=native \
33
35
-nographic \
34
36
-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
36
38
else
37
39
38
40
all :
You can’t perform that action at this time.
0 commit comments