From fc0056e8d5ab62adc17455c99864d9a974633a46 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 8 Nov 2020 20:36:18 -0700 Subject: patman: Drop unicode helper functions We don't need these now that everything uses Python 3. Remove them and the extra code in GetBytes() and ToBytes() too. Signed-off-by: Simon Glass --- tools/patman/settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/patman/settings.py') diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 8c10eab2645..60cdc1c102e 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -112,7 +112,7 @@ class _ProjectConfigParser(ConfigParser.SafeConfigParser): val = ConfigParser.SafeConfigParser.get( self, section, option, *args, **kwargs ) - return tools.ToUnicode(val) + return val def items(self, section, *args, **kwargs): """Extend SafeConfigParser to add project_section to section. @@ -147,8 +147,7 @@ class _ProjectConfigParser(ConfigParser.SafeConfigParser): item_dict = dict(top_items) item_dict.update(project_items) - return {(tools.ToUnicode(item), tools.ToUnicode(val)) - for item, val in item_dict.items()} + return {(item, val) for item, val in item_dict.items()} def ReadGitAliases(fname): """Read a git alias file. This is in the form used by git: -- cgit v1.2.3 From ddc44c2c920eb8e8ceab466a2df61884154e65bd Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Tue, 24 Nov 2020 18:14:53 +0100 Subject: patman: Add project-default for 'gcc' Add defaults for FSF/GNU projects, such as gcc, that provide sensible settings for those projects. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- tools/patman/settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/patman/settings.py') diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 60cdc1c102e..13c1ee4f569 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -23,7 +23,12 @@ _default_settings = { "u-boot": {}, "linux": { "process_tags": "False", - } + }, + "gcc": { + "process_tags": "False", + "add_signoff": "False", + "check_patch": "False", + }, } class _ProjectConfigParser(ConfigParser.SafeConfigParser): -- cgit v1.2.3