@@ -249,8 +249,10 @@ CC_rv32imac := $(CC_rv32)
249
249
250
250
# Determine the version of the RISC-V compiler. This is used to select the
251
251
# version of the libgcc library that is compatible.
252
- CC_rv32_version := $(shell $(TOOLCHAIN_rv32 )$(CC_rv32 ) -dumpfullversion)
253
- CC_rv32_version_major := $(shell echo $(CC_rv32_version ) | cut -f1 -d.)
252
+ ifneq ($(findstring rv32i,$(TOCK_ARCH_FAMILIES ) ) ,)
253
+ CC_rv32_version := $(shell $(TOOLCHAIN_rv32 )$(CC_rv32 ) -dumpfullversion)
254
+ CC_rv32_version_major := $(shell echo $(CC_rv32_version ) | cut -f1 -d.)
255
+ endif
254
256
255
257
# Match compiler version to support libtock-newlib versions.
256
258
ifeq ($(CC_rv32_version_major ) ,10)
@@ -393,8 +395,10 @@ CC_cortex-m7 := $(CC_cortex-m)
393
395
394
396
# Determine the version of the ARM compiler. This is used to select the version
395
397
# of the libgcc library that is compatible.
396
- CC_cortex-m_version := $(shell $(TOOLCHAIN_cortex-m )$(CC_cortex-m ) -dumpfullversion)
397
- CC_cortex-m_version_major := $(shell echo $(CC_cortex-m_version ) | cut -f1 -d.)
398
+ ifneq ($(findstring cortex-m,$(TOCK_ARCH_FAMILIES ) ) ,)
399
+ CC_cortex-m_version := $(shell $(TOOLCHAIN_cortex-m )$(CC_cortex-m ) -dumpfullversion)
400
+ CC_cortex-m_version_major := $(shell echo $(CC_cortex-m_version ) | cut -f1 -d.)
401
+ endif
398
402
399
403
# Match compiler version to support libtock-newlib versions.
400
404
ifeq ($(CC_cortex-m_version_major ) ,10)
@@ -680,12 +684,17 @@ ifneq ($(V),)
680
684
$(info **************************************************)
681
685
$(info Config :)
682
686
$(info GIT : $(shell git describe --always 2>&1) )
687
+ ifneq ($(findstring cortex-m,$(TOCK_ARCH_FAMILIES ) ) ,)
683
688
$(info $(TOOLCHAIN_cortex-m4 )$(CC_cortex-m4 ) --version : $(shell $(TOOLCHAIN_cortex-m4 )$(CC_cortex-m4 ) --version) )
689
+ endif
690
+ ifneq ($(findstring rv32i,$(TOCK_ARCH_FAMILIES ) ) ,)
684
691
$(info $(TOOLCHAIN_rv32i )$(CC_rv32i ) --version : $(shell $(TOOLCHAIN_rv32i )$(CC_rv32i ) --version) )
692
+ endif
685
693
$(info LAYOUT=$(LAYOUT))
686
694
$(info MAKEFLAGS=$(MAKEFLAGS))
687
695
$(info PACKAGE_NAME=$(PACKAGE_NAME))
688
696
$(info TOCK_ARCHS=$(TOCK_ARCHS))
697
+ $(info TOCK_ARCH_FAMILIES=$(TOCK_ARCH_FAMILIES))
689
698
$(info TOCK_TARGETS=$(TOCK_TARGETS))
690
699
$(info TOCK_USERLAND_BASE_DIR=$(TOCK_USERLAND_BASE_DIR))
691
700
$(info TOOLCHAIN=$(TOOLCHAIN))
0 commit comments