From 0f28460efbf4548c8bcfc2b20419f8375cd231c7 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 25 Jun 2003 03:20:22 +0000 Subject: more fixes but it appears that options are not picking up the right values. I set USE_FALLBACK_IMAGE to 1 in the top-level Config, but when it is tested in arima/hdama/Config.lb, it is acting as though it is zero. Also added a print command so it is easier to trace 'if' behavior. Usage: print "string" git-svn-id: svn://svn.coreboot.org/coreboot/trunk@913 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/newconfig/config.g | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/newconfig') diff --git a/util/newconfig/config.g b/util/newconfig/config.g index 0b96569889..e6a3787f62 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -955,6 +955,7 @@ parser Config: token OPTION: 'option' token PAYLOAD: 'payload' token PMC: 'pmc' + token PRINT: 'print' token REGISTER: 'register' token SOUTHBRIDGE: 'southbridge' token SUPERIO: 'superio' @@ -1084,6 +1085,7 @@ parser Config: | dir<> {{ return dir}} | ldscript<> {{ return ldscript}} | payload<> {{ return payload}} + | pprint<> {{ return pprint}} # ENTRY for parsing Config.lb file rule cfgfile: (uses<<1>>)* (stmt<<1>>)* @@ -1104,6 +1106,8 @@ parser Config: rule opstmt: option<<1>> | opif + # print clashes with a python keyword + rule pprint<>: PRINT STR {{ if (C): print "%s\n"%STR}} # ENTRY for parsing a delayed value rule delexpr: "{" expr "}" {{ return expr }} -- cgit v1.2.3