summaryrefslogtreecommitdiff
path: root/util/sconfig/sconfig.y
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-04-08 12:46:18 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-04-08 12:46:18 +0000
commit2bbd0c29261d985e21dc69a731c895ee2791eb4b (patch)
tree8e9e638d1ba41bc7a8241a8fda535ee7a99004f9 /util/sconfig/sconfig.y
parent109a1de1ef8d79ebdae79e94638bcce545d8a8dd (diff)
sconfig: Mangle - to _ for struct names, too.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5375 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/sconfig/sconfig.y')
-rwxr-xr-xutil/sconfig/sconfig.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sconfig/sconfig.y b/util/sconfig/sconfig.y
index 180ea8a735..06fd206646 100755
--- a/util/sconfig/sconfig.y
+++ b/util/sconfig/sconfig.y
@@ -163,6 +163,7 @@ chip: CHIP STRING /* == path */ {
char *c;
for (c = $<device>$->name_underscore; *c; c++) {
if (*c == '/') *c = '_';
+ if (*c == '-') *c = '_';
}
$<device>$->type = chip;
$<device>$->chip = $<device>$;