Skip to content

Commit 5a42e68

Browse files
committed
make whitelist and blacklist arbitrary lists of strings
Knowing all possible values beforehand is not feasible. We cannot anticipate what a random given firmware image may contain. Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 1dd8d2f commit 5a42e68

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/main.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ mod show;
1919

2020
use intel_fw::Firmware;
2121

22-
#[derive(Clone, Copy, Debug, ValueEnum)]
23-
enum Partition {
24-
MFS,
25-
FTPR,
26-
CODE, // only Gen 1
27-
}
28-
2922
#[derive(Subcommand, Debug)]
3023
enum MeCommand {
3124
/// Clean up (CS)ME partitions and related platform features
@@ -50,10 +43,10 @@ enum MeCommand {
5043
keep_modules: bool,
5144
/// Comma separated list of partitions to keep unconditionally
5245
#[clap(short, long, value_delimiter = ',')]
53-
whitelist: Option<Vec<Partition>>,
46+
whitelist: Option<Vec<String>>,
5447
/// Comma separated list of partitions to remove unconditionally
5548
#[clap(short, long, value_delimiter = ',')]
56-
blacklist: Option<Vec<Partition>>,
49+
blacklist: Option<Vec<String>>,
5750
/// Remove ME/TXE write permissions on other flash regions (requires a full image)
5851
#[clap(long, short)]
5952
descriptor: bool,

0 commit comments

Comments
 (0)