scripts: Set EC build dir

Specify the EC build directory so that it does not require the model or
version to be determined in the script.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-10-11 17:26:34 -06:00
committed by Jeremy Soller
parent b22e8dee41
commit 569321f9ac

View File

@ -15,7 +15,6 @@ while read line; do
fi
done < "$1"
source "$1"
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" clean
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" -j "$(nproc)"
cp "ec/build/${BOARD}/${VERSION}/ec.rom" "$2"
make -C ec clean
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" BUILD=build -j "$(nproc)"
cp "ec/build/ec.rom" "$2"