esp32: Add check to Makefile that the toolchain is in PATH.

This commit is contained in:
Jim Mussared 2019-09-17 11:50:31 +10:00 committed by Damien George
parent 970f798ea9
commit f469634c0c
1 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,13 @@ endif
# pretty format of ESP IDF version, used internally by the IDF
IDF_VER := $(shell git -C $(ESPIDF) describe)
ifeq ($(shell which $(CC) 2> /dev/null),)
$(info ** ERROR **)
$(info Cannot find C compiler $(CC))
$(info Add the xtensa toolchain to your PATH. See README.md)
$(error C compiler missing)
endif
# include sdkconfig to get needed configuration values
include $(SDKCONFIG)