|
|
|
@ -114,14 +114,14 @@ LIBS = c gcc hal phy pp net80211 wpa main lwip |
|
|
|
|
|
|
|
|
|
# compiler flags using during compilation of source files
|
|
|
|
|
CFLAGS = -Os -ggdb -std=c99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions \
|
|
|
|
|
-nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -D_STDINT_H \
|
|
|
|
|
-Wno-address -DFIRMWARE_SIZE=$(ESP_FLASH_MAX) \
|
|
|
|
|
-nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections \
|
|
|
|
|
-D__ets__ -DICACHE_FLASH -D_STDINT_H -Wno-address -DFIRMWARE_SIZE=$(ESP_FLASH_MAX) \
|
|
|
|
|
-DMCU_RESET_PIN=$(MCU_RESET_PIN) -DMCU_ISP_PIN=$(MCU_ISP_PIN) \
|
|
|
|
|
-DLED_CONN_PIN=$(LED_CONN_PIN) -DLED_SERIAL_PIN=$(LED_SERIAL_PIN) \
|
|
|
|
|
"-DVERSION=$(VERSION)"
|
|
|
|
|
|
|
|
|
|
# linker flags used to generate the main object file
|
|
|
|
|
LDFLAGS = -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static
|
|
|
|
|
LDFLAGS = -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--gc-sections
|
|
|
|
|
|
|
|
|
|
# linker script used for the above linker step
|
|
|
|
|
LD_SCRIPT := build/eagle.esphttpd.v6.ld
|
|
|
|
|