summaryrefslogtreecommitdiff
path: root/util/autoport
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2018-01-18 22:20:25 +0100
committerArthur Heymans <arthur@aheymans.xyz>2018-01-20 14:35:26 +0000
commitc8c3aca81846210c101ce326d0bb3c6417da5ef9 (patch)
tree31d58131d008f18f49b6479de06e1a7656b5c9a5 /util/autoport
parent7214141f5e38692f826e05a5bb10e3e46a8905af (diff)
downloadcoreboot-c8c3aca81846210c101ce326d0bb3c6417da5ef9.tar.xz
autoport: Remove '-' from Kconfig options
This won't compile since '-' is an operator in C. Change-Id: Icf900c959cbcbd0b07cd83a1f6866bf255fdcf01 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/23321 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Christoph Pomaska <cp_public@posteo.de> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/autoport')
-rw-r--r--util/autoport/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/autoport/main.go b/util/autoport/main.go
index 1d507802c9..6e5c93cb54 100644
--- a/util/autoport/main.go
+++ b/util/autoport/main.go
@@ -147,6 +147,7 @@ func sanitize(inp string) string {
result := strings.ToLower(inp)
result = strings.Replace(result, " ", "_", -1)
result = strings.Replace(result, ",", "_", -1)
+ result = strings.Replace(result, "-", "_", -1)
for strings.HasSuffix(result, ".") {
result = result[0 : len(result)-1]
}