From 9bd3aba51c0dec1902c9e5e74bb95a5b92409be4 Mon Sep 17 00:00:00 2001 From: martinmarcos Date: Wed, 20 Apr 2016 02:05:02 -0300 Subject: [PATCH] Makefile: Fix lwip library build when building STANDALONE=y. When building STANDALONE=y toolchain fails to build do to lwip library failing to build. Lwip library file "liblwip_open.a" fails to build because its looking for xtensa-lx106-elf-ar in wrong path. Proposed fix is to pass the correct AR path to esp-open-lwip/Makefile.open as it was done with CC path. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2b64e7f..7fe081e 100644 --- a/Makefile +++ b/Makefile @@ -286,6 +286,7 @@ lwip: toolchain sdk_patch ifeq ($(STANDALONE),y) make -C esp-open-lwip -f Makefile.open install \ CC=$(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc \ + AR=$(TOOLCHAIN)/bin/xtensa-lx106-elf-ar \ PREFIX=$(TOOLCHAIN) cp -a esp-open-lwip/include/arch esp-open-lwip/include/lwip esp-open-lwip/include/netif \ esp-open-lwip/include/lwipopts.h \