Skip to content

Commit

Permalink
esp8266 v2.5.0 with boards manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jscrane committed May 28, 2019
1 parent 26e437e commit f284324
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions arduino-esp8266.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

IDE_HOME ?= /usr/local/arduino
SKETCHBOOK ?= $(HOME)/sketchbook
UPLOAD_PORT ?= /dev/ttyUSB0
PLATFORM_VERSION ?= 2.5.0

PROCESSOR_FAMILY := esp8266
PLATFORM := esp8266com
PLATFORM_PACKAGE := $(HOME)/.arduino15/packages/$(PROCESSOR_FAMILY)
PLATFORM_HEADER := Arduino.h
HARDWARE_FAMILY := $(SKETCHBOOK)/hardware/$(PLATFORM)/$(PROCESSOR_FAMILY)
HARDWARE_FAMILY := $(PLATFORM_PACKAGE)/hardware/$(PROCESSOR_FAMILY)/$(PLATFORM_VERSION)
CORE := $(HARDWARE_FAMILY)/cores/$(PROCESSOR_FAMILY)
CPPFLAGS += -DARDUINO=10805
SKETCH_PRE = $(BUILD_DIR)/local.eagle.app.v6.common.ld
Expand Down
7 changes: 4 additions & 3 deletions esp8266.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
COMPILER_FAMILY := xtensa-lx106-elf
TOOL_DIR := $(HARDWARE_FAMILY)/tools
TOOLS := $(TOOL_DIR)/$(COMPILER_FAMILY)
PATH := $(PATH):$(TOOL_DIR)/esptool:$(TOOL_DIR)/mkspiffs
TOOL_VERSION ?= 2.5.0-3-20ed2b9
TOOL_DIR := $(PLATFORM_PACKAGE)/tools
PATH := $(PATH):$(TOOL_DIR)/esptool/$(TOOL_VERSION):$(TOOL_DIR)/mkspiffs/$(TOOL_VERSION)
TOOLS := $(TOOL_DIR)/$(COMPILER_FAMILY)-gcc/$(TOOL_VERSION)

SDK := $(HARDWARE_FAMILY)/tools/sdk
BUILD_BOARD != sed -ne "s/$(BOARD).build.board=\(.*\)/\1/p" $(BOARDS)
Expand Down

0 comments on commit f284324

Please sign in to comment.