ulp: check assembler version
This commit is contained in:
committed by
Renz Christian Bagaporo
parent
81231fcc4b
commit
b35c745c4f
@@ -24,6 +24,16 @@ ULP_PREPROCESSOR_ARGS := \
|
||||
|
||||
-include $(ULP_DEP)
|
||||
|
||||
# Check the assembler version
|
||||
include $(IDF_PATH)/components/ulp/toolchain_ulp_version.mk
|
||||
ULP_AS_VER := $(shell $(ULP_AS) --version | sed -E -n 's|GNU assembler \(GNU Binutils\) ([a-z0-9\.-]+)|\1|gp')
|
||||
|
||||
ifeq (,$(findstring $(ULP_AS_VER), $(SUPPORTED_ULP_ASSEMBLER_VERSION)))
|
||||
$(info WARNING: ULP assembler version $(ULP_AS_VER) is not supported.)
|
||||
$(info Expected to see version: $(SUPPORTED_ULP_ASSEMBLER_VERSION))
|
||||
$(info Please check ESP-IDF ULP setup instructions and update the toolchain, or proceed at your own risk.)
|
||||
endif
|
||||
|
||||
# Preprocess LD script used to link ULP program
|
||||
$(ULP_LD_SCRIPT): $(ULP_LD_TEMPLATE)
|
||||
$(summary) CPP $(patsubst $(PWD)/%,%,$(CURDIR))/$@
|
||||
|
||||
Reference in New Issue
Block a user