util/cse*: Add cse_helpers.{c,h}
This change moves `read_member` and `write_member` helper functions out of cse_fpt.c and cse_serger.c into cse_helpers.c to avoid duplication. BUG=b:189177186,b:189167923 Change-Id: I7b646b29c9058d892bb0fc9824ef1b4340d2510c Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58201 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
@@ -100,12 +100,14 @@ include $(top)/util/cbfstool/fpt_formats/Makefile.inc
|
||||
cse_fpt_obj :=
|
||||
cse_fpt_obj += cse_fpt.o
|
||||
cse_fpt_obj += common.o
|
||||
cse_fpt_obj += cse_helpers.o
|
||||
cse_fpt_obj += $(foreach var, $(fpt_formats_obj), $(var))
|
||||
|
||||
include $(top)/util/cbfstool/bpdt_formats/Makefile.inc
|
||||
cse_serger_obj :=
|
||||
cse_serger_obj += cse_serger.o
|
||||
cse_serger_obj += common.o
|
||||
cse_serger_obj += cse_helpers.o
|
||||
cse_serger_obj += $(foreach var, $(bpdt_formats_obj), $(var))
|
||||
|
||||
TOOLCFLAGS ?= -Werror -Wall -Wextra -Wshadow
|
||||
|
Reference in New Issue
Block a user