summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-27 00:35:13 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-27 00:35:13 +0300
commit6149ce01f849e8f1e75450034892bda3edea6149 (patch)
tree3348f7cb2e8271b16151fedcc96b0d477a6a0173 /esp8266
parent1c6d91d96846f4c1782052aca29ab7fe12567af8 (diff)
downloadmicropython-6149ce01f849e8f1e75450034892bda3edea6149.tar.gz
micropython-6149ce01f849e8f1e75450034892bda3edea6149.zip
esp8266/Makefile: Add target to build axTLS.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 6db8003ed8..85ad273be4 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -30,7 +30,7 @@ UART_OS = 0
CFLAGS_XTENSA = -fsingle-precision-constant -Wdouble-promotion \
-D__ets__ -DICACHE_FLASH \
-fno-inline-functions \
- -Wl,-EL -mlongcalls -mtext-section-literals \
+ -Wl,-EL -mlongcalls -mtext-section-literals -mforce-l32 \
-DLWIP_OPEN_SRC
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib -DUART_OS=$(UART_OS) \
@@ -48,7 +48,7 @@ CFLAGS += -g
COPT = -O0
else
CFLAGS += -fdata-sections -ffunction-sections
-COPT += -Os -mforce-l32 -DNDEBUG
+COPT += -Os -DNDEBUG
LDFLAGS += --gc-sections
endif
@@ -199,3 +199,9 @@ $(BUILD)/firmware.elf: $(OBJ)
# $(call compile_c)
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)"