Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (29 sloc) 742 Bytes
ifneq ($(KERNELRELEASE),)
# kbuild part
KVERSION = $(shell uname -r)
#EXTRA_CFLAGS=-I$(KDIR)/drivers/hid
obj-m := hid-g13.o hid-g15.o hid-g19.o hid-gfb.o hid-g110.o
else
KVERSION = $(shell uname -r)
KDIR := /lib/modules/$(KVERSION)/build
MODULE_INSTALL_DIR := /lib/modules/$(KVERSION)/updates/g-series
MODS := hid-g13.ko hid-g15.ko hid-g19.ko hid-gfb.ko hid-g110.ko
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD)
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
install:
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
TAGS:
$(MAKE) -C $(KDIR) M=$(PWD) TAGS
g110test:
sudo rmmod hid-g110 || true
sudo rmmod hid-gfb || true
make
sudo make install
g19rmmod:
sudo rmmod hid-g19 hid-gfb
g19insmod:
sudo modprobe hid-g19
endif