mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
toolchain: Set the supported toolchain version in a separate file
This commit is contained in:
parent
593abe0768
commit
ab21644df4
@ -567,12 +567,11 @@ print_flash_cmd: partition_table_get_info blank_ota_data
|
|||||||
# the part after the brackets is extracted into TOOLCHAIN_GCC_VER.
|
# the part after the brackets is extracted into TOOLCHAIN_GCC_VER.
|
||||||
ifdef CONFIG_TOOLPREFIX
|
ifdef CONFIG_TOOLPREFIX
|
||||||
ifndef MAKE_RESTARTS
|
ifndef MAKE_RESTARTS
|
||||||
TOOLCHAIN_COMMIT_DESC := $(shell $(CC) --version | sed -E -n 's|.*crosstool-ng-([0-9]+).([0-9]+).([0-9]+)-([0-9]+)-g([0-9a-f]{7}).*|\1.\2.\3-\4-g\5|gp')
|
TOOLCHAIN_COMMIT_DESC := $(shell $(CC) --version | sed -E -n 's|.*\(crosstool-NG (.*)\).*|\1|gp')
|
||||||
TOOLCHAIN_GCC_VER := $(shell $(CC) --version | sed -E -n 's|xtensa-esp32-elf-gcc.*\ \(.*\)\ (.*)|\1|gp')
|
TOOLCHAIN_GCC_VER := $(shell $(CC) --version | sed -E -n 's|xtensa-esp32-elf-gcc.*\ \(.*\)\ (.*)|\1|gp')
|
||||||
|
|
||||||
# Officially supported version(s)
|
# Officially supported version(s)
|
||||||
SUPPORTED_TOOLCHAIN_COMMIT_DESC := 1.22.0-80-g6c4433a
|
include $(IDF_PATH)/tools/toolchain_versions.mk
|
||||||
SUPPORTED_TOOLCHAIN_GCC_VERSIONS := 5.2.0
|
|
||||||
|
|
||||||
ifdef TOOLCHAIN_COMMIT_DESC
|
ifdef TOOLCHAIN_COMMIT_DESC
|
||||||
ifneq ($(TOOLCHAIN_COMMIT_DESC), $(SUPPORTED_TOOLCHAIN_COMMIT_DESC))
|
ifneq ($(TOOLCHAIN_COMMIT_DESC), $(SUPPORTED_TOOLCHAIN_COMMIT_DESC))
|
||||||
|
5
tools/toolchain_versions.mk
Normal file
5
tools/toolchain_versions.mk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
SUPPORTED_TOOLCHAIN_COMMIT_DESC = crosstool-ng-1.22.0-80-g6c4433a
|
||||||
|
SUPPORTED_TOOLCHAIN_GCC_VERSIONS = 5.2.0
|
||||||
|
|
||||||
|
CURRENT_TOOLCHAIN_COMMIT_DESC = crosstool-ng-1.22.0-80-g6c4433a
|
||||||
|
CURRENT_TOOLCHAIN_GCC_VERSION = 5.2.0
|
Loading…
x
Reference in New Issue
Block a user