Skip to content

Commit 9c0cfa9

Browse files
authored
Merge pull request #14078 from hugueskamba/hk_rename_ospif_include_dir
CMake: Add support for OSPIF blockdevice
2 parents ce825bc + b998226 commit 9c0cfa9

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

storage/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ add_library(mbed-storage-blockdevice INTERFACE)
88
add_library(mbed-storage-dataflash INTERFACE)
99
add_library(mbed-storage-flashiap INTERFACE)
1010
add_library(mbed-storage-i2cee INTERFACE)
11+
add_library(mbed-storage-ospif INTERFACE)
1112
add_library(mbed-storage-qspif INTERFACE)
1213
add_library(mbed-storage-sd INTERFACE)
1314
add_library(mbed-storage-spif INTERFACE)

storage/blockdevice/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ if("QSPIF" IN_LIST MBED_TARGET_LABELS)
1717
add_subdirectory(COMPONENT_QSPIF)
1818
endif()
1919

20+
if("OSPIF" IN_LIST MBED_TARGET_LABELS)
21+
add_subdirectory(COMPONENT_OSPIF)
22+
endif()
23+
2024
if("SD" IN_LIST MBED_TARGET_LABELS)
2125
add_subdirectory(COMPONENT_SD)
2226
endif()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
target_include_directories(mbed-storage-ospif
5+
INTERFACE
6+
include
7+
include/OSPIF
8+
)
9+
10+
target_sources(mbed-storage-ospif
11+
INTERFACE
12+
source/OSPIFBlockDevice.cpp
13+
)

0 commit comments

Comments
 (0)