summaryrefslogtreecommitdiff
path: root/util/sconfig
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2012-10-09 22:28:56 +0300
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-06 21:59:21 +0100
commita93c3fe7f05f5ab440f377360e5149f7234abb73 (patch)
tree15504a6738234e79b5cad8e9abdbe43ceacc113a /util/sconfig
parentd635068ffaf97d5d94f3e2b2ccee409ed44b0b41 (diff)
Drop redundant CHIP_NAME in mainboard.c
Compose the name from Kconfig strings instead. As the field is for debug print use only, a minor change in the output should do no harm. The strings no longer include word "Mainboard". Change-Id: Ifd24f408271eb5a5d1a08a317512ef00cb537ee2 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/1635 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/sconfig')
-rw-r--r--util/sconfig/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index f066d7bad2..91d85fed87 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -419,6 +419,8 @@ static void pass1(FILE *fil, struct device *ptr)
fprintf(fil, "\t.sibling = &%s,\n", ptr->sibling->name);
fprintf(fil, "#ifndef __PRE_RAM__\n");
fprintf(fil, "\t.chip_ops = &%s_ops,\n", ptr->chip->name_underscore);
+ if (ptr->chip->chip == &mainboard)
+ fprintf(fil, "\t.name = mainboard_name,\n");
fprintf(fil, "#endif\n");
if (ptr->chip->chiph_exists)
fprintf(fil, "\t.chip_info = &%s_info_%d,\n", ptr->chip->name_underscore, ptr->chip->id);