浏览代码

Makefile: Unbreak STANDALONE=n build by skipping lwip.

Paul Sokolovsky 9 年之前
父节点
当前提交
cfe15bd826
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -283,12 +283,14 @@ empty_user_rf_pre_init.o: empty_user_rf_pre_init.c $(TOOLCHAIN)/bin/xtensa-lx106
 	$(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc -O2 -c $<
 	$(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc -O2 -c $<
 
 
 lwip: toolchain sdk_patch
 lwip: toolchain sdk_patch
+ifeq ($(STANDALONE),y)
 	make -C esp-open-lwip -f Makefile.open install \
 	make -C esp-open-lwip -f Makefile.open install \
 	    CC=$(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc \
 	    CC=$(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc \
 	    PREFIX=$(TOOLCHAIN)
 	    PREFIX=$(TOOLCHAIN)
 	cp -a esp-open-lwip/include/arch esp-open-lwip/include/lwip esp-open-lwip/include/netif \
 	cp -a esp-open-lwip/include/arch esp-open-lwip/include/lwip esp-open-lwip/include/netif \
 	    esp-open-lwip/include/lwipopts.h \
 	    esp-open-lwip/include/lwipopts.h \
 	    $(TOOLCHAIN)/xtensa-lx106-elf/sysroot/usr/include/
 	    $(TOOLCHAIN)/xtensa-lx106-elf/sysroot/usr/include/
+endif
 
 
 ESP8266_NONOS_SDK_V1.5.2_16_01_29.zip:
 ESP8266_NONOS_SDK_V1.5.2_16_01_29.zip:
 	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=1079"
 	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=1079"