Match all boards starting with "Kip"

This CL fixes a bug in the elan touch fw updater.  There is a hack in
the updater that will determine the Kip's product ID even if the
touchpad's firmware has been corrupted by looking at the device's VPD.
To do this, the script checks that the board's name is "kip" (among
other things).  However, previously the check was too strict, accepting
only the exact string "kip", but it's come to light that the board name
string often has a key name appended to the end like
"kip-signed-mp-v2keys" which means the recovery hack won't work properly
on devices like that.

This CL changes the check to be more permissive, accepting any board
that starts with the name "kip" but ignores the fact that it may have
other text stuck on the end.

This bug was difficult to track down due to lack of early debug messages
in the logs, so it also adds a few more bits of information to the logs
that may help debugging future issues.

BUG=chromium:624001
TEST=manually tested on a device with an /etc/lsb-release file that
matched the offending devices.  Without this patch the update failed to
recover a corrupted touchpad.  With this patch, the update occurred just
fine.

Change-Id: Iec4064d397fc9fe69f5a9fbcf0a64ce89644d2f1
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/356681
Reviewed-by: Dennis Kempin <denniskempin@google.com>
1 file changed
tree: 77e24ee4fb27327c2f6026e773be1497a75f70af
  1. scripts/
  2. LICENSE
  3. OWNERS
  4. README