sis-updater: use ${SYSROOT}/usr/share/libchrome/BASE_VER

BASE_VER will be removed from environment variable.

$(SRC)/../common-mk/BASE_VER is also a bad path, even common-mk/BASE_VER
is not removed yet. Since this software doesn't include common-mk at
all. USE $(SYSROOT)/usr/share/libchrome/BASE_VER instead.

BUG=chromium:1062979
TEST=emerge

Change-Id: I539aa5dd4867edd381279c0d93689ad8317313cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/sis-updater/+/2332075
Reviewed-by: Kyle Williams <kdgwill@chromium.org>
Tested-by: Kyle Williams <kdgwill@chromium.org>
Commit-Queue: Qijiang Fan <fqj@google.com>
1 file changed
tree: a07f2821b65a8efaf65fe51eab693e0459d981d6
  1. conf/
  2. src/
  3. .gitignore
  4. common.mk
  5. LICENSE
  6. Makefile
  7. OWNERS
  8. README.md
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.