Skip to content

Commit

Permalink
fix failure logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nmschulte committed May 3, 2024
1 parent 8656dd4 commit 364d288
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions firmware/use_arm_gcc.mk
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
ifeq ($(TRGT),)
UNAME_SM := $(shell uname -sm)
$(info UNAME_SM: $(UNAME_SM))
KERNEL := $(firstword $(UNAME_SM))
MACHINE := $(lastword $(UNAME_SM))

ifeq ($(KERNEL),Darwin)
ifeq ($(firstword $(UNAME_SM)),Darwin)
COMPILER_PLATFORM = arm-gnu-toolchain-11.3.rel1-darwin-x86_64-arm-none-eabi
else ifeq ($(KERNEL),Linux)
ifeq ($(MACHINE),x86_64)
COMPILER_PLATFORM = arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi
endif
else ifeq ($(UNAME_SM),Linux x86_64)
COMPILER_PLATFORM = arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi
else
$(error Looks like your platform, $(UNAME_SM), doesn't have a supported compiler!)
endif
Expand Down

0 comments on commit 364d288

Please sign in to comment.