mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 12:15:33 +01:00
Update docker base image
This commit is contained in:
parent
8be444a25e
commit
ed61c1dd58
@ -41,11 +41,11 @@ stages:
|
|||||||
|
|
||||||
- |
|
- |
|
||||||
if [[ "${IS_HASSIO}" == "YES" ]]; then
|
if [[ "${IS_HASSIO}" == "YES" ]]; then
|
||||||
BUILD_FROM=esphome/esphome-hassio-base-${BUILD_ARCH}:1.5.1
|
BUILD_FROM=esphome/esphome-hassio-base-${BUILD_ARCH}:1.6.0
|
||||||
BUILD_TO=esphome/esphome-hassio-${BUILD_ARCH}
|
BUILD_TO=esphome/esphome-hassio-${BUILD_ARCH}
|
||||||
DOCKERFILE=docker/Dockerfile.hassio
|
DOCKERFILE=docker/Dockerfile.hassio
|
||||||
else
|
else
|
||||||
BUILD_FROM=esphome/esphome-base-${BUILD_ARCH}:1.5.1
|
BUILD_FROM=esphome/esphome-base-${BUILD_ARCH}:1.6.0
|
||||||
if [[ "${BUILD_ARCH}" == "amd64" ]]; then
|
if [[ "${BUILD_ARCH}" == "amd64" ]]; then
|
||||||
BUILD_TO=esphome/esphome
|
BUILD_TO=esphome/esphome
|
||||||
else
|
else
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ARG BUILD_FROM=esphome/esphome-base-amd64:1.5.1
|
ARG BUILD_FROM=esphome/esphome-base-amd64:1.6.0
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -128,7 +128,7 @@ def or_condition_to_code(config, condition_id, template_arg, args):
|
|||||||
yield cg.new_Pvariable(condition_id, template_arg, conditions)
|
yield cg.new_Pvariable(condition_id, template_arg, conditions)
|
||||||
|
|
||||||
|
|
||||||
@register_condition('not', NotCondition, validate_condition)
|
@register_condition('not', NotCondition, validate_potentially_and_condition)
|
||||||
def not_condition_to_code(config, condition_id, template_arg, args):
|
def not_condition_to_code(config, condition_id, template_arg, args):
|
||||||
condition = yield build_condition(config, template_arg, args)
|
condition = yield build_condition(config, template_arg, args)
|
||||||
yield cg.new_Pvariable(condition_id, template_arg, condition)
|
yield cg.new_Pvariable(condition_id, template_arg, condition)
|
||||||
|
@ -112,7 +112,7 @@ def to_code(config):
|
|||||||
|
|
||||||
if CORE.is_esp8266 and has_serial_logging and is_at_least_verbose:
|
if CORE.is_esp8266 and has_serial_logging and is_at_least_verbose:
|
||||||
debug_serial_port = HARDWARE_UART_TO_SERIAL[config.get(CONF_HARDWARE_UART)]
|
debug_serial_port = HARDWARE_UART_TO_SERIAL[config.get(CONF_HARDWARE_UART)]
|
||||||
cg.add_build_flag("-DDEBUG_ESP_PORT{}".format(debug_serial_port))
|
cg.add_build_flag("-DDEBUG_ESP_PORT={}".format(debug_serial_port))
|
||||||
cg.add_build_flag("-DLWIP_DEBUG")
|
cg.add_build_flag("-DLWIP_DEBUG")
|
||||||
DEBUG_COMPONENTS = {
|
DEBUG_COMPONENTS = {
|
||||||
'HTTP_CLIENT',
|
'HTTP_CLIENT',
|
||||||
|
@ -18,6 +18,7 @@ ARDUINO_VERSION_ESP32_1_0_1 = 'espressif32@1.6.0'
|
|||||||
ARDUINO_VERSION_ESP8266_DEV = 'https://github.com/platformio/platform-espressif8266.git#feature' \
|
ARDUINO_VERSION_ESP8266_DEV = 'https://github.com/platformio/platform-espressif8266.git#feature' \
|
||||||
'/stage'
|
'/stage'
|
||||||
ARDUINO_VERSION_ESP8266_2_5_0 = 'espressif8266@2.0.0'
|
ARDUINO_VERSION_ESP8266_2_5_0 = 'espressif8266@2.0.0'
|
||||||
|
ARDUINO_VERSION_ESP8266_2_5_1 = 'espressif8266@2.1.0'
|
||||||
ARDUINO_VERSION_ESP8266_2_3_0 = 'espressif8266@1.5.0'
|
ARDUINO_VERSION_ESP8266_2_3_0 = 'espressif8266@1.5.0'
|
||||||
SOURCE_FILE_EXTENSIONS = {'.cpp', '.hpp', '.h', '.c', '.tcc', '.ino'}
|
SOURCE_FILE_EXTENSIONS = {'.cpp', '.hpp', '.h', '.c', '.tcc', '.ino'}
|
||||||
HEADER_FILE_EXTENSIONS = {'.h', '.hpp', '.tcc'}
|
HEADER_FILE_EXTENSIONS = {'.h', '.hpp', '.tcc'}
|
||||||
|
@ -11,7 +11,7 @@ from esphome.const import ARDUINO_VERSION_ESP32_DEV, ARDUINO_VERSION_ESP8266_DEV
|
|||||||
CONF_NAME, CONF_ON_BOOT, CONF_ON_LOOP, CONF_ON_SHUTDOWN, CONF_PLATFORM, \
|
CONF_NAME, CONF_ON_BOOT, CONF_ON_LOOP, CONF_ON_SHUTDOWN, CONF_PLATFORM, \
|
||||||
CONF_PLATFORMIO_OPTIONS, CONF_PRIORITY, CONF_TRIGGER_ID, \
|
CONF_PLATFORMIO_OPTIONS, CONF_PRIORITY, CONF_TRIGGER_ID, \
|
||||||
CONF_ESP8266_RESTORE_FROM_FLASH, __version__, ARDUINO_VERSION_ESP8266_2_3_0, \
|
CONF_ESP8266_RESTORE_FROM_FLASH, __version__, ARDUINO_VERSION_ESP8266_2_3_0, \
|
||||||
ARDUINO_VERSION_ESP8266_2_5_0
|
ARDUINO_VERSION_ESP8266_2_5_0, ARDUINO_VERSION_ESP8266_2_5_1
|
||||||
from esphome.core import CORE, coroutine_with_priority
|
from esphome.core import CORE, coroutine_with_priority
|
||||||
from esphome.pins import ESP8266_FLASH_SIZES, ESP8266_LD_SCRIPTS
|
from esphome.pins import ESP8266_FLASH_SIZES, ESP8266_LD_SCRIPTS
|
||||||
|
|
||||||
@ -42,12 +42,13 @@ def validate_board(value):
|
|||||||
validate_platform = cv.one_of('ESP32', 'ESP8266', upper=True)
|
validate_platform = cv.one_of('ESP32', 'ESP8266', upper=True)
|
||||||
|
|
||||||
PLATFORMIO_ESP8266_LUT = {
|
PLATFORMIO_ESP8266_LUT = {
|
||||||
|
'2.5.1': 'espressif8266@2.1.0',
|
||||||
'2.5.0': 'espressif8266@2.0.1',
|
'2.5.0': 'espressif8266@2.0.1',
|
||||||
'2.4.2': 'espressif8266@1.8.0',
|
'2.4.2': 'espressif8266@1.8.0',
|
||||||
'2.4.1': 'espressif8266@1.7.3',
|
'2.4.1': 'espressif8266@1.7.3',
|
||||||
'2.4.0': 'espressif8266@1.6.0',
|
'2.4.0': 'espressif8266@1.6.0',
|
||||||
'2.3.0': 'espressif8266@1.5.0',
|
'2.3.0': 'espressif8266@1.5.0',
|
||||||
'RECOMMENDED': 'espressif8266@1.8.0',
|
'RECOMMENDED': 'espressif8266@2.1.0',
|
||||||
'LATEST': 'espressif8266',
|
'LATEST': 'espressif8266',
|
||||||
'DEV': ARDUINO_VERSION_ESP8266_DEV,
|
'DEV': ARDUINO_VERSION_ESP8266_DEV,
|
||||||
}
|
}
|
||||||
@ -189,15 +190,14 @@ def to_code(config):
|
|||||||
if CORE.arduino_version in ('espressif8266@1.8.0', 'espressif8266@1.7.3',
|
if CORE.arduino_version in ('espressif8266@1.8.0', 'espressif8266@1.7.3',
|
||||||
'espressif8266@1.6.0'):
|
'espressif8266@1.6.0'):
|
||||||
ld_script = ld_scripts[0]
|
ld_script = ld_scripts[0]
|
||||||
elif CORE.arduino_version in (ARDUINO_VERSION_ESP8266_DEV, ARDUINO_VERSION_ESP8266_2_5_0):
|
elif CORE.arduino_version in (ARDUINO_VERSION_ESP8266_DEV, ARDUINO_VERSION_ESP8266_2_5_0,
|
||||||
|
ARDUINO_VERSION_ESP8266_2_5_1):
|
||||||
ld_script = ld_scripts[1]
|
ld_script = ld_scripts[1]
|
||||||
|
|
||||||
if ld_script is not None:
|
if ld_script is not None:
|
||||||
cg.add_build_flag('-Wl,-T{}'.format(ld_script))
|
cg.add_build_flag('-Wl,-T{}'.format(ld_script))
|
||||||
|
|
||||||
if CORE.is_esp8266 and CORE.arduino_version in (ARDUINO_VERSION_ESP8266_DEV,
|
cg.add_build_flag('-fno-exceptions')
|
||||||
ARDUINO_VERSION_ESP8266_2_5_0):
|
|
||||||
cg.add_build_flag('-fno-exceptions')
|
|
||||||
|
|
||||||
# Libraries
|
# Libraries
|
||||||
if CORE.is_esp32:
|
if CORE.is_esp32:
|
||||||
|
Loading…
Reference in New Issue
Block a user