summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-09-07 20:21:16 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-09-21 08:13:08 +0000
commit8c6d1610d1eb64695daecdd6704b99be15196fd9 (patch)
tree0526cd1c9c0fe325345bc5f2dd05ef9edf343e99
parent5a401ae26215ee2fdb63e9b2d5e49f2df528979e (diff)
util/autoport: Always output quoted Kconfig string
Change-Id: I2076af9c70b626673a83af9abf464d376cda711b Signed-off-by: Iru Cai <mytbk920423@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45463 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--util/autoport/main.go18
1 files changed, 1 insertions, 17 deletions
diff --git a/util/autoport/main.go b/util/autoport/main.go
index b2334e2b62..1a9050abd8 100644
--- a/util/autoport/main.go
+++ b/util/autoport/main.go
@@ -104,7 +104,6 @@ var IOAPICIRQs map[PCIAddr]IOAPICIRQ = map[PCIAddr]IOAPICIRQ{}
var KconfigBool map[string]bool = map[string]bool{}
var KconfigComment map[string]string = map[string]string{}
var KconfigString map[string]string = map[string]string{}
-var KconfigStringUnquoted map[string]string = map[string]string{}
var KconfigHex map[string]uint32 = map[string]uint32{}
var KconfigInt map[string]int = map[string]int{}
var ROMSizeKB = 0
@@ -571,21 +570,6 @@ config %s%s
}
keys = nil
- for name, _ := range KconfigStringUnquoted {
- keys = append(keys, name)
- }
-
- sort.Strings(keys)
-
- for _, name := range keys {
- fmt.Fprintf(kc, `
-config %s%s
- string
- default %s
-`, name, makeComment(name), KconfigStringUnquoted[name])
- }
-
- keys = nil
for name, _ := range KconfigString {
keys = append(keys, name)
}
@@ -730,7 +714,7 @@ func main() {
ctx.MoboID = ctx.SaneVendor + "/" + sanitize(ctx.Model)
ctx.KconfigName = "BOARD_" + strings.ToUpper(ctx.SaneVendor+"_"+sanitize(ctx.Model))
ctx.BaseDirectory = *FlagOutDir + MoboDir + ctx.MoboID
- KconfigStringUnquoted["MAINBOARD_DIR"] = ctx.MoboID
+ KconfigString["MAINBOARD_DIR"] = ctx.MoboID
KconfigString["MAINBOARD_PART_NUMBER"] = ctx.Model
os.MkdirAll(ctx.BaseDirectory, 0700)