From b64cc463fd86adcb023664416d631b5466477a2f Mon Sep 17 00:00:00 2001 From: erlingrj Date: Thu, 23 Jan 2025 09:57:42 +0100 Subject: [PATCH] ADd LFC_GEN_COMPILE_DEFS to RIOT build --- examples/riot/coap_federated_lf/Makefile | 3 --- make/riot/riot-lfc.mk | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/riot/coap_federated_lf/Makefile b/examples/riot/coap_federated_lf/Makefile index 59789c7c..f2c7ac5f 100755 --- a/examples/riot/coap_federated_lf/Makefile +++ b/examples/riot/coap_federated_lf/Makefile @@ -24,9 +24,6 @@ DEVELHELP ?= 1 # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 -# Enable reactor-uc features -CFLAGS += -DNETWORK_CHANNEL_COAP_RIOT - # Configure CoAP retransmission timeout CFLAGS += -DCONFIG_GCOAP_NO_RETRANS_BACKOFF=1 CFLAGS += -DCONFIG_COAP_ACK_TIMEOUT_MS=400 diff --git a/make/riot/riot-lfc.mk b/make/riot/riot-lfc.mk index 70f7d2e2..8b5f64cf 100644 --- a/make/riot/riot-lfc.mk +++ b/make/riot/riot-lfc.mk @@ -44,6 +44,9 @@ else # Include generated h files CFLAGS += -I$(LF_SRC_GEN_PATH) + # Add compile definitions produced by the LF compiler + CFLAGS += $(patsubst %, -D%, $(LFC_GEN_COMPILE_DEFS)) + include $(RIOT_MK_DIR)/riot.mk endif