mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
modules: create usbnet gadget module
Port the usbnet motorola gadget driver for factory to a loadable module. Change-Id: I6713b97d6e6c2e2dfb90b703a7a17694d44bdccb Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1147494 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
d648dbbb5f
commit
6cf41b0c79
4 changed files with 1059 additions and 0 deletions
8
drivers/moto_f_usbnet/Android.mk
Normal file
8
drivers/moto_f_usbnet/Android.mk
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
DLKM_DIR := motorola/kernel/modules
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := moto_f_usbnet.ko
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
||||
include $(DLKM_DIR)/AndroidKernelModule.mk
|
||||
6
drivers/moto_f_usbnet/Kbuild
Normal file
6
drivers/moto_f_usbnet/Kbuild
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
|
||||
moto_f_usbnet-objs += f_usbnet.o
|
||||
obj-m += moto_f_usbnet.o
|
||||
10
drivers/moto_f_usbnet/Makefile
Normal file
10
drivers/moto_f_usbnet/Makefile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS)
|
||||
|
||||
modules_install:
|
||||
$(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install
|
||||
|
||||
clean:
|
||||
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
|
||||
1035
drivers/moto_f_usbnet/f_usbnet.c
Normal file
1035
drivers/moto_f_usbnet/f_usbnet.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue