1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +01:00

cpu/esp8266: ESP8266_SDK_DIR renamed

To make the migration progress to the new RTOS SDK easier, the ESP8266_SDK_DIR variable was renamed to ESP8266_RTOS_SDK_DIR.
This commit is contained in:
Gunar Schorcht 2019-10-18 17:45:40 +02:00
parent 9facce8c02
commit b15d7df6dc
11 changed files with 31 additions and 31 deletions

View File

@ -12,6 +12,6 @@ ifneq (, $(filter esp_wifi, $(USEMODULE)))
DIRS += esp-wifi DIRS += esp-wifi
endif endif
INCLUDES += -I$(ESP8266_SDK_DIR)/components/esp8266/include/internal INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/esp8266/include/internal
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -1,9 +1,9 @@
# check some environment variables first # check some environment variables first
ifndef ESP8266_SDK_DIR ifndef ESP8266_RTOS_SDK_DIR
$(info ESP8266_SDK_DIR should be defined as /path/to/sdk directory) $(info ESP8266_RTOS_SDK_DIR should be defined as /path/to/sdk directory)
$(info ESP8266_SDK_DIR is set by default to /opt/esp/esp-open-sdk/sdk) $(info ESP8266_RTOS_SDK_DIR is set by default to /opt/esp/ESP8266-RTOS-SDK)
export ESP8266_SDK_DIR=/opt/esp/ESP8266-RTOS-SDK export ESP8266_RTOS_SDK_DIR=/opt/esp/ESP8266-RTOS-SDK
endif endif
# Options to control the compilation # Options to control the compilation
@ -86,14 +86,14 @@ INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/esp8266/include
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/esp8266/include/esp8266 INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/esp8266/include/esp8266
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/heap/include INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/heap/include
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/log/include INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/log/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/ INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/
INCLUDES += -I$(ESP8266_SDK_DIR)/components/bootloader_support/include/ INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/bootloader_support/include/
INCLUDES += -I$(ESP8266_SDK_DIR)/components/esp8266/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/esp8266/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/esp8266/include/esp8266 INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/esp8266/include/esp8266
INCLUDES += -I$(ESP8266_SDK_DIR)/components/heap/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/heap/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/heap/port/esp8266/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/heap/port/esp8266/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/nvs_flash/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/nvs_flash/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/spi_flash/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/spi_flash/include
CFLAGS += -D__ESP_FILE__=__FILE__ -DDEVELHELP CFLAGS += -D__ESP_FILE__=__FILE__ -DDEVELHELP
CFLAGS += -Wno-unused-parameter -Wformat=0 CFLAGS += -Wno-unused-parameter -Wformat=0
@ -172,7 +172,7 @@ FLASH_FREQ = 26m # FIX configuration, DO NOT CHANGE
FLASH_SIZE ?= 1MB FLASH_SIZE ?= 1MB
FLASHDEPS += preflash FLASHDEPS += preflash
PREFLASHER ?= $(ESP8266_SDK_DIR)/components/esptool_py/esptool/esptool.py PREFLASHER ?= $(ESP8266_RTOS_SDK_DIR)/components/esptool_py/esptool/esptool.py
PREFFLAGS = --chip esp8266 elf2image PREFFLAGS = --chip esp8266 elf2image
PREFFLAGS += --flash_mode $(FLASH_MODE) --flash_size $(FLASH_SIZE) PREFFLAGS += --flash_mode $(FLASH_MODE) --flash_size $(FLASH_SIZE)
PREFFLAGS += --flash_freq $(FLASH_FREQ) --version 3 PREFFLAGS += --flash_freq $(FLASH_FREQ) --version 3

View File

@ -334,10 +334,10 @@ necessary changes.
SDK does not need to be compiled in any way. SDK does not need to be compiled in any way.
To use the installed ESP8266 RTOS SDK, set the environment variable To use the installed ESP8266 RTOS SDK, set the environment variable
`ESP8266_SDK_DIR`. `ESP8266_RTOS_SDK_DIR`.
``` ```
export ESP8266_SDK_DIR=$HOME/esp/ESP8266_RTOS_SDK export ESP8266_RTOS_SDK_DIR=$HOME/esp/ESP8266_RTOS_SDK
``` ```
@ -393,7 +393,7 @@ correctly to
``` ```
export PATH=/path/to/esp/esptool-esp8266-rtos-sdk-v3:/path/to/esp/xtensa-lx106-elf/bin:$PATH export PATH=/path/to/esp/esptool-esp8266-rtos-sdk-v3:/path/to/esp/xtensa-lx106-elf/bin:$PATH
export ESP8266_SDK_DIR=/path/to/esp/ESP8266_RTOS_SDK export ESP8266_RTOS_SDK_DIR=/path/to/esp/ESP8266_RTOS_SDK
``` ```
## <a name="esp8266_compile_options"> Compile Options </a> &nbsp;[[TOC](#esp8266_toc)] ## <a name="esp8266_compile_options"> Compile Options </a> &nbsp;[[TOC](#esp8266_toc)]

View File

@ -1,7 +1,7 @@
MODULE=esp_wifi MODULE=esp_wifi
# we have to do it in that way to avoid that pkg/lwip is found first # we have to do it in that way to avoid that pkg/lwip is found first
CFLAGS += -I$(ESP8266_SDK_DIR)/components/lwip/lwip/src/include CFLAGS += -I$(ESP8266_RTOS_SDK_DIR)/components/lwip/lwip/src/include
CFLAGS += -I$(ESP8266_SDK_DIR)/components/lwip/port/esp8266/include/ CFLAGS += -I$(ESP8266_RTOS_SDK_DIR)/components/lwip/port/esp8266/include/
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -2,5 +2,5 @@ MODULE=esp_idf_esp8266
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
INCLUDES += -I$(ESP8266_SDK_DIR)/components/esp8266/source INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/esp8266/source
INCLUDES += -I$(ESP8266_SDK_DIR)/components/util/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/util/include

View File

@ -5,5 +5,5 @@ include $(RIOTBASE)/Makefile.base
CFLAGS += -DESP_PLATFORM CFLAGS += -DESP_PLATFORM
CXXFLAGS += -std=c++11 CXXFLAGS += -std=c++11
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/log/include INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/log/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/nvs_flash/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/nvs_flash/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/spi_flash/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/spi_flash/include

View File

@ -4,5 +4,5 @@ include $(RIOTBASE)/Makefile.base
CFLAGS += -DESP_PLATFORM -DNVS_CRC_HEADER_FILE=\"crc.h\" CFLAGS += -DESP_PLATFORM -DNVS_CRC_HEADER_FILE=\"crc.h\"
CXXFLAGS += -std=c++11 CXXFLAGS += -std=c++11
INCLUDES += -I$(ESP8266_SDK_DIR)/components/nvs_flash/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/nvs_flash/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/util/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/util/include

View File

@ -2,4 +2,4 @@ MODULE=esp_idf_spi_flash
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
INCLUDES += -I$(ESP8266_SDK_DIR)/components/bootloader_support/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/bootloader_support/include

View File

@ -2,4 +2,4 @@ MODULE=esp_idf_util
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
INCLUDES += -I$(ESP8266_SDK_DIR)/components/util/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/util/include

View File

@ -5,8 +5,8 @@ include $(RIOTBASE)/Makefile.base
# we have to do it in that way to avoid that $(RIOTBASE)/sys/include/crypto # we have to do it in that way to avoid that $(RIOTBASE)/sys/include/crypto
# is found first # is found first
INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/wpa_supplicant/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/wpa_supplicant/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/wpa_supplicant/port/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/wpa_supplicant/port/include
CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP_PLATFORM=1 CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP_PLATFORM=1
CFLAGS += -Wno-strict-aliasing CFLAGS += -Wno-strict-aliasing

View File

@ -6,8 +6,8 @@ include $(RIOTBASE)/Makefile.base
# is found first # is found first
INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/wpa_supplicant/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/wpa_supplicant/include
INCLUDES += -I$(ESP8266_SDK_DIR)/components/wpa_supplicant/port/include INCLUDES += -I$(ESP8266_RTOS_SDK_DIR)/components/wpa_supplicant/port/include
CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP_PLATFORM=1 CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP_PLATFORM=1
CFLAGS += -Wno-strict-aliasing CFLAGS += -Wno-strict-aliasing