summaryrefslogtreecommitdiffstats
path: root/payloads
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-12-16 16:11:30 +0000
committerFelix Held <felix-coreboot@felixheld.de>2021-12-23 14:37:04 +0000
commite7006fb414d20aa49b1aa7d6e2e5a979f5395a6d (patch)
tree1781e9e99ed9f9d8f79b9e156e1bc1796aebcd3c /payloads
parentbcd7873ea80be0ee576a10e6a11b7dcf8294ffb5 (diff)
downloadcoreboot-e7006fb414d20aa49b1aa7d6e2e5a979f5395a6d.tar.gz
coreboot-e7006fb414d20aa49b1aa7d6e2e5a979f5395a6d.tar.bz2
coreboot-e7006fb414d20aa49b1aa7d6e2e5a979f5395a6d.zip
libpayload: Add commonlib/bsd include path to lpgcc
coreinfo and nvramcui are using libpayload/bin/lpgcc and libpayload build directory as a base, instead of installing it first. This caused include errors, because commonlib/bsd is not present there. This patch introduces comonlib/bsd include path to lpgcc CFLAGS if it is being built using libpayload build directory as a base. Change-Id: I7d1fe9e5dc3e7c1c1ba825a1bf19972722b42778 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60171 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads')
-rwxr-xr-xpayloads/libpayload/bin/lpgcc2
1 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc
index 3a76f13d17ea..a0b736b5e353 100755
--- a/payloads/libpayload/bin/lpgcc
+++ b/payloads/libpayload/bin/lpgcc
@@ -167,6 +167,8 @@ if [ $_LIBDIR = $_OBJ ]; then
if [ "$CONFIG_LP_TINYCURSES" = y ]; then
_CFLAGS="$_CFLAGS -I$BASE/../curses"
fi
+
+ _CFLAGS="$_CFLAGS -I$BASE/../../../src/commonlib/bsd/include"
fi
# Check for the -fno-stack-protector silliness