-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #778 from tinyboxvk/patch-rpi5
Adds toolchain file for Raspberry Pi 5
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 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
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,21 @@ | ||
# | ||
# This file is part of VOLK | ||
# | ||
# SPDX-License-Identifier: LGPL-3.0-or-later | ||
# | ||
|
||
######################################################################## | ||
# Toolchain file for building native on a ARM Cortex A76 w/ NEON | ||
# Usage: cmake -DCMAKE_TOOLCHAIN_FILE=<this file> <source directory> | ||
######################################################################## | ||
set(CMAKE_CXX_COMPILER g++) | ||
set(CMAKE_C_COMPILER gcc) | ||
set(CMAKE_CXX_FLAGS | ||
"-march=armv8.2-a -mtune=cortex-a76 -mfpu=neon-fp-armv8 -mfloat-abi=hard" | ||
CACHE STRING "" FORCE) | ||
set(CMAKE_C_FLAGS | ||
${CMAKE_CXX_FLAGS} | ||
CACHE STRING "" FORCE) #same flags for C sources | ||
set(CMAKE_ASM_FLAGS | ||
"${CMAKE_CXX_FLAGS} -mthumb -g" | ||
CACHE STRING "" FORCE) #same flags for asm sources |