Skip to content

Commit 9462bd2

Browse files
fix: skip midi2_host_feather build on non-RP2040 platforms
The Makefile was missing the FAMILY=rp2040 guard, causing CI failures on stm32h7rs and other non-RP2040 targets. Matches the approach used by midi2_host.
1 parent 02e0e75 commit 9462bd2

File tree

1 file changed

+27
-1
lines changed
  • examples/host/midi2_host_feather

1 file changed

+27
-1
lines changed
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1-
include ../../../examples/build_system/make/make.mk
1+
# This example requires RP2040 (PIO-USB, Pico SDK I2C, SSD1306 display)
2+
ifeq (,$(findstring rp2040,$(FAMILY)))
3+
$(info Skipping midi2_host_feather: requires FAMILY=rp2040)
4+
all:
5+
@:
6+
.DEFAULT:
7+
@:
8+
else
9+
10+
include ../../../hw/bsp/family_support.mk
11+
12+
INC += \
13+
src \
14+
15+
# Example source
16+
EXAMPLE_SOURCE += \
17+
src/main.c \
18+
src/display.c \
19+
20+
SRC_C += $(addprefix $(EXAMPLE_PATH)/, $(EXAMPLE_SOURCE))
21+
22+
# Suppress pre-existing warning
23+
CFLAGS_GCC += -Wno-type-limits
24+
25+
include ../../../hw/bsp/family_rules.mk
26+
27+
endif

0 commit comments

Comments
 (0)