summaryrefslogtreecommitdiffstats
path: root/src/commonlib/Makefile.inc
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-12-15 13:33:51 -0600
committerAaron Durbin <adurbin@chromium.org>2016-01-06 01:11:19 +0100
commit295d58bda85ce30724a3fff87d60b323373f6e5f (patch)
tree7bdd1cf6a886bc11ab313d9b235aa5cb00bdaf8d /src/commonlib/Makefile.inc
parent990ab7efe5d0eddb96542042bf5106811365e34a (diff)
downloadcoreboot-295d58bda85ce30724a3fff87d60b323373f6e5f.tar.gz
coreboot-295d58bda85ce30724a3fff87d60b323373f6e5f.tar.bz2
coreboot-295d58bda85ce30724a3fff87d60b323373f6e5f.zip
commonlib: Add common cbfs parsing logic to coreboot and cbfstool.
To continue sharing more code between the tools and coreboot proper provide cbfs parsing logic in commonlib. A cbfs_for_each_file() function was added to allow one to act on each file found within a cbfs. cbfs_locate() was updated to use that logic. BUG=chrome-os-partner:48412 BUG=chromium:445938 BRANCH=None TEST=Utilized and booted on glados. Change-Id: I1f23841583e78dc3686f106de9eafe1adbef8c9f Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/12783 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/commonlib/Makefile.inc')
-rw-r--r--src/commonlib/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commonlib/Makefile.inc b/src/commonlib/Makefile.inc
index 929bf8edc0cd..19f9ba3b8dc3 100644
--- a/src/commonlib/Makefile.inc
+++ b/src/commonlib/Makefile.inc
@@ -10,3 +10,9 @@ ramstage-y += region.c
smm-y += region.c
ramstage-$(CONFIG_PLATFORM_USES_FSP1_1) += fsp1_1_relocate.c
+
+bootblock-y += cbfs.c
+verstage-y += cbfs.c
+romstage-y += cbfs.c
+ramstage-y += cbfs.c
+smm-y += cbfs.c