summaryrefslogtreecommitdiff
path: root/extra/usb_serial/Makefile
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2014-09-10 14:32:27 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-29 18:38:27 +0000
commitac375d000eba1e3b582018ebfcbf654af41bdcb9 (patch)
tree3103952b3570a061367b9bd7605fea30fcc14366 /extra/usb_serial/Makefile
parentd7b99e993a343cca6a6ba403b2837548a5524f09 (diff)
downloadchrome-ec-ac375d000eba1e3b582018ebfcbf654af41bdcb9.tar.gz
USB-console: Add Linux USB serial kernel module
This is a simple kernel module and Makefile for building it out of tree. This module just uses the existing kernel usb serial driver and probes for the Google VID/Class/SubClass/Protocol that identifies a valid simple serial interface. This code should be rolled into the existing kernel driver at: drivers/usb/serial/usb-serial-simple.c While that happens, this module is still useful to developers. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=cd extra/usb_serial; make; sudo insmod raiden.ko Connect the discovery-stm32f072 over USB and see that its console is discovered and works. Change-Id: I83661b816643c43b3e2dc9fdc825bc3a796af2f4 Reviewed-on: https://chromium-review.googlesource.com/225923 Reviewed-by: Olof Johansson <olofj@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'extra/usb_serial/Makefile')
-rw-r--r--extra/usb_serial/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/usb_serial/Makefile b/extra/usb_serial/Makefile
new file mode 100644
index 0000000000..9c478050cc
--- /dev/null
+++ b/extra/usb_serial/Makefile
@@ -0,0 +1,10 @@
+obj-m := raiden.o
+
+.PHONY: all
+
+all: modules
+
+.DEFAULT:
+ $(MAKE) -C /lib/modules/$(shell uname -r)/build \
+ M=$(shell pwd) \
+ $(MAKECMDGOALS)