scripts: Version EC separately from SBIOS

The original rationale for having the EC version match the SBIOS version
was to ensure that compatible versions of each were installed. So we set
the EC version to the SBIOS version and always flash both of them, even
if only one actually changed.

At some point, a mechanism should be implemented that checks for a
minimum supported/compatible version. This would be comparable to the
LVFS MetaInfo's "requires" field.

Ref: f4f4d5b61d ("Build EC as a submodule, specifying version")
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford 2024-01-23 08:46:15 -07:00
parent 698de208cb
commit 1394c18f1a
No known key found for this signature in database
GPG key ID: 68E558D2BBD856E3
3 changed files with 3 additions and 3 deletions

View file

@ -9,6 +9,7 @@ features apply to your model and firmware version, see the
## unreleased
- meer9: Added initial release of open firmware
- Changed the EC version to be distinct from the SBIOS version
## 2024-11-15

View file

@ -20,5 +20,5 @@ done < "$1"
BUILD_DIR="build"
make -C ec BUILD="$BUILD_DIR" clean
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" BUILD="$BUILD_DIR" -j "$(nproc)"
make -C ec "${EC_ARGS[@]}" BUILD="$BUILD_DIR" -j "$(nproc)"
cp "ec/$BUILD_DIR/ec.rom" "$2"

View file

@ -87,8 +87,7 @@ KERNELVERSION="${VERSION}" \
# Rebuild EC firmware for System76 EC models
if [ ! -e "${MODEL_DIR}/ec.rom" ] && [ -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