diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-04-26 20:47:51 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-04-26 20:47:51 +0200 |
commit | d781b9b9c61a4ea3934566f06b5760f483a1ed81 (patch) | |
tree | ecede0e40d58de7e8e13d4bfebd7b19c174c30a9 /core/kconfig | |
parent | 87ce34145822c55579b8b05d7bc0335a53b3ac62 (diff) | |
download | embtoolkit-d781b9b9c61a4ea3934566f06b5760f483a1ed81.tar.gz embtoolkit-d781b9b9c61a4ea3934566f06b5760f483a1ed81.tar.bz2 embtoolkit-d781b9b9c61a4ea3934566f06b5760f483a1ed81.tar.xz |
RootFS: OpenRC/inittab: give ability to configure tty console
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/kconfig')
-rw-r--r-- | core/kconfig/rootfs/rootfs-config.kconfig | 59 | ||||
-rw-r--r-- | core/kconfig/rootfs/rootfs.kconfig | 1 |
2 files changed, 60 insertions, 0 deletions
diff --git a/core/kconfig/rootfs/rootfs-config.kconfig b/core/kconfig/rootfs/rootfs-config.kconfig new file mode 100644 index 0000000..f3f975a --- /dev/null +++ b/core/kconfig/rootfs/rootfs-config.kconfig @@ -0,0 +1,59 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2014 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file rootfs-config.kconfig +# \brief Various RootFS configuration parameters +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date April 2014 +################################################################################ + + +menu "Root filesystem configuration" + +comment "Console configuration" +config EMBTK_ROOTFS_TTY + string "tty device for console" + default "ttyS0" + +choice + prompt "tty device baudrate" + config EMBTK_ROOTFS_TTY_BAUDRATE_KERNEL + bool "Baudrate set in kernel" + config EMBTK_ROOTFS_TTY_BAUDRATE_9600 + bool "9600" + config EMBTK_ROOTFS_TTY_BAUDRATE_19200 + bool "19200" + config EMBTK_ROOTFS_TTY_BAUDRATE_38400 + bool "38400" + config EMBTK_ROOTFS_TTY_BAUDRATE_57600 + bool "57600" + config EMBTK_ROOTFS_TTY_BAUDRATE_115200 + bool "115200" +endchoice +config EMBTK_ROOTFS_TTY_BAUDRATE + string + default "0" if EMBTK_ROOTFS_TTY_BAUDRATE_KERNEL + default "9600" if EMBTK_ROOTFS_TTY_BAUDRATE_9600 + default "19200" if EMBTK_ROOTFS_TTY_BAUDRATE_19200 + default "38400" if EMBTK_ROOTFS_TTY_BAUDRATE_38400 + default "57600" if EMBTK_ROOTFS_TTY_BAUDRATE_57600 + default "115200" if EMBTK_ROOTFS_TTY_BAUDRATE_115200 + + +endmenu diff --git a/core/kconfig/rootfs/rootfs.kconfig b/core/kconfig/rootfs/rootfs.kconfig index 50bb718..c217bc4 100644 --- a/core/kconfig/rootfs/rootfs.kconfig +++ b/core/kconfig/rootfs/rootfs.kconfig @@ -23,6 +23,7 @@ # \date December 2013 ################################################################################ +source "core/kconfig/rootfs/rootfs-config.kconfig" source "core/kconfig/rootfs/fs.kconfig" source "packages/htools/squashfs/squashfs.kconfig" source "core/kconfig/packages.kconfig" |