1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Support for apple silicon (M-series) chip. (Right version of Arm GNU toolchain) (#14065)

This commit is contained in:
timmyfpv 2024-12-06 21:25:39 +01:00 committed by GitHub
parent 4b78aeec51
commit 896c8ee29b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)