Synchronize with upstream version

Also ensure the driver still builds with the latest upstream kernel.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Guenter Roeck
2015-01-17 10:00:02 -08:00
parent 91230349d3
commit 034e27046c
3 changed files with 160 additions and 55 deletions

View File

@@ -3,8 +3,8 @@ TARGET := $(shell uname -r)
# Or specific version
#TARGET := 2.6.33.5
KERNEL_MODULES := /lib/modules/$(TARGET)
KERNEL_BUILD := $(KERNEL_MODULES)/build
# KERNEL_BUILD := /usr/src/linux-headers-$(TARGET)
# KERNEL_BUILD := $(KERNEL_MODULES)/build
KERNEL_BUILD := /usr/src/linux-headers-$(TARGET)
#SYSTEM_MAP := $(KERNEL_BUILD)/System.map
SYSTEM_MAP := /boot/System.map-$(TARGET)
@@ -15,7 +15,8 @@ DRIVER := it87
# the module:
MOD_SUBDIR = drivers/hwmon
obj-m := $(DRIVER).o
obj-m := $(patsubst %,%.o,$(DRIVER))
obj-ko := $(patsubst %,%.ko,$(DRIVER))
MAKEFLAGS += --no-print-directory