[Make] Only check for ARM-gcc version if the SDK is installed

This commit is contained in:
Kenn Sebesta 2022-03-12 13:21:50 -05:00
parent e9d6fd5842
commit 4a5925668a
1 changed files with 3 additions and 2 deletions

View File

@ -216,6 +216,9 @@ gtest_clean:
ifneq ("$(wildcard $(ARM_SDK_DIR))","")
ARM_SDK_PREFIX := $(ARM_SDK_DIR)/bin/arm-none-eabi-
# Get the ARM GCC version
ARM_GCC_VERSION := $(shell $(ARM_SDK_PREFIX)gcc -dumpversion)
else
ifneq ($(MAKECMDGOALS),arm_sdk_install)
$(info **WARNING** ARM-SDK not in $(ARM_SDK_DIR) Please run 'make arm_sdk_install')
@ -224,8 +227,6 @@ else
ARM_SDK_PREFIX ?= arm-none-eabi-
endif
# Get the ARM GCC version
ARM_GCC_VERSION := $(shell $(ARM_SDK_PREFIX)gcc -dumpversion)
# Get the git branch name, commit hash, and clean/dirty state
GIT_BRANCH_NAME := $(shell git rev-parse --abbrev-ref HEAD)