[kernel-team] 01/04: kconfigeditor2: Define types for string, int and hex config entries
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sat Jan 28 03:15:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository kernel-team.
commit 3f4e7d97b541d5777511b97ca426bf385aba2386
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sat Jan 28 02:17:34 2017 +0000
kconfigeditor2: Define types for string, int and hex config entries
---
utils/kconfigeditor2/kconfigeditor/kconfig/menu/__init__.py | 3 +++
utils/kconfigeditor2/kconfigeditor/kconfig/menu/file.py | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/utils/kconfigeditor2/kconfigeditor/kconfig/menu/__init__.py b/utils/kconfigeditor2/kconfigeditor/kconfig/menu/__init__.py
index 3a08bbc..b0294b5 100644
--- a/utils/kconfigeditor2/kconfigeditor/kconfig/menu/__init__.py
+++ b/utils/kconfigeditor2/kconfigeditor/kconfig/menu/__init__.py
@@ -9,6 +9,9 @@ class MenuEntryChoice(list):
class MenuEntryConfig(object):
TYPE_BOOL = 1
TYPE_TRISTATE = 2
+ TYPE_STRING = 3
+ TYPE_INT_DEC = 4
+ TYPE_INT_HEX = 5
def __init__(self, name, type=None, prompt=None):
self.name, self.type, self.prompt = name, type, prompt
diff --git a/utils/kconfigeditor2/kconfigeditor/kconfig/menu/file.py b/utils/kconfigeditor2/kconfigeditor/kconfig/menu/file.py
index 443d87e..a780706 100644
--- a/utils/kconfigeditor2/kconfigeditor/kconfig/menu/file.py
+++ b/utils/kconfigeditor2/kconfigeditor/kconfig/menu/file.py
@@ -248,14 +248,14 @@ $"""
_BlockHelp(self, ind)
def process_hex(self, text, ind):
- # TODO
+ self.entry.type = MenuEntryConfig.TYPE_INT_HEX
self._process_prompt(text, ind)
def process_imply(self, text, ind):
_Expression(self, text)
def process_int(self, text, ind):
- # TODO
+ self.entry.type = MenuEntryConfig.TYPE_INT_DEC
self._process_prompt(text, ind)
def process_option(self, text, ind):
@@ -274,7 +274,7 @@ $"""
_Expression(self, text)
def process_string(self, text, ind):
- # TODO
+ self.entry.type = MenuEntryConfig.TYPE_STRING
self._process_prompt(text, ind)
def process_tristate(self, text, ind):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git
More information about the Kernel-svn-changes
mailing list