mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Add support for OSPIF blockdevice
parent
dca2ec7e7a
commit
b99822628b
|
@ -8,6 +8,7 @@ add_library(mbed-storage-blockdevice INTERFACE)
|
||||||
add_library(mbed-storage-dataflash INTERFACE)
|
add_library(mbed-storage-dataflash INTERFACE)
|
||||||
add_library(mbed-storage-flashiap INTERFACE)
|
add_library(mbed-storage-flashiap INTERFACE)
|
||||||
add_library(mbed-storage-i2cee INTERFACE)
|
add_library(mbed-storage-i2cee INTERFACE)
|
||||||
|
add_library(mbed-storage-ospif INTERFACE)
|
||||||
add_library(mbed-storage-qspif INTERFACE)
|
add_library(mbed-storage-qspif INTERFACE)
|
||||||
add_library(mbed-storage-sd INTERFACE)
|
add_library(mbed-storage-sd INTERFACE)
|
||||||
add_library(mbed-storage-spif INTERFACE)
|
add_library(mbed-storage-spif INTERFACE)
|
||||||
|
|
|
@ -17,6 +17,10 @@ if("QSPIF" IN_LIST MBED_TARGET_LABELS)
|
||||||
add_subdirectory(COMPONENT_QSPIF)
|
add_subdirectory(COMPONENT_QSPIF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if("OSPIF" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
add_subdirectory(COMPONENT_OSPIF)
|
||||||
|
endif()
|
||||||
|
|
||||||
if("SD" IN_LIST MBED_TARGET_LABELS)
|
if("SD" IN_LIST MBED_TARGET_LABELS)
|
||||||
add_subdirectory(COMPONENT_SD)
|
add_subdirectory(COMPONENT_SD)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -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
|
||||||
|
)
|
Loading…
Reference in New Issue