1 -include ../../run-make-fulldeps/tools.mk
5 # $ ./x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi src/test/run-make
8 # - thumbv6m-none-eabi (Bare Cortex-M0, M0+, M1)
9 # - thumbv7em-none-eabi (Bare Cortex-M4, M7)
10 # - thumbv7em-none-eabihf (Bare Cortex-M4F, M7F, FPU, hardfloat)
11 # - thumbv7m-none-eabi (Bare Cortex-M3)
13 # See https://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
14 ifneq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv7m-none-eabi))
17 RUSTC := $(RUSTC_ORIGINAL)
18 LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
19 # We need to be outside of 'src' dir in order to run cargo
25 CRATE_URL := https://github.com/rust-embedded/cortex-m
26 CRATE_SHA1 := a448e9156e2cb1e556e5441fd65426952ef4b927 # 0.5.0
28 export RUSTFLAGS := --cap-lints=allow
33 -cd $(WORK_DIR) && rm -rf $(CRATE)
34 cd $(WORK_DIR) && bash -x $(HERE)/../git_clone_sha1.sh $(CRATE) $(CRATE_URL) $(CRATE_SHA1)
35 cd $(WORK_DIR) && cd $(CRATE) && $(CARGO) build --target $(TARGET) -v