Skip to content

Commit

Permalink
scripts: Version EC separately from SBIOS
Browse files Browse the repository at this point in the history
Stop setting the EC version to the SBIOS version so that the EC will use
its real version.

Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd committed Oct 3, 2023
1 parent 51e3e1a commit 57a15b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions scripts/_build/ec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "${EC_ARGS[@]}" BUILD=build -j "$(nproc)"
cp "ec/build/ec.rom" "$2"
3 changes: 1 addition & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ KERNELVERSION="${VERSION}" \
# Rebuild EC firmware for System76 EC models
if [ ! -e "${MODEL_DIR}/ec.rom" -a -e "${MODEL_DIR}/ec.config" ]
then
env VERSION="${VERSION}" \
./scripts/_build/ec.sh \
./scripts/_build/ec.sh \
"${MODEL_DIR}/ec.config" \
"${BUILD}/ec.rom"
fi
Expand Down

0 comments on commit 57a15b7

Please sign in to comment.