sis-updater: use c++17 for std::optional

libchrome would be replacing base::Optional with absl::optional, and
absl::optional would use std::optional.

BUG=b:192529039
TEST=emerge-endeavour sis-updater with patched libchrome absl

Change-Id: I69bd5b554a11a88acf8b1abbe0cc1541f213296a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/sis-updater/+/3028543
Commit-Queue: Kyle Williams <kdgwill@chromium.org>
Tested-by: Grace Cham <hscham@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Kyle Williams <kdgwill@chromium.org>
1 file changed
tree: b0181a9a8689259b43aaa8f3a42d2ffe5126176f
  1. conf/
  2. src/
  3. .gitignore
  4. common.mk
  5. LICENSE
  6. Makefile
  7. OWNERS
  8. README.md
  9. unblocked_terms.txt
README.md

SiS Firmware Updater

Description

The code was proviced by SiS and modified by Google. Modifications include:

  • Cleaning the code according to Google C++ coding style. Eliminating compiling errors.
  • Adding a feature that the updater can take the device name from input parameters. Blinded search is only required when input device name is invalid.
  • Adding a feature that the updater will compare FW version before actual update. If the FW versions on device and in Chrome OS are same, the updater will terminate.
  • Adding a input flag specifying whether the device is in recovery mode (FW update fails last time). The flag value is determined by VID from udev rule.

Requirements

On Linux, should run as root.

Build

At the root of the repository: make.

Under Chrome OS development enviroment: emerge-${BOARD} sis-updater.

How to use

Just run ./sis-updater.