summaryrefslogtreecommitdiff
path: root/util/cbfstool/fmd_scanner.l
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2016-06-28 20:45:34 +0200
committerPatrick Georgi <pgeorgi@google.com>2016-07-04 12:17:51 +0200
commit2b80734811ee056f0447bab359ec5961e90101b7 (patch)
tree5e858dca3a03f8b6b54c9486bcd4e69f1de7da1e /util/cbfstool/fmd_scanner.l
parente46dbcc53a10491f53a0c80c4e3c59404982b42d (diff)
fmaptool: Accept hex values with uppercase letters
Due to a newer flex version with which the scanner was recreated, we also have to make the compiler less strict on the generated code. Change-Id: I3758c0dcb2f5661d072b54a30d6a4ebe094854e6 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/15482 Tested-by: build bot (Jenkins) Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/cbfstool/fmd_scanner.l')
-rw-r--r--util/cbfstool/fmd_scanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/fmd_scanner.l b/util/cbfstool/fmd_scanner.l
index efcd342290..82969594a7 100644
--- a/util/cbfstool/fmd_scanner.l
+++ b/util/cbfstool/fmd_scanner.l
@@ -34,7 +34,7 @@ MULTIPLIER [KMG]
0{MULTIPLIER}? |
[1-9][0-9]*{MULTIPLIER}? return parse_integer(yytext, 10);
0[0-9]+{MULTIPLIER}? return OCTAL;
-0[xX][0-9a-f]+{MULTIPLIER}? return parse_integer(yytext + 2, 16);
+0[xX][0-9a-fA-F]+{MULTIPLIER}? return parse_integer(yytext + 2, 16);
[^#@{}()[:space:]]* return copy_string(yytext);
. return *yytext;