summaryrefslogtreecommitdiff
path: root/package/kernel/hwmon-gsc/Makefile
blob: 1892e027ca4b74d2abd2c79091f8b1aa746f30c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=hwmon-gsc
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define KernelPackage/hwmon-gsc
  SUBMENU:=Hardware Monitoring Support
  DEPENDS:=@TARGET_imx6||TARGET_cns3xxx kmod-hwmon-core +kmod-i2c-core
  TITLE:=Driver for the Gateworks System Controller
  AUTOLOAD:=$(call AutoLoad,60,gsc)
  FILES:=$(PKG_BUILD_DIR)/gsc.ko
endef

define KernelPackage/hwmon-gsc/description
  Kernel module for the Gateworks System Controller chips.
endef

define Build/Compile
	$(MAKE) -C "$(LINUX_DIR)" \
		CROSS_COMPILE="$(TARGET_CROSS)" \
		ARCH="$(LINUX_KARCH)" \
		SUBDIRS="$(PKG_BUILD_DIR)" \
		EXTRA_CFLAGS="$(BUILDFLAGS)" \
		modules
endef

$(eval $(call KernelPackage,hwmon-gsc))