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
This commit is contained in:
committed by
Jeremy Soller
parent
e7c4683565
commit
f4f4d5b61d
14
scripts/_build/ec.sh
Executable file
14
scripts/_build/ec.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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"
|
Reference in New Issue
Block a user