Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #
  2. # Copyright (C) 2006-2011 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:=hostap-driver
  10. PKG_VERSION:=0.4.9
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
  14. PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
  15. include $(INCLUDE_DIR)/package.mk
  16. define KernelPackage/hostap/Default
  17. VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
  18. SUBMENU:=Wireless Drivers
  19. URL:=http://hostap.epitest.fi/
  20. endef
  21. define KernelPackage/hostap/Default/description
  22. Host AP is a driver for 802.11b wireless cards based on Intersil
  23. Prism2/2.5/3 chipset. It supports so called Host AP mode that allows the
  24. card to act as an IEEE 802.11 access point.
  25. endef
  26. define KernelPackage/hostap
  27. $(call KernelPackage/hostap/Default)
  28. TITLE:=Host AP support for Prism2/2.5/3
  29. DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-lib80211 +wireless-tools +hostapd-common-old
  30. KCONFIG:=CONFIG_HOSTAP CONFIG_HOSTAP_FIRMWARE=y CONFIG_HOSTAP_FIRMWARE_NVRAM=y
  31. FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap.ko
  32. AUTOLOAD:=$(call AutoProbe,hostap)
  33. endef
  34. define KernelPackage/hostap/description
  35. $(call KernelPackage/hostap/Default/description)
  36. This package contains the base Host AP driver code that is shared by
  37. different hardware models. You will also need to enable support for
  38. PLX/PCI/CS version of the driver to actually use the driver.
  39. endef
  40. define KernelPackage/hostap-cs
  41. $(call KernelPackage/hostap/Default)
  42. TITLE:=Host AP driver for PCMCIA adaptors
  43. DEPENDS:=@PCMCIA_SUPPORT +kmod-hostap +kmod-pcmcia-core
  44. KCONFIG:=CONFIG_HOSTAP_CS
  45. FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_cs.ko
  46. AUTOLOAD:=$(call AutoProbe,hostap_cs)
  47. endef
  48. define KernelPackage/hostap-cs/description
  49. $(call KernelPackage/hostap/Default/description)
  50. This package contains the Host AP driver for Prism2/2.5/3 PC cards.
  51. endef
  52. define KernelPackage/hostap-pci
  53. $(call KernelPackage/hostap/Default)
  54. TITLE:=Host AP driver for PCI adaptors
  55. DEPENDS:=@PCI_SUPPORT +kmod-hostap
  56. KCONFIG:=CONFIG_HOSTAP_PCI
  57. FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_pci.ko
  58. AUTOLOAD:=$(call AutoProbe,hostap_pci)
  59. endef
  60. define KernelPackage/hostap-pci/description
  61. $(call KernelPackage/hostap/Default/description)
  62. This package contains the Host AP driver for Prism2.5 PCI adaptors.
  63. endef
  64. define KernelPackage/hostap-plx
  65. $(call KernelPackage/hostap/Default)
  66. TITLE:=Host AP driver for PLX9052 based PCI adaptors
  67. DEPENDS:=@PCI_SUPPORT +kmod-hostap
  68. KCONFIG:=CONFIG_HOSTAP_PLX
  69. FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_plx.ko
  70. AUTOLOAD:=$(call AutoProbe,hostap_plx)
  71. endef
  72. define KernelPackage/hostap-plx/description
  73. $(call KernelPackage/hostap/Default/description)
  74. This package contains the Host AP driver for Prism2/2.5/3 in PLX9052
  75. based PCI adaptors.
  76. endef
  77. define Build/Prepare
  78. mkdir -p $(PKG_BUILD_DIR)
  79. endef
  80. define Build/Configure
  81. endef
  82. define Build/Compile
  83. endef
  84. define KernelPackage/hostap/install
  85. $(INSTALL_DIR) $(1)/lib/wifi
  86. $(INSTALL_DATA) ./files/lib/wifi/hostap.sh $(1)/lib/wifi
  87. endef
  88. $(eval $(call KernelPackage,hostap))
  89. $(eval $(call KernelPackage,hostap-cs))
  90. $(eval $(call KernelPackage,hostap-pci))
  91. $(eval $(call KernelPackage,hostap-plx))