mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +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
|
@ -31,9 +31,16 @@ ifeq ($(OSFAMILY), linux)
|
|||
endif
|
||||
|
||||
ifeq ($(OSFAMILY), macosx)
|
||||
# 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)
|
||||
ARM_SDK_URL := https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-mingw-w64-i686-arm-none-eabi.zip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue