mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -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.
|
||||
ifdef CONFIG_TOOLPREFIX
|
||||
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')
|
||||
|
||||
# Officially supported version(s)
|
||||
SUPPORTED_TOOLCHAIN_COMMIT_DESC := 1.22.0-80-g6c4433a
|
||||
SUPPORTED_TOOLCHAIN_GCC_VERSIONS := 5.2.0
|
||||
include $(IDF_PATH)/tools/toolchain_versions.mk
|
||||
|
||||
ifdef 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…
Reference in New Issue
Block a user