lib: move ring_buffer Kconfig to lib/, cleanup lib/Kconfig

* ring_bufffer is in lib, so move the Kconfig out of the kernel.
* move one Kconfig used for json to lib/Kconfig alongside other
  Kconfigs.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-02-25 21:54:04 -05:00 committed by Anas Nashif
commit bb64ec2921
3 changed files with 19 additions and 29 deletions

View file

@ -451,15 +451,6 @@ config XIP
supply a linker command file when building your image. Enabling this
option increases both the code and data footprint of the image.
config RING_BUFFER
bool
prompt "Enable ring buffers"
default n
help
Enable usage of ring buffers. This is similar to kernel FIFOs but ring
buffers manage their own buffer memory and can store arbitrary data.
For optimal performance, use buffer sizes that are a power of 2.
menu "Initialization Priorities"
config KERNEL_INIT_PRIORITY_OBJECTS

View file

@ -6,4 +6,22 @@
source "lib/libc/Kconfig"
source "lib/json/Kconfig"
menu "Additional libraries"
config JSON_LIBRARY
bool
default N
prompt "Build JSON library"
help
Build a minimal JSON parsing/encoding library. Used by sample
applications such as the NATS client.
config RING_BUFFER
bool
prompt "Enable ring buffers"
default n
help
Enable usage of ring buffers. This is similar to kernel FIFOs but ring
buffers manage their own buffer memory and can store arbitrary data.
For optimal performance, use buffer sizes that are a power of 2.
endmenu

View file

@ -1,19 +0,0 @@
# Kconfig - JSON library
#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menu "Additional libraries"
config JSON_LIBRARY
bool
default N
prompt "Build JSON library"
help
Build a minimal JSON parsing/encoding library. Used by sample
applications such as the NATS client.
endmenu