1
0

Makefile 706 B

1234567891011121314151617181920212223242526272829
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=hwmon-gsc
  4. PKG_RELEASE:=1
  5. include $(INCLUDE_DIR)/package.mk
  6. define KernelPackage/hwmon-gsc
  7. SUBMENU:=Hardware Monitoring Support
  8. DEPENDS:=@TARGET_imx6||TARGET_cns3xxx kmod-hwmon-core +kmod-i2c-core
  9. TITLE:=Driver for the Gateworks System Controller
  10. AUTOLOAD:=$(call AutoLoad,60,gsc)
  11. FILES:=$(PKG_BUILD_DIR)/gsc.ko
  12. endef
  13. define KernelPackage/hwmon-gsc/description
  14. Kernel module for the Gateworks System Controller chips.
  15. endef
  16. define Build/Compile
  17. $(MAKE) -C "$(LINUX_DIR)" \
  18. $(KERNEL_MAKE_FLAGS) \
  19. SUBDIRS="$(PKG_BUILD_DIR)" \
  20. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  21. modules
  22. endef
  23. $(eval $(call KernelPackage,hwmon-gsc))