|
|
@ -21,7 +21,7 @@ FLASH_FREQ ?= 40m |
|
|
|
FLASH_SIZE ?= 4MB |
|
|
|
CROSS_COMPILE ?= xtensa-esp32-elf- |
|
|
|
|
|
|
|
ESPIDF_SUPHASH := 1f7b41e206646417adc572da928175d33c986bd3 |
|
|
|
ESPIDF_SUPHASH := 9a55b42f0841b3d38a61089b1dda4bf28135decd |
|
|
|
|
|
|
|
# paths to ESP IDF and its components
|
|
|
|
ifeq ($(ESPIDF),) |
|
|
@ -93,6 +93,7 @@ INC_ESPCOMP += -I$(ESPCOMP)/ethernet/include |
|
|
|
INC_ESPCOMP += -I$(ESPCOMP)/app_trace/include |
|
|
|
INC_ESPCOMP += -I$(ESPCOMP)/app_update/include |
|
|
|
INC_ESPCOMP += -I$(ESPCOMP)/pthread/include |
|
|
|
INC_ESPCOMP += -I$(ESPCOMP)/smartconfig_ack/include |
|
|
|
|
|
|
|
# these flags are common to C and C++ compilation
|
|
|
|
CFLAGS_COMMON = -Os -ffunction-sections -fdata-sections -fstrict-volatile-bitfields \
|
|
|
@ -271,7 +272,7 @@ ESPIDF_ESP32_O = $(addprefix $(ESPCOMP)/esp32/,\ |
|
|
|
intr_alloc.o \
|
|
|
|
dport_access.o \
|
|
|
|
wifi_init.o \
|
|
|
|
wifi_internal.o \
|
|
|
|
wifi_os_adapter.o \
|
|
|
|
sleep_modes.o \
|
|
|
|
spiram.o \
|
|
|
|
spiram_psram.o \
|
|
|
@ -291,6 +292,7 @@ ESPIDF_SOC_O = $(addprefix $(ESPCOMP)/soc/,\ |
|
|
|
esp32/rtc_sleep.o \
|
|
|
|
esp32/rtc_time.o \
|
|
|
|
esp32/soc_memory_layout.o \
|
|
|
|
esp32/spi_periph.o \
|
|
|
|
) |
|
|
|
|
|
|
|
ESPIDF_CXX_O = $(addprefix $(ESPCOMP)/cxx/,\
|
|
|
@ -331,7 +333,7 @@ $(BUILD)/$(ESPCOMP)/freertos/portasm.o: CFLAGS = $(CFLAGS_ASM) |
|
|
|
$(BUILD)/$(ESPCOMP)/freertos/xtensa_context.o: CFLAGS = $(CFLAGS_ASM) |
|
|
|
$(BUILD)/$(ESPCOMP)/freertos/xtensa_intr_asm.o: CFLAGS = $(CFLAGS_ASM) |
|
|
|
$(BUILD)/$(ESPCOMP)/freertos/xtensa_vectors.o: CFLAGS = $(CFLAGS_ASM) |
|
|
|
$(BUILD)/$(ESPCOMP)/freertos/%.o: CFLAGS = $(CFLAGS_BASE) -I. $(INC_ESPCOMP) -I$(ESPCOMP)/freertos/include/freertos |
|
|
|
$(BUILD)/$(ESPCOMP)/freertos/%.o: CFLAGS = $(CFLAGS_BASE) -I. $(INC_ESPCOMP) -I$(ESPCOMP)/freertos/include/freertos -D_ESP_FREERTOS_INTERNAL |
|
|
|
ESPIDF_FREERTOS_O = $(addprefix $(ESPCOMP)/freertos/,\
|
|
|
|
croutine.o \
|
|
|
|
event_groups.o \
|
|
|
@ -429,6 +431,10 @@ ESPIDF_NVS_FLASH_O = $(addprefix $(ESPCOMP)/nvs_flash/,\ |
|
|
|
ESPIDF_OPENSSL_O = $(addprefix $(ESPCOMP)/openssl/,\
|
|
|
|
) |
|
|
|
|
|
|
|
ESPIDF_SMARTCONFIG_ACK_O = $(addprefix $(ESPCOMP)/smartconfig_ack/,\
|
|
|
|
smartconfig_ack.o \
|
|
|
|
) |
|
|
|
|
|
|
|
ESPIDF_SPI_FLASH_O = $(addprefix $(ESPCOMP)/spi_flash/,\
|
|
|
|
flash_mmap.o \
|
|
|
|
partition.o \
|
|
|
@ -629,6 +635,7 @@ OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_APP_UPDATE_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_NGHTTP_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_NVS_FLASH_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_OPENSSL_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_SMARTCONFIG_ACK_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_SPI_FLASH_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_ULP_O)) |
|
|
|
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_WPA_SUPPLICANT_O)) |
|
|
@ -666,7 +673,7 @@ APP_LD_ARGS += -L$(dir $(LIBGCC_FILE_NAME)) -lgcc |
|
|
|
APP_LD_ARGS += -L$(dir $(LIBSTDCXX_FILE_NAME)) -lstdc++ |
|
|
|
APP_LD_ARGS += $(LIBC_LIBM) |
|
|
|
APP_LD_ARGS += $(ESPCOMP)/esp32/libhal.a |
|
|
|
APP_LD_ARGS += -L$(ESPCOMP)/esp32/lib -lcore -lnet80211 -lphy -lrtc -lpp -lwpa -lsmartconfig -lcoexist -lwps -lwpa2 |
|
|
|
APP_LD_ARGS += -L$(ESPCOMP)/esp32/lib -lcore -lmesh -lnet80211 -lphy -lrtc -lpp -lwpa -lsmartconfig -lcoexist -lwps -lwpa2 |
|
|
|
APP_LD_ARGS += $(OBJ) |
|
|
|
APP_LD_ARGS += --end-group |
|
|
|
|
|
|
|