From a0cc5a697ce13dece6833dca41913fe5c467d3d3 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 30 May 2018 23:46:16 -0700 Subject: util/sconfig: Re-factor emitting of headers to static.c This change removes call to add_header from parsing functions and moves it to a local function within main.c. It also adds a new function emit_headers that is responsible for creating the linked list for chip headers and emitting those to static.c BUG=b:80081934 TEST=Verified that static.c for all files compiled using abuild is the same with and without this change. Change-Id: I24d526e81323115d3cc927242a4b9e49414afbe0 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/26726 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- util/sconfig/sconfig.tab.c_shipped | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'util/sconfig/sconfig.tab.c_shipped') diff --git a/util/sconfig/sconfig.tab.c_shipped b/util/sconfig/sconfig.tab.c_shipped index 637927a8b2..f8d1943de8 100644 --- a/util/sconfig/sconfig.tab.c_shipped +++ b/util/sconfig/sconfig.tab.c_shipped @@ -487,8 +487,8 @@ static const yytype_uint8 yytranslate[] = static const yytype_uint8 yyrline[] = { 0, 36, 36, 36, 38, 38, 38, 38, 40, 40, - 40, 40, 40, 40, 42, 42, 52, 52, 64, 67, - 70, 73, 76 + 40, 40, 40, 40, 42, 42, 51, 51, 63, 66, + 69, 72, 75 }; #endif @@ -1311,7 +1311,6 @@ yyreduce: { cur_chip = chip_dequeue_tail(); - add_header((yyvsp[-2].chip)); } break; -- cgit v1.2.3