From 9d233ba9a99b943878904d885770b9133827e9f3 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sun, 27 Dec 2020 20:54:33 +0100 Subject: libpayload/lpgcc: Check for `libpayload.config` for in-tree builds Instead of checking for an already fully build `libpayload.a`, we check for the `libpayload.config` which is the actual prerequisite to start using `lpgcc`. This will allow compilation of payload sources before or in parallel with the build of `libpayload.a`. Change-Id: Ic0143fefe33560af8b013ae48bbbe231b3ad46f3 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/48938 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- payloads/libpayload/bin/lp.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads') diff --git a/payloads/libpayload/bin/lp.functions b/payloads/libpayload/bin/lp.functions index 8d784ebbd4..fd26956243 100644 --- a/payloads/libpayload/bin/lp.functions +++ b/payloads/libpayload/bin/lp.functions @@ -52,7 +52,7 @@ fi if [ -f $BASE/../lib/libpayload.a ]; then _LIBDIR=$BASE/../lib -elif [ -f $_OBJ/libpayload.a ]; then +elif [ -f $_OBJ/libpayload.config ]; then _LIBDIR=$_OBJ else _LIBDIR=$LIBPAYLOAD_PREFIX/lib -- cgit v1.2.3