portability: move cmsis APIs to subsys/portability

Move cmsis OS apis under subsystem/portability. Those are not libraries
and only serve to provide a level of abstraction using the CMSIS OS APIs
to existing Zephyr interfaces.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-26 09:30:06 -04:00
parent 077447a52b
commit a15f32f58c
30 changed files with 17 additions and 6 deletions

View file

@ -4,8 +4,6 @@ if(NOT CONFIG_EXTERNAL_LIBC)
add_subdirectory(libc)
add_subdirectory(posix)
endif()
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V1 cmsis_rtos_v1)
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V2 cmsis_rtos_v2)
add_subdirectory(gui)
add_subdirectory(os)
add_subdirectory(util)

View file

@ -5,10 +5,6 @@ source "lib/libc/Kconfig"
menu "Additional libraries"
source "lib/cmsis_rtos_v1/Kconfig"
source "lib/cmsis_rtos_v2/Kconfig"
source "lib/gui/Kconfig"
source "lib/os/Kconfig"

View file

@ -19,6 +19,7 @@ add_subdirectory(random)
add_subdirectory(storage)
add_subdirectory_ifdef(CONFIG_SETTINGS settings)
add_subdirectory(fb)
add_subdirectory(portability)
add_subdirectory(power)
add_subdirectory(stats)
add_subdirectory(task_wdt)

View file

@ -38,6 +38,8 @@ source "subsys/modbus/Kconfig"
source "subsys/net/Kconfig"
source "subsys/portability/Kconfig"
source "subsys/power/Kconfig"
source "subsys/shell/Kconfig"

View file

@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V1 cmsis_rtos_v1)
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V2 cmsis_rtos_v2)

View file

@ -0,0 +1,10 @@
# Copyright (c) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menu "Portability"
source "subsys/portability/cmsis_rtos_v1/Kconfig"
source "subsys/portability/cmsis_rtos_v2/Kconfig"
endmenu