summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2024-03-15 15:53:22 -0700
committerYu-Ping Wu <yupingso@google.com>2024-03-25 08:23:35 +0000
commite17113a3f3f3d6ccf5f79bea7c405e983860bc52 (patch)
treeaa8a4fb6a2120b836a15305bfb8901d9c7d91daa /payloads
parent595efe4f205cd294f8eb6885fd243b05a4692c04 (diff)
libpayload: Include commonlib/helpers.h in libpayload.h for GPL builds
This patch makes the GPL-restricted commonlib helpers available in libpayload when CONFIG_LP_GPL is selected, as a convenience to GPL payloads that use them a lot. Cq-Depend: chromium:5375721 Change-Id: I844c6e700c4c0d557f97da94fa3aa2e868edd756 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81289 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/include/libpayload.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index c6d2fc629b..09bd4be69c 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -45,9 +45,13 @@
#include <stdbool.h>
#include <libpayload-config.h>
#include <cbgfx.h>
+#if CONFIG(LP_GPL)
+#include <commonlib/helpers.h>
+#else
+#include <commonlib/bsd/helpers.h>
+#endif
#include <commonlib/bsd/elog.h>
#include <commonlib/bsd/fmap_serialized.h>
-#include <commonlib/bsd/helpers.h>
#include <commonlib/bsd/ipchksum.h>
#include <commonlib/bsd/mem_chip_info.h>
#include <ctype.h>