Skip to content
Snippets Groups Projects
Commit 6149ce01 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/Makefile: Add target to build axTLS.

parent 1c6d91d9
Branches
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ UART_OS = 0 ...@@ -30,7 +30,7 @@ UART_OS = 0
CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \ CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \
-D__ets__ -DICACHE_FLASH \ -D__ets__ -DICACHE_FLASH \
-fno-inline-functions \ -fno-inline-functions \
-Wl,-EL -mlongcalls -mtext-section-literals \ -Wl,-EL -mlongcalls -mtext-section-literals -mforce-l32 \
-DLWIP_OPEN_SRC -DLWIP_OPEN_SRC
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib -DUART_OS=$(UART_OS) \ CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib -DUART_OS=$(UART_OS) \
...@@ -48,7 +48,7 @@ CFLAGS += -g ...@@ -48,7 +48,7 @@ CFLAGS += -g
COPT = -O0 COPT = -O0
else else
CFLAGS += -fdata-sections -ffunction-sections CFLAGS += -fdata-sections -ffunction-sections
COPT += -Os -mforce-l32 -DNDEBUG COPT += -Os -DNDEBUG
LDFLAGS += --gc-sections LDFLAGS += --gc-sections
endif endif
...@@ -199,3 +199,9 @@ $(BUILD)/firmware.elf: $(OBJ) ...@@ -199,3 +199,9 @@ $(BUILD)/firmware.elf: $(OBJ)
# $(call compile_c) # $(call compile_c)
include ../py/mkrules.mk include ../py/mkrules.mk
axtls:
cd ../lib/axtls; cp config/upyconfig config/.config
cd ../lib/axtls; make oldconfig -B
cd ../lib/axtls; make clean
cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)" CFLAGS_EXTRA="$(CFLAGS_XTENSA)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment