mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
make, cmake: display ulp assembler version
This commit is contained in:
parent
b35c745c4f
commit
bec3bb3ba4
@ -14,6 +14,9 @@ execute_process(
|
|||||||
string(REGEX MATCH "GNU assembler \\(GNU Binutils\\) (${version_pattern})" as_version ${as_output})
|
string(REGEX MATCH "GNU assembler \\(GNU Binutils\\) (${version_pattern})" as_version ${as_output})
|
||||||
set(as_version ${CMAKE_MATCH_1})
|
set(as_version ${CMAKE_MATCH_1})
|
||||||
|
|
||||||
|
message(STATUS "Building ULP app ${ULP_APP_NAME}")
|
||||||
|
message(STATUS "ULP assembler version: ${as_version}")
|
||||||
|
|
||||||
# Check the supported assembler version
|
# Check the supported assembler version
|
||||||
file(STRINGS ${IDF_PATH}/components/ulp/toolchain_ulp_version.mk version_file_contents)
|
file(STRINGS ${IDF_PATH}/components/ulp/toolchain_ulp_version.mk version_file_contents)
|
||||||
string(REGEX MATCH "SUPPORTED_ULP_ASSEMBLER_VERSION = (${version_pattern})" as_supported_version ${version_file_contents})
|
string(REGEX MATCH "SUPPORTED_ULP_ASSEMBLER_VERSION = (${version_pattern})" as_supported_version ${version_file_contents})
|
||||||
|
@ -28,6 +28,9 @@ ULP_PREPROCESSOR_ARGS := \
|
|||||||
include $(IDF_PATH)/components/ulp/toolchain_ulp_version.mk
|
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')
|
ULP_AS_VER := $(shell $(ULP_AS) --version | sed -E -n 's|GNU assembler \(GNU Binutils\) ([a-z0-9\.-]+)|\1|gp')
|
||||||
|
|
||||||
|
$(info Building ULP app $(ULP_APP_NAME))
|
||||||
|
$(info ULP assembler version: $(ULP_AS_VER))
|
||||||
|
|
||||||
ifeq (,$(findstring $(ULP_AS_VER), $(SUPPORTED_ULP_ASSEMBLER_VERSION)))
|
ifeq (,$(findstring $(ULP_AS_VER), $(SUPPORTED_ULP_ASSEMBLER_VERSION)))
|
||||||
$(info WARNING: ULP assembler version $(ULP_AS_VER) is not supported.)
|
$(info WARNING: ULP assembler version $(ULP_AS_VER) is not supported.)
|
||||||
$(info Expected to see version: $(SUPPORTED_ULP_ASSEMBLER_VERSION))
|
$(info Expected to see version: $(SUPPORTED_ULP_ASSEMBLER_VERSION))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user