Skip to content
Snippets Groups Projects
Commit 7c15e50e authored by Damien George's avatar Damien George
Browse files

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.
parent 01054f20
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ CFLAGS_COMMON = -Os -ffunction-sections -fdata-sections -fstrict-volatile-bitfie ...@@ -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_BASE = -std=gnu99 $(CFLAGS_COMMON) -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' -DHAVE_CONFIG_H
CFLAGS = $(CFLAGS_BASE) $(INC) $(INC_ESPCOMP) CFLAGS = $(CFLAGS_BASE) $(INC) $(INC_ESPCOMP)
CFLAGS += -DIDF_VER=\"$(IDF_VER)\" CFLAGS += -DIDF_VER=\"$(IDF_VER)\"
CFLAGS += $(CFLAGS_MOD) CFLAGS += $(CFLAGS_MOD) $(CFLAGS_EXTRA)
# this is what ESPIDF uses for c++ compilation # this is what ESPIDF uses for c++ compilation
CXXFLAGS = -std=gnu++11 $(CFLAGS_COMMON) $(INC) $(INC_ESPCOMP) CXXFLAGS = -std=gnu++11 $(CFLAGS_COMMON) $(INC) $(INC_ESPCOMP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment