Skip to content

Commit

Permalink
Support for apple silicon (M-series) chip. (Right version of Arm GNU …
Browse files Browse the repository at this point in the history
…toolchain) (betaflight#14065)
  • Loading branch information
timmyfpv authored Dec 6, 2024
1 parent 4b78aee commit 896c8ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions mk/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,15 @@ ifeq ($(OSFAMILY), linux)
endif

ifeq ($(OSFAMILY), macosx)
ARM_SDK_URL := https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz
ARM_SDK_DIR := $(ARM_SDK_BASE_DIR)-darwin-x86_64-arm-none-eabi
# Check for Apple Silicon
UNAME_PROCESSOR := $(shell uname -p)
ifeq ($(UNAME_PROCESSOR), arm)
ARM_SDK_URL := https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi.tar.xz
ARM_SDK_DIR := $(ARM_SDK_BASE_DIR)-darwin-arm64-arm-none-eabi
else
ARM_SDK_URL := https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz
ARM_SDK_DIR := $(ARM_SDK_BASE_DIR)-darwin-x86_64-arm-none-eabi
endif
endif

ifeq ($(OSFAMILY), windows)
Expand Down

0 comments on commit 896c8ee

Please sign in to comment.