summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaulo VerĂ­ssimo <[email protected]>2026-04-07 23:04:03 -0300
committerSaulo VerĂ­ssimo <[email protected]>2026-05-12 11:07:44 -0300
commitc4847006dbb7565b71055837103ec788c4cb6fee (patch)
treed278fd0bcc2089a076e9c27d1ef67ff19f3b1e1c
parent13c6f6a2c7aca7165161d9f32d10087c91aa61aa (diff)
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.
-rw-r--r--examples/host/midi2_host_feather/Makefile28
1 files changed, 27 insertions, 1 deletions
diff --git a/examples/host/midi2_host_feather/Makefile b/examples/host/midi2_host_feather/Makefile
index 09172c37f..933d19434 100644
--- a/examples/host/midi2_host_feather/Makefile
+++ b/examples/host/midi2_host_feather/Makefile
@@ -1 +1,27 @@
-include ../../../examples/build_system/make/make.mk
+# This example requires RP2040 (PIO-USB, Pico SDK I2C, SSD1306 display)
+ifeq (,$(findstring rp2040,$(FAMILY)))
+$(info Skipping midi2_host_feather: requires FAMILY=rp2040)
+all:
+ @:
+.DEFAULT:
+ @:
+else
+
+include ../../../hw/bsp/family_support.mk
+
+INC += \
+ src \
+
+# Example source
+EXAMPLE_SOURCE += \
+ src/main.c \
+ src/display.c \
+
+SRC_C += $(addprefix $(EXAMPLE_PATH)/, $(EXAMPLE_SOURCE))
+
+# Suppress pre-existing warning
+CFLAGS_GCC += -Wno-type-limits
+
+include ../../../hw/bsp/family_rules.mk
+
+endif