modules.mk 726 B

123456789101112131415161718192021
  1. define KernelPackage/linkstation-poweroff
  2. SUBMENU:=$(OTHER_MENU)
  3. DEPENDS:=@TARGET_mvebu
  4. TITLE:=Buffalo LinkStation power off driver
  5. KCONFIG:= \
  6. CONFIG_POWER_RESET=y \
  7. CONFIG_POWER_RESET_LINKSTATION \
  8. CONFIG_POWER_RESET_QNAP=n
  9. FILES:=$(LINUX_DIR)/drivers/power/reset/linkstation-poweroff.ko
  10. AUTOLOAD:=$(call AutoLoad,31,linkstation-poweroff,1)
  11. endef
  12. define KernelPackage/linkstation-poweroff/description
  13. This driver supports turning off some Buffalo LinkStations by
  14. setting an output pin at the ethernet PHY to the correct state.
  15. It also makes the device compatible with the WoL function.
  16. Say Y here if you have a Buffalo LinkStation LS421D/E.
  17. endef
  18. $(eval $(call KernelPackage,linkstation-poweroff))