Add flash script (WIP)
This commit is contained in:
Submodule libs/intel-spi updated: 0495f63572...cc65d9bba6
20
scripts/flash.sh
Executable file
20
scripts/flash.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo "$0 [model]" >&2
|
||||
exit 1
|
||||
fi
|
||||
MODEL="$1"
|
||||
|
||||
if [ ! -d "models/$1" ]
|
||||
then
|
||||
echo "model '$1' not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
MODEL_DIR="$(realpath "models/${MODEL}")"
|
||||
|
||||
cargo build --release --manifest-path libs/intel-spi/Cargo.toml
|
||||
sudo libs/intel-spi/target/release/intel-spi "build/${MODEL}/coreboot.rom"
|
Reference in New Issue
Block a user