summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-01-15 22:04:12 +0100
committerNico Huber <nico.h@gmx.de>2014-01-19 15:05:20 +0100
commit571bec726c4c5fe0d95ae4ad3604e49e859f8861 (patch)
tree73e463a44a5095ff59b6e9f6576a8679991fe9bf /payloads/libpayload
parent2a0fc9fbb40a4db06910c31c39cbfd36e3bb58ad (diff)
downloadcoreboot-571bec726c4c5fe0d95ae4ad3604e49e859f8861.tar.xz
libpayload/lpgcc: Add curses include path.
Without it payloads that need curses fail to build. Change-Id: I4533238b547e4c2d9e0778fb7d314db35a9559df Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4689 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/libpayload')
-rwxr-xr-xpayloads/libpayload/bin/lpgcc8
1 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc
index 43eb016449..4eca091fda 100755
--- a/payloads/libpayload/bin/lpgcc
+++ b/payloads/libpayload/bin/lpgcc
@@ -135,6 +135,14 @@ done
_CFLAGS="$_ARCHEXTRA -nostdinc -nostdlib -I$BASE/../build -I$_INCDIR -I$_ARCHINCDIR -D__LIBPAYLOAD__=1"
+if [ "$CONFIG_PDCURSES" = y ]; then
+ _CFLAGS="$_CFLAGS -I$BASE/../curses/PDCurses-3.4"
+fi
+
+if [ "$CONFIG_TINYCURSES" = y ]; then
+ _CFLAGS="$_CFLAGS -I$BASE/../curses"
+fi
+
# Check for the -fno-stack-protector silliness
trygccoption -fno-stack-protector