Skip to content

Commit 6c52653

Browse files
committed
[CI] run-make/thumb: support 4 thumb*-none-eabi* targets:
- thumbv6m-none-eabi (Bare Cortex-M0, M0+, M1) - thumbv7em-none-eabi (Bare Cortex-M4, M7) - thumbv7em-none-eabihf (Bare Cortex-M4F, M7F, FPU, hardfloat) - thumbv7m-none-eabi (Bare Cortex-M3)
1 parent bbbe441 commit 6c52653

File tree

1 file changed

+10
-2
lines changed
  • src/test/run-make/thumb-none-cortex-m

1 file changed

+10
-2
lines changed

src/test/run-make/thumb-none-cortex-m/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
-include ../../run-make-fulldeps/tools.mk
22

33
# How to run this
4-
# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make
4+
# $ ./x.py clean
5+
# $ ./x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi src/test/run-make
56

6-
ifeq ($(TARGET),thumbv7m-none-eabi)
7+
# Supported targets:
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)
12+
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))
715

816
# We need to be outside of 'src' dir in order to run cargo
917
WORK_DIR := $(RUST_TEST_TMPDIR)/run-make/$(TARGET)

0 commit comments

Comments
 (0)