scripts: Allow additional EC configs

Modify the build script to allow setting additional EC configs, similar
to how edk2 is done.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-05-23 07:11:28 -06:00
committed by Tim Crawford
parent 39af7165e4
commit f527a7a273

View File

@@ -8,7 +8,14 @@ then
exit 1
fi
EC_ARGS=()
while read line; do
if [[ "$line" != "#"* ]]; then
EC_ARGS+=("$line")
fi
done < "$1"
source "$1"
make -C ec BOARD=${BOARD} VERSION=${VERSION} clean
make -C ec BOARD=${BOARD} VERSION=${VERSION} -j $(nproc)
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"