coreboot-kgpe-d16/payloads
Jakub Czapiga 395f5b3129 libpayload: Install vboot headers and add include paths to lpgcc
New CBFS API uses commonlib/bsd/cbfs_serialized.h, which includes
vboot's vb2_sha.h. And, because vboot's includes are not available
in libpayload's installation directory nor in lpgcc paths, it was
causing compilation errors. This patch fixes this issue.

lpgcc will look for `vboot` directory like it is doing for `include`
directory to create correct paths. However, if payload will be built
using libpayload's build dir as a base, then vboot headers from
3rdparty/vboot will be used, as there is no way to pass VBOOT_SOURCE
from makefile to lpgcc.

Moreover, this patch moves VBOOT_SOURCE to the main Makefile to
make it available for installation target, to install headers from
vboot directory provided by caller.

Change-Id: I68dd7e1545cfcaf24547d8a9fe289447c79da222
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Reported-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61032
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2022-01-15 00:22:41 +00:00
..
coreinfo util/kconfig: Uprev to Linux 5.13's kconfig 2021-07-13 20:28:14 +00:00
external payloads/U-Boot: Fix various build errors 2021-12-14 16:13:06 +00:00
libpayload libpayload: Install vboot headers and add include paths to lpgcc 2022-01-15 00:22:41 +00:00
linuxcheck treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
nvramcui nvramcui: Use libpayload's new `Makefile.payload` 2021-02-07 16:23:33 +00:00
Kconfig option: Turn CMOS option backend into choice 2021-05-28 11:37:16 +00:00
Makefile.inc payloads/Makefile.inc: Add warning for image built with no payload 2021-12-23 14:39:57 +00:00