summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorHsuan Ting Chen <roccochen@chromium.org>2022-03-25 17:23:21 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-06-09 13:33:35 +0000
commit607b39c5934b0df4d9583a3f98260bd226c1f876 (patch)
tree1324117c5e84d6b45caa1ba798026e9169265502 /payloads
parent7d8df61774998962d34092d0a963df93b6aca926 (diff)
libpayload: Add commonlib/bsd/elog and its dependency
Add commonlib/bsd/elog dependency in libpayload. This will allow other payloads (e.g. depthcharge) to implement their own eventlog read and write utilities. Also include commonlib/bsd/elog.c source to libc-srcs. This ensure payloads could utilize commonlib elog helper functions. Change-Id: I64d0fdd2a8eff1d89a1ac451d37b61787b5564e7 Signed-off-by: Hsuan Ting Chen <roccochen@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63115 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/include/libpayload.h1
-rw-r--r--payloads/libpayload/libc/Makefile.inc4
2 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 24c48c1854..15871181c1 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -45,6 +45,7 @@
#include <stdbool.h>
#include <libpayload-config.h>
#include <cbgfx.h>
+#include <commonlib/bsd/elog.h>
#include <commonlib/bsd/fmap_serialized.h>
#include <commonlib/bsd/helpers.h>
#include <commonlib/bsd/mem_chip_info.h>
diff --git a/payloads/libpayload/libc/Makefile.inc b/payloads/libpayload/libc/Makefile.inc
index f9006ae471..96d1312f65 100644
--- a/payloads/libpayload/libc/Makefile.inc
+++ b/payloads/libpayload/libc/Makefile.inc
@@ -39,3 +39,7 @@ libc-$(CONFIG_LP_LIBC) += die.c
libc-$(CONFIG_LP_LIBC) += coreboot.c
libc-$(CONFIG_LP_LIBC) += fmap.c
libc-$(CONFIG_LP_LIBC) += fpmath.c
+
+ifeq ($(CONFIG_LP_LIBC),y)
+libc-srcs += $(coreboottop)/src/commonlib/bsd/elog.c
+endif