Makefile 743 B

123456789101112131415161718192021222324252627282930
  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. CROSS_COMPILE="$(TARGET_CROSS)" \
  19. ARCH="$(LINUX_KARCH)" \
  20. SUBDIRS="$(PKG_BUILD_DIR)" \
  21. EXTRA_CFLAGS="$(BUILDFLAGS)" \
  22. modules
  23. endef
  24. $(eval $(call KernelPackage,hwmon-gsc))