From 6315274cc89642bad0ff5518b0907a569814ac4c Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 22 Apr 2009 22:25:45 +0000 Subject: This patch fixes the parser. '|' has special meaning so [|] is used. Signed-off-by: Myles Watson Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4187 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/config/nofailovercalculation.lb | 5 ----- src/config/nofailovercalculation128.lb | 5 ----- util/newconfig/config.g | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/config/nofailovercalculation.lb b/src/config/nofailovercalculation.lb index cab1a7f219..2705326499 100644 --- a/src/config/nofailovercalculation.lb +++ b/src/config/nofailovercalculation.lb @@ -31,8 +31,3 @@ default _ROMBASE = ( CONFIG_ROM_PAYLOAD_START + PAYLOAD_SIZE ) ## default XIP_ROM_SIZE = 64 * 1024 default XIP_ROM_BASE = ( _ROMBASE - XIP_ROM_SIZE + ROM_IMAGE_SIZE ) - -## This is needed to work around a parser bug. -if USE_FALLBACK_IMAGE -end - diff --git a/src/config/nofailovercalculation128.lb b/src/config/nofailovercalculation128.lb index a817a68679..b000e78864 100644 --- a/src/config/nofailovercalculation128.lb +++ b/src/config/nofailovercalculation128.lb @@ -31,8 +31,3 @@ default _ROMBASE = ( CONFIG_ROM_PAYLOAD_START + PAYLOAD_SIZE ) ## default XIP_ROM_SIZE = 128 * 1024 default XIP_ROM_BASE = ( _ROMBASE - XIP_ROM_SIZE + ROM_IMAGE_SIZE ) - -## This is needed to work around a parser bug. -if USE_FALLBACK_IMAGE -end - diff --git a/util/newconfig/config.g b/util/newconfig/config.g index a8130c8c66..b8bd38c857 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -1709,7 +1709,7 @@ parser Config: rule expr: logical {{ l = logical }} ( "&&" logical {{ l = l and logical }} - | "||" logical {{ l = l or logical }} + | "[|][|]" logical {{ l = l or logical }} )* {{ return l }} rule logical: factor {{ n = factor }} -- cgit v1.2.3