diff --git a/scripts/smmstore.sh b/scripts/smmstore.sh new file mode 100755 index 0000000..d64adac --- /dev/null +++ b/scripts/smmstore.sh @@ -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