File tree 1 file changed +5
-14
lines changed
src/test/run-make/thumb-none-qemu
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -15,26 +15,17 @@ HERE := $(shell pwd)
15
15
16
16
17
17
# hint: we could set variables per $(TARGET) basis in order to support other targets.
18
- CRATE := lm3s6965evb
19
- CRATE_URL := https://github.com/japaric/lm3s6965evb
20
- CRATE_SHA1 := 9eeea58826438e84d89e9691a1bb0f85b03d377c
21
- QEMU_CPU := cortex-m3
22
- QEMU_MACHINE := lm3s6965evb
23
- QEMU_OUTPUT_TEXT := "x = 42"
18
+ CRATE := cortex-m-rt
19
+ CRATE_URL := https://github.com/rust-embedded/cortex-m-rt
20
+ CRATE_SHA1 := 62972c8a89ff54b76f9ef0d600c1fcf7a233aabd
24
21
25
22
all :
26
23
env
27
24
mkdir -p $(WORK_DIR )
28
25
-cd $(WORK_DIR ) && rm -rf $(CRATE )
29
26
cd $(WORK_DIR ) && bash -x $(HERE ) /../git_clone_sha1.sh $(CRATE ) $(CRATE_URL ) $(CRATE_SHA1 )
30
- cd $(WORK_DIR ) /$(CRATE ) && $(CARGO ) build --target $(TARGET ) -v
31
- cd $(WORK_DIR ) /$(CRATE ) && qemu-system-arm \
32
- -cpu $(QEMU_CPU) \
33
- -machine $(QEMU_MACHINE) \
34
- -semihosting-config enable=on,target=native \
35
- -nographic \
36
- -kernel target/$(TARGET)/debug/$(CRATE) > out.txt
37
- cd $(WORK_DIR)/$(CRATE) && grep $(QEMU_OUTPUT_TEXT) out.txt
27
+ cd $(WORK_DIR ) /$(CRATE ) && $(CARGO ) run --target $(TARGET ) --example qemu | grep " x = 42"
28
+ cd $(WORK_DIR ) /$(CRATE ) && $(CARGO ) run --target $(TARGET ) --example qemu --release | grep " x = 42"
38
29
else
39
30
40
31
all :
You can’t perform that action at this time.
0 commit comments