mirror of
https://github.com/system76/firmware-open.git
synced 2025-07-03 12:53:22 +00:00
scripts: Allow flashing EC only
As somewhat of a hack, allow flashing only the EC by deleting the `firmware.rom` file before running `flash.sh`. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
67e7019cf1
commit
a9e791c905
2 changed files with 5 additions and 2 deletions
|
@ -31,7 +31,7 @@ If the EC is flashed, the system will immediately power off.
|
|||
|
||||
### Availability
|
||||
|
||||
This method is only possible when firmware is unlock. Firmware is unlocked by
|
||||
This method is only possible when firmware is unlocked. Firmware is unlocked by
|
||||
one of two methods:
|
||||
|
||||
- The EC feature `CONFIG_SECURITY` is unset/disabled
|
||||
|
|
|
@ -41,7 +41,10 @@ popd >/dev/null
|
|||
|
||||
# Copy firmware
|
||||
mkdir -p "${BUILD}/${BASEDIR}/firmware"
|
||||
cp -v "${BUILD}/firmware.rom" "${BUILD}/${BASEDIR}/firmware"
|
||||
if [ -f "${BUILD}/firmware.rom" ]
|
||||
then
|
||||
cp -v "${BUILD}/firmware.rom" "${BUILD}/${BASEDIR}/firmware"
|
||||
fi
|
||||
if [ -f "${BUILD}/ec.rom" ]
|
||||
then
|
||||
cp -v "${BUILD}/ec.rom" "${BUILD}/${BASEDIR}/firmware"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue