1 Star 0 Fork 1

Scott / nodemcu-prebuilt-toolchains

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
default: esp32 lx106
TOPDIR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
Q?=@
# It's unfortunately not possible to have the two toolchains share a top dir,
# as they step on each others toes in some areas (e.g. linker scripts).
#
.PHONY: esp32 esp8266
esp32: esp32/bin/xtensa-esp32-elf-gcc
lx106: esp8266/bin/xtensa-lx106-elf-gcc
build/lx106/Makefile:
$Qcd build && git clone --recursive https://github.com/pfalcon/esp-open-sdk.git lx106
esp8266/bin/xtensa-lx106-elf-gcc: build/lx106/Makefile
$Qecho CT_STATIC_TOOLCHAIN=y >> $(dir $<)/crosstool-config-overrides
$Qcd "$(dir $<)" && $(MAKE) STANDALONE=n TOOLCHAIN="$(TOPDIR)/esp8266" toolchain libhal
build/esp32/bootstrap:
$Qcd build && git clone -b xtensa-1.22.x https://github.com/espressif/crosstool-NG.git esp32
@touch $@
build/esp32/Makefile: build/esp32/bootstrap
$Qcd "$(dir $@)" && ./bootstrap && ./configure --prefix="`pwd`"
build/esp32/ct-ng: build/esp32/Makefile
$Qcd "$(dir $@)" && $(MAKE) MAKELEVEL=0 && $(MAKE) MAKELEVEL=0 install
build/esp32/.config: build/esp32/ct-ng
$Qcd "$(dir $@)" && ./ct-ng xtensa-esp32-elf
$Qsed -i 's,^CT_PREFIX_DIR=.*$$,CT_PREFIX_DIR="$${CT_TOP_DIR}/../../esp32",' $@
$Qecho CT_STATIC_TOOLCHAIN=y >> $@
esp32/bin/xtensa-esp32-elf-gcc: build/esp32/.config
$Qcd "$(dir $<)" && ./ct-ng build
.PHONY:clean
clean:
-rm -rf build/esp32 build/lx106
.SUFFIXES:
%: %,v
%: RCS/%,v
%: RCS/%
%: s.%
%: SCCS/s.%
1
https://gitee.com/BestMyGod/nodemcu-prebuilt-toolchains.git
git@gitee.com:BestMyGod/nodemcu-prebuilt-toolchains.git
BestMyGod
nodemcu-prebuilt-toolchains
nodemcu-prebuilt-toolchains
master

搜索帮助