subsystem: cleanup misc and make cpp a subsystem
Move a way from misc/ and put in its own subsystem to allow enhancements in the future and make it a core part of Zephyr, not just something misc. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
4f62c07960
commit
da7cc84655
11 changed files with 26 additions and 19 deletions
|
@ -129,12 +129,6 @@ config TOOLCHAIN_VARIANT
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
config CPLUSPLUS
|
|
||||||
bool "Enable C++ support for the application"
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
This option enables the use of applications built with C++.
|
|
||||||
|
|
||||||
config GDB_INFO
|
config GDB_INFO
|
||||||
bool
|
bool
|
||||||
prompt "Task-aware debugging with GDB"
|
prompt "Task-aware debugging with GDB"
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
|
|
||||||
obj-$(CONFIG_CPLUSPLUS) += cpp_virtual.o cpp_vtable.o \
|
|
||||||
cpp_init_array.o cpp_ctors.o cpp_dtors.o
|
|
||||||
|
|
||||||
obj-$(CONFIG_PRINTK) += printk.o
|
obj-$(CONFIG_PRINTK) += printk.o
|
||||||
|
|
||||||
obj-$(CONFIG_REBOOT) += reboot.o
|
obj-$(CONFIG_REBOOT) += reboot.o
|
||||||
|
|
|
@ -1,25 +1,26 @@
|
||||||
# Kconfig - Subsystem configuration options
|
# Kconfig - Subsystem configuration options
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 Intel Corporation
|
# Copyright (c) 2016-2017 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
source "subsys/fs/Kconfig"
|
|
||||||
|
|
||||||
source "subsys/usb/Kconfig"
|
|
||||||
|
|
||||||
source "subsys/bluetooth/Kconfig"
|
source "subsys/bluetooth/Kconfig"
|
||||||
|
|
||||||
source "subsys/console/Kconfig"
|
source "subsys/console/Kconfig"
|
||||||
|
|
||||||
source "subsys/disk/Kconfig"
|
source "subsys/cpp/Kconfig"
|
||||||
|
|
||||||
source "subsys/net/Kconfig"
|
|
||||||
|
|
||||||
source "subsys/logging/Kconfig"
|
|
||||||
|
|
||||||
source "subsys/debug/Kconfig"
|
source "subsys/debug/Kconfig"
|
||||||
|
|
||||||
|
source "subsys/disk/Kconfig"
|
||||||
|
|
||||||
|
source "subsys/fs/Kconfig"
|
||||||
|
|
||||||
|
source "subsys/logging/Kconfig"
|
||||||
|
|
||||||
|
source "subsys/net/Kconfig"
|
||||||
|
|
||||||
source "subsys/shell/Kconfig"
|
source "subsys/shell/Kconfig"
|
||||||
|
|
||||||
|
source "subsys/usb/Kconfig"
|
||||||
|
|
|
@ -5,5 +5,6 @@ obj-$(CONFIG_NET_BUF) += net/
|
||||||
obj-$(CONFIG_CONSOLE_SHELL) += shell/
|
obj-$(CONFIG_CONSOLE_SHELL) += shell/
|
||||||
obj-$(CONFIG_CONSOLE_PULL) += console/
|
obj-$(CONFIG_CONSOLE_PULL) += console/
|
||||||
obj-$(CONFIG_DISK_ACCESS) += disk/
|
obj-$(CONFIG_DISK_ACCESS) += disk/
|
||||||
|
obj-$(CONFIG_CPLUSPLUS) += cpp/
|
||||||
obj-y += logging/
|
obj-y += logging/
|
||||||
obj-y += debug/
|
obj-y += debug/
|
||||||
|
|
7
subsys/cpp/Kconfig
Normal file
7
subsys/cpp/Kconfig
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
config CPLUSPLUS
|
||||||
|
bool "Enable C++ support for the application"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
This option enables the use of applications built with C++.
|
||||||
|
|
7
subsys/cpp/Makefile
Normal file
7
subsys/cpp/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
obj-y += cpp_virtual.o \
|
||||||
|
cpp_vtable.o \
|
||||||
|
cpp_init_array.o \
|
||||||
|
cpp_ctors.o \
|
||||||
|
cpp_dtors.o
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue