From c8c3aca81846210c101ce326d0bb3c6417da5ef9 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 18 Jan 2018 22:20:25 +0100 Subject: autoport: Remove '-' from Kconfig options This won't compile since '-' is an operator in C. Change-Id: Icf900c959cbcbd0b07cd83a1f6866bf255fdcf01 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/23321 Tested-by: build bot (Jenkins) Reviewed-by: Christoph Pomaska Reviewed-by: Felix Held --- util/autoport/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'util') 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] } -- cgit v1.2.3