hwmon.mk 1015 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2019 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. define KernelPackage/hwmon-raspberrypi
  8. TITLE:=Raspberry Pi voltage monitor
  9. KCONFIG:=CONFIG_SENSORS_RASPBERRYPI_HWMON
  10. FILES:=$(LINUX_DIR)/drivers/hwmon/raspberrypi-hwmon.ko
  11. AUTOLOAD:=$(call AutoLoad,60,raspberrypi-hwmon)
  12. $(call AddDepends/hwmon,@TARGET_brcm2708)
  13. endef
  14. define KernelPackage/hwmon-raspberrypi/description
  15. Kernel module for voltage sensor on the Raspberry Pi
  16. endef
  17. $(eval $(call KernelPackage,hwmon-raspberrypi))
  18. define KernelPackage/hwmon-rpi-poe-fan
  19. SUBMENU:=$(HWMON_MENU)
  20. TITLE:=Raspberry Pi PoE HAT fan
  21. DEPENDS:=@TARGET_brcm2708 +kmod-hwmon-core
  22. KCONFIG:=CONFIG_SENSORS_RPI_POE_FAN
  23. FILES:=$(LINUX_DIR)/drivers/hwmon/rpi-poe-fan.ko
  24. AUTOLOAD:=$(call AutoProbe,rpi-poe-fan)
  25. endef
  26. define KernelPackage/hwmon-rpi-poe-fan/description
  27. Raspberry Pi PoE HAT fan driver
  28. endef
  29. $(eval $(call KernelPackage,hwmon-rpi-poe-fan))