Tim Crawford f4f4d5b61d Build EC as a submodule, specifying version
For models that use System76 EC, we want to have the board version and
the EC version matich.

Ref: https://github.com/system76/firmware-open/issues/75
2020-04-07 13:08:51 -06:00

15 lines
256 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$1" -o ! -e "$1" -o -z "$2" ]
then
echo "$0 <config> <output>" >&2
exit 1
fi
source "$1"
make -C ec clean
make -C ec BOARD=${BOARD} VERSION=${VERSION} -j $(nproc)
cp "ec/build/${BOARD}/${VERSION}/ec.rom" "$2"