libpayload: Make lpgcc wrapper usable for in-tree builds

Teach lpgcc to look in the in-coreboot tree directory structure, too.

Change-Id: I3809456d072ce2f91542b0edb3fd39f536298cc2
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/3530
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Patrick Georgi
2013-02-21 14:33:25 +01:00
committed by Ronald G. Minnich
parent 8b9d4f3296
commit cb76136420
2 changed files with 50 additions and 25 deletions

View File

@ -49,11 +49,13 @@ fi
if [ -f $BASE/../lib/libpayload.a ]; then
_LIBDIR=$BASE/../lib
elif [ -f $BASE/../build/libpayload.a ]; then
_LIBDIR=$BASE/../build
else
_LIBDIR=$LIBPAYLOAD_PREFIX/lib
fi
if [ -d $BASE/../include/ ]; then
if [ -d $BASE/../include ]; then
_INCDIR=$BASE/../include
else
_INCDIR=$LIBPAYLOAD_PREFIX/include