mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Toolchain detection: Fix issue when run in a clean project
If the makefile config entry hasn't been generated yet, don't test the toolchain. Closes #226 https://github.com/espressif/esp-idf/issues/226
This commit is contained in:
parent
233fde166b
commit
5c9c08eabb
@ -428,6 +428,7 @@ $(foreach submodule,$(subst $(IDF_PATH)/,,$(filter $(IDF_PATH)/%,$(COMPONENT_SUB
|
|||||||
# xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-59-ga194053) 4.8.5
|
# xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-59-ga194053) 4.8.5
|
||||||
# The part in brackets is extracted into TOOLCHAIN_COMMIT_DESC variable,
|
# The part in brackets is extracted into TOOLCHAIN_COMMIT_DESC variable,
|
||||||
# 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
|
||||||
ifndef MAKE_RESTARTS
|
ifndef MAKE_RESTARTS
|
||||||
TOOLCHAIN_COMMIT_DESC := $(shell $(CC) --version | sed -E -n 's|xtensa-esp32-elf-gcc.*?\ \(([^)]*).*|\1|gp')
|
TOOLCHAIN_COMMIT_DESC := $(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')
|
TOOLCHAIN_GCC_VER := $(shell $(CC) --version | sed -E -n 's|xtensa-esp32-elf-gcc.*?\ \(.*\)\ (.*)|\1|gp')
|
||||||
@ -450,5 +451,6 @@ endif
|
|||||||
else
|
else
|
||||||
$(info WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu)
|
$(info WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu)
|
||||||
endif # TOOLCHAIN_COMMIT_DESC
|
endif # TOOLCHAIN_COMMIT_DESC
|
||||||
endif #MAKE_RESTARTS
|
|
||||||
|
|
||||||
|
endif #MAKE_RESTARTS
|
||||||
|
endif #CONFIG_TOOLPREFIX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user