diff options
Diffstat (limited to 'futility/updater.h')
-rw-r--r-- | futility/updater.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/futility/updater.h b/futility/updater.h index 3f77c332..4af2ccaf 100644 --- a/futility/updater.h +++ b/futility/updater.h @@ -88,6 +88,7 @@ struct updater_config { const char *original_programmer; int override_gbb_flags; uint32_t gbb_flags; + bool detect_model; }; struct updater_config_arguments { @@ -103,6 +104,7 @@ struct updater_config_arguments { int verbosity; int override_gbb_flags; uint32_t gbb_flags; + bool detect_model_only; }; struct patch_config { @@ -295,6 +297,15 @@ const struct model_config *manifest_find_model(const struct manifest *manifest, const char *model_name); /* + * Finds the first existing model_config from manifest that matches current + * system by reading RO_FRID from the existing host firmware. + * Returns a model_config from manifest, or NULL if not found. + */ +const struct model_config * +manifest_detect_model_from_frid(struct updater_config *cfg, + struct manifest *manifest); + +/* * Applies custom label information to an existing model configuration. * Collects signature ID information from either parameter signature_id or * image file (via VPD) and updates model.patches for key files. |