summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-09-06 15:51:46 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-10-24 01:53:41 +0000
commit83061a192b03233097fd841643b9fb44d1610247 (patch)
tree5a31d9a5a8075640140e7c7f971dab79c7aadeb6 /extra
parent9985e885dee9b82f3938a94b21560b0551709d08 (diff)
downloadchrome-ec-83061a192b03233097fd841643b9fb44d1610247.tar.gz
g: rename usb_updater into gsctool
The usb_updater utility has long been not just an updater, and has long been using other interfaces in addition to USB. gsctool is a much more suitable name. Conflicts: docs/usb_updater.md extra/usb_updater/Makefile extra/usb_updater/usb_updater2.c include/rwsig.h CQ-DEPEND=CL:709776 BRANCH=cr50 BUG=b:67007500 TEST=verified that make -C ./extra/usb_updater generates ./extra/usb_updater/gsctool: $ ./extra/usb_updater/gsctool --help Usage: gsctool [options] <binary image> This updates the Cr50 RW firmware over USB. The required argument is the full RO+RW image. Options: [...] $ Change-Id: I3ab70c28acf3664ddefaa923a87ba1fd5c3c437b Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/709738 Reviewed-by: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit a08f61506cc71b690858e51da905c7dcb2d7ef10) Reviewed-on: https://chromium-review.googlesource.com/734785
Diffstat (limited to 'extra')
-rw-r--r--extra/usb_updater/.gitignore2
-rw-r--r--extra/usb_updater/Makefile4
-rw-r--r--extra/usb_updater/gsctool.c (renamed from extra/usb_updater/usb_updater.c)0
3 files changed, 3 insertions, 3 deletions
diff --git a/extra/usb_updater/.gitignore b/extra/usb_updater/.gitignore
index 5f2aa1f17b..e356628d7d 100644
--- a/extra/usb_updater/.gitignore
+++ b/extra/usb_updater/.gitignore
@@ -1,2 +1,2 @@
-usb_updater
+gsctool
usb_updater2
diff --git a/extra/usb_updater/Makefile b/extra/usb_updater/Makefile
index 57c519485c..34b257ef19 100644
--- a/extra/usb_updater/Makefile
+++ b/extra/usb_updater/Makefile
@@ -4,7 +4,7 @@
CC ?= gcc
PKG_CONFIG ?= pkg-config
-PROGRAMS := usb_updater
+PROGRAMS := gsctool
LIBS :=
LFLAGS :=
CFLAGS := -std=gnu99 \
@@ -42,7 +42,7 @@ LIBS_common = -lfmap
all: $(PROGRAMS)
# chip/g updater
-usb_updater: usb_updater.c Makefile
+gsctool: gsctool.c Makefile
$(CC) $(CFLAGS) $(CFLAGS_g) $< $(LFLAGS) $(LIBS) $(LIBS_g) -o $@
# common EC code USB updater
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/gsctool.c
index 6e79be1e3a..6e79be1e3a 100644
--- a/extra/usb_updater/usb_updater.c
+++ b/extra/usb_updater/gsctool.c