Skip to content

CMake: Add support for OSPIF blockdevice #14078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions storage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_library(mbed-storage-blockdevice INTERFACE)
add_library(mbed-storage-dataflash INTERFACE)
add_library(mbed-storage-flashiap INTERFACE)
add_library(mbed-storage-i2cee INTERFACE)
add_library(mbed-storage-ospif INTERFACE)
add_library(mbed-storage-qspif INTERFACE)
add_library(mbed-storage-sd INTERFACE)
add_library(mbed-storage-spif INTERFACE)
Expand Down
4 changes: 4 additions & 0 deletions storage/blockdevice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if("QSPIF" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(COMPONENT_QSPIF)
endif()

if("OSPIF" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(COMPONENT_OSPIF)
endif()

if("SD" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(COMPONENT_SD)
endif()
Expand Down
13 changes: 13 additions & 0 deletions storage/blockdevice/COMPONENT_OSPIF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

target_include_directories(mbed-storage-ospif
INTERFACE
include
include/OSPIF
)

target_sources(mbed-storage-ospif
INTERFACE
source/OSPIFBlockDevice.cpp
)