This commit is contained in:
Jeremy Soller
2019-10-30 12:08:39 -06:00
2 changed files with 13 additions and 1 deletions

12
scripts/smmstore.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
cargo build --manifest-path libs/intel-spi/Cargo.toml --example read --release
sudo ./libs/intel-spi/target/release/examples/read
make -C coreboot/util/cbfstool -j "$(nproc)"
./coreboot/util/cbfstool/cbfstool read.rom read -r SMMSTORE -f smmstore.rom
cargo build --manifest-path libs/smmstore/Cargo.toml --release
./libs/smmstore/target/release/smmstore smmstore.rom