Add smmstore dumping script

This commit is contained in:
Jeremy Soller
2019-10-28 14:26:24 -06:00
parent 29745b2840
commit 0fed96533c

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