Makefile 854 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (C) 2008-2010 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:=button-hotplug
  10. PKG_RELEASE:=3
  11. PKG_LICENSE:=GPL-2.0
  12. include $(INCLUDE_DIR)/package.mk
  13. define KernelPackage/button-hotplug
  14. SUBMENU:=Other modules
  15. TITLE:=Button Hotplug driver
  16. DEPENDS:=+kmod-input-core
  17. FILES:=$(PKG_BUILD_DIR)/button-hotplug.ko
  18. AUTOLOAD:=$(call AutoLoad,30,button-hotplug,1)
  19. KCONFIG:=
  20. endef
  21. define KernelPackage/button-hotplug/description
  22. Kernel module to generate button uevent-s from input subsystem events.
  23. If your device uses GPIO buttons, see gpio-button-hotplug.
  24. endef
  25. define Build/Compile
  26. $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
  27. endef
  28. $(eval $(call KernelPackage,button-hotplug))