diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-09-26 22:24:01 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-02 05:19:09 -0700 |
commit | 9997820ded8be4e1c94567f495d63122c88b2a03 (patch) | |
tree | 3ae1a19e572dd5b0d0c91a06dd3d45bfaba63cc5 /futility/updater.h | |
parent | ff34fd79a3a513f12735f469621f560f463c055c (diff) | |
download | vboot-9997820ded8be4e1c94567f495d63122c88b2a03.tar.gz |
futility: updater: Add default quirks
For people running updater directly without the packaged firmware
updater (chromeos-firmwareupdate), it is easier if we identify the
quirks inside updater itself instead of the wrapper script.
This change enables getting "default quirks" by target image RO version
so we won't need to pack firmware images first.
BUG=chromium:875551
TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility
BRANCH=None
Change-Id: I179227f7a829577dc9fe5deb085fdee1a738c070
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1245663
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'futility/updater.h')
-rw-r--r-- | futility/updater.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/futility/updater.h b/futility/updater.h index 02c1d8e5..660b9649 100644 --- a/futility/updater.h +++ b/futility/updater.h @@ -187,5 +187,10 @@ int get_config_quirk(enum quirk_types quirk, const struct updater_config *cfg); /* Gets the system property by given type. Returns the property value. */ int get_system_property(enum system_property_type property_type, struct updater_config *cfg); +/* + * Gets the default quirk config string for target image. + * Returns a string (in same format as --quirks) to load or NULL if no quirks. + */ +const char * const updater_get_default_quirks(struct updater_config *cfg); #endif /* VBOOT_REFERENCE_FUTILITY_UPDATER_H_ */ |