mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
Tool to update the trackpad firmware over USB. Primarily borrowed from extra/usb_console/usb_console.c BRANCH=none BUG=b:35587174 TEST=Manually executed with hammer Change-Id: Icad951d2478a3e231f293e11fb461eaae20e5042 Reviewed-on: https://chromium-review.googlesource.com/525192 Commit-Ready: Chun-ta Lin <itspeter@chromium.org> Tested-by: Chun-ta Lin <itspeter@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
35 lines
750 B
Makefile
35 lines
750 B
Makefile
# Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
PROGRAM := touchpad_updater
|
|
SOURCE := $(PROGRAM).c
|
|
LIBS :=
|
|
LFLAGS :=
|
|
CFLAGS := -std=gnu99 \
|
|
-g3 \
|
|
-O3 \
|
|
-Wall \
|
|
-Werror \
|
|
-Wpointer-arith \
|
|
-Wcast-align \
|
|
-Wcast-qual \
|
|
-Wundef \
|
|
-Wsign-compare \
|
|
-Wredundant-decls \
|
|
-Wmissing-declarations
|
|
|
|
#
|
|
# Add libusb-1.0 required flags
|
|
#
|
|
LIBS += $(shell pkg-config --libs libusb-1.0)
|
|
CFLAGS += $(shell pkg-config --cflags libusb-1.0)
|
|
|
|
$(PROGRAM): $(SOURCE) Makefile
|
|
gcc $(CFLAGS) $(SOURCE) $(LFLAGS) $(LIBS) -o $@
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -rf $(PROGRAM) *~
|