aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/hwmon-gsc/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-10 11:57:57 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-10 12:10:20 +0100
commitacd0c8c178cc709fe6ce0bf3c4a77ee249c730e4 (patch)
tree1d2f03e0f8ef527c68a5e3a1e1c2296d023a186d /package/kernel/hwmon-gsc/Makefile
parentc00e5a4f09115ec976fac7dc380f576ef6a24fab (diff)
downloadupstream-acd0c8c178cc709fe6ce0bf3c4a77ee249c730e4.tar.gz
upstream-acd0c8c178cc709fe6ce0bf3c4a77ee249c730e4.tar.bz2
upstream-acd0c8c178cc709fe6ce0bf3c4a77ee249c730e4.zip
kernel: move the gateworks system controller driver to an out-of-tree package
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/hwmon-gsc/Makefile')
-rw-r--r--package/kernel/hwmon-gsc/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/kernel/hwmon-gsc/Makefile b/package/kernel/hwmon-gsc/Makefile
new file mode 100644
index 0000000000..1892e027ca
--- /dev/null
+++ b/package/kernel/hwmon-gsc/Makefile
@@ -0,0 +1,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))