-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gergely Korcsák <gergely.korcsak@arm.com> Change-Id: Id1ac828e2fe034cb1b49325e31b42ef6c12421a2
- Loading branch information
1 parent
1249f0d
commit 3d54aca
Showing
57 changed files
with
177 additions
and
31,158 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
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,36 @@ | ||
#------------------------------------------------------------------------------- | ||
# Copyright (c) 2024, Arm Limited. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
#------------------------------------------------------------------------------- | ||
|
||
cmake_minimum_required(VERSION 3.15) | ||
|
||
include(FetchContent) | ||
set(FETCHCONTENT_QUIET FALSE) | ||
|
||
# Default configuration of CMSIS repository | ||
set(CMSIS_PATH "DOWNLOAD" CACHE PATH "Path to cmsis (or DOWNLOAD to fetch automatically") | ||
set(CMSIS_TAG "v6.0.0" CACHE STRING "The version of cmsis to use") | ||
|
||
fetch_remote_library( | ||
LIB_NAME cmsis | ||
LIB_SOURCE_PATH_VAR CMSIS_PATH | ||
LIB_PATCH_DIR ${CMAKE_CURRENT_LIST_DIR} | ||
LIB_BASE_DIR "${CMAKE_BINARY_DIR}/lib/ext" | ||
FETCH_CONTENT_ARGS | ||
GIT_REPOSITORY https://github.com/ARM-software/CMSIS_6.git | ||
GIT_TAG ${CMSIS_TAG} | ||
GIT_PROGRESS TRUE | ||
) | ||
|
||
add_library(cmsis INTERFACE) | ||
|
||
set_target_properties(cmsis PROPERTIES EXCLUDE_FROM_ALL TRUE) | ||
|
||
target_include_directories(cmsis | ||
INTERFACE | ||
$<BUILD_INTERFACE:${CMSIS_PATH}/CMSIS/Core/Include> | ||
$<BUILD_INTERFACE:${CMSIS_PATH}/CMSIS/Core/Include/m-profile> | ||
) |
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
Oops, something went wrong.