summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-07-30 17:31:23 +1000
committerDamien George <damien.p.george@gmail.com>2019-07-30 17:31:23 +1000
commit7c15e50eb880f7246fca3fdd11c967b151117ddf (patch)
treef8702d6f6eccd8fe6657692c05aa448f635af7fa
parent01054f20925b92229402750979864f8d38a76916 (diff)
esp32/Makefile: Include CFLAGS_EXTRA in CFLAGS definition.
Following other ports, so builds can be customised more easily, eg on the command line building with a user C-module.
-rw-r--r--ports/esp32/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index cb8c88a2d..c6ef04b46 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -126,7 +126,7 @@ CFLAGS_COMMON = -Os -ffunction-sections -fdata-sections -fstrict-volatile-bitfie
CFLAGS_BASE = -std=gnu99 $(CFLAGS_COMMON) -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' -DHAVE_CONFIG_H
CFLAGS = $(CFLAGS_BASE) $(INC) $(INC_ESPCOMP)
CFLAGS += -DIDF_VER=\"$(IDF_VER)\"
-CFLAGS += $(CFLAGS_MOD)
+CFLAGS += $(CFLAGS_MOD) $(CFLAGS_EXTRA)
# this is what ESPIDF uses for c++ compilation
CXXFLAGS = -std=gnu++11 $(CFLAGS_COMMON) $(INC) $(INC_ESPCOMP)