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:
parent
4b78aeec51
commit
896c8ee29b
1 changed files with 9 additions and 2 deletions
11
mk/tools.mk
11
mk/tools.mk
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue