-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix portenta build, added core-m85.cmake/mk
- Loading branch information
Showing
4 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if (TOOLCHAIN STREQUAL "gcc") | ||
set(TOOLCHAIN_COMMON_FLAGS | ||
-mthumb | ||
-mcpu=cortex-m85 | ||
-mfloat-abi=hard | ||
-mfpu=fpv5-d16 | ||
) | ||
set(FREERTOS_PORT GCC_ARM_CM85_NTZ_NONSECURE CACHE INTERNAL "") | ||
|
||
elseif (TOOLCHAIN STREQUAL "clang") | ||
set(TOOLCHAIN_COMMON_FLAGS | ||
--target=arm-none-eabi | ||
-mcpu=cortex-m85 | ||
-mfpu=fpv5-d16 | ||
) | ||
set(FREERTOS_PORT GCC_ARM_CM85_NTZ_NONSECURE CACHE INTERNAL "") | ||
|
||
elseif (TOOLCHAIN STREQUAL "iar") | ||
set(TOOLCHAIN_COMMON_FLAGS | ||
--cpu cortex-m85 | ||
--fpu VFPv5_D16 | ||
) | ||
set(FREERTOS_PORT IAR_ARM_CM85_NTZ_NONSECURE CACHE INTERNAL "") | ||
|
||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ifeq ($(TOOLCHAIN),gcc) | ||
CFLAGS += \ | ||
-mthumb \ | ||
-mcpu=cortex-m85 \ | ||
-mfloat-abi=hard \ | ||
-mfpu=fpv5-d16 \ | ||
|
||
else ifeq ($(TOOLCHAIN),clang) | ||
CFLAGS += \ | ||
--target=arm-none-eabi \ | ||
-mcpu=cortex-m85 \ | ||
-mfpu=fpv5-d16 \ | ||
|
||
else ifeq ($(TOOLCHAIN),iar) | ||
CFLAGS += \ | ||
--cpu cortex-m85 \ | ||
--fpu VFPv5_D16 \ | ||
|
||
ASFLAGS += \ | ||
--cpu cortex-m85 \ | ||
--fpu VFPv5_D16 \ | ||
|
||
else | ||
$(error "TOOLCHAIN is not supported") | ||
endif | ||
|
||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM85_NTZ/non_secure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters