From 3812485a04ac2171d76e0dc22bd29315be511cac Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 4 Aug 2023 14:02:23 -0600 Subject: [PATCH] scripts: Make `FIRMWARE_OPEN_MODEL_DIR` relative coreboot expects paths to be relative to it, and vboot breaks include paths that are absolute. Fixes compilation failing due to the addition of `-Wmissing-include-dirs`. Ref: https://review.coreboot.org/c/coreboot/+/70251 Signed-off-by: Tim Crawford --- scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 99a5118..b491adf 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -76,7 +76,8 @@ PACKAGES_PATH="${MODEL_DIR}:$(realpath apps)" \ "${EDK2_ARGS[@]}" # Rebuild coreboot -FIRMWARE_OPEN_MODEL_DIR="${MODEL_DIR}" \ +# NOTE: coreboot expects paths to be relative to it +FIRMWARE_OPEN_MODEL_DIR="../models/${MODEL}" \ FIRMWARE_OPEN_UEFIPAYLOAD="${UEFIPAYLOAD}" \ KERNELVERSION="${VERSION}" \ ./scripts/_build/coreboot.sh \