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 <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-08-04 14:02:23 -06:00
committed by Tim Crawford
parent 3e19b73397
commit 3812485a04

View File

@@ -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 \