1
0

Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2008-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=gpio-button-hotplug
  10. PKG_RELEASE:=3
  11. PKG_LICENSE:=GPL-2.0
  12. include $(INCLUDE_DIR)/package.mk
  13. define KernelPackage/gpio-button-hotplug
  14. SUBMENU:=Other modules
  15. TITLE:=Simple GPIO Button Hotplug driver
  16. FILES:=$(PKG_BUILD_DIR)/gpio-button-hotplug.ko
  17. AUTOLOAD:=$(call AutoLoad,30,gpio-button-hotplug,1)
  18. KCONFIG:=
  19. endef
  20. define KernelPackage/gpio-button-hotplug/description
  21. This is a replacement for the following in-kernel drivers:
  22. 1) gpio_keys (KEYBOARD_GPIO)
  23. 2) gpio_keys_polled (KEYBOARD_GPIO_POLLED)
  24. Instead of generating input events (like in-kernel drivers do) it generates
  25. uevent-s and broadcasts them. This allows disabling input subsystem which is
  26. an overkill for libreCMC simple needs.
  27. endef
  28. define Build/Compile
  29. $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
  30. endef
  31. $(eval $(call KernelPackage,gpio-button-hotplug))