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:
Anas Nashif 2017-06-30 07:10:28 -04:00 committed by Kumar Gala
commit da7cc84655
11 changed files with 26 additions and 19 deletions

View file

@ -129,12 +129,6 @@ config TOOLCHAIN_VARIANT
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
bool
prompt "Task-aware debugging with GDB"

View file

@ -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_REBOOT) += reboot.o

View file

@ -1,25 +1,26 @@
# Kconfig - Subsystem configuration options
#
# Copyright (c) 2016 Intel Corporation
# Copyright (c) 2016-2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
source "subsys/fs/Kconfig"
source "subsys/usb/Kconfig"
source "subsys/bluetooth/Kconfig"
source "subsys/console/Kconfig"
source "subsys/disk/Kconfig"
source "subsys/net/Kconfig"
source "subsys/logging/Kconfig"
source "subsys/cpp/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/usb/Kconfig"

View file

@ -5,5 +5,6 @@ obj-$(CONFIG_NET_BUF) += net/
obj-$(CONFIG_CONSOLE_SHELL) += shell/
obj-$(CONFIG_CONSOLE_PULL) += console/
obj-$(CONFIG_DISK_ACCESS) += disk/
obj-$(CONFIG_CPLUSPLUS) += cpp/
obj-y += logging/
obj-y += debug/

7
subsys/cpp/Kconfig Normal file
View 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
View file

@ -0,0 +1,7 @@
obj-y += cpp_virtual.o \
cpp_vtable.o \
cpp_init_array.o \
cpp_ctors.o \
cpp_dtors.o