intel.mk 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. PKG_DRIVERS += \
  2. iwl-legacy iwl3945 iwl4965 iwlwifi \
  3. libipw ipw2100 ipw2200 \
  4. config-$(call config_package,iwl-legacy) += IWLEGACY
  5. config-$(call config_package,iwl3945) += IWL3945
  6. config-$(call config_package,iwl4965) += IWL4965
  7. config-$(call config_package,iwlwifi) += IWLWIFI IWLDVM IWLMVM
  8. config-$(CONFIG_PACKAGE_IWLWIFI_DEBUG)+= IWLWIFI_DEBUG
  9. config-$(CONFIG_PACKAGE_IWLWIFI_DEBUGFS)+= IWLWIFI_DEBUGFS
  10. config-$(call config_package,libipw) += LIBIPW
  11. config-$(call config_package,ipw2100) += IPW2100
  12. config-$(call config_package,ipw2200) += IPW2200
  13. define KernelPackage/iwlwifi
  14. $(call KernelPackage/mac80211/Default)
  15. DEPENDS:= +kmod-mac80211 @PCI_SUPPORT +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT +@DRIVER_11W_SUPPORT @!LINUX_3_18
  16. TITLE:=Intel AGN Wireless support
  17. FILES:= \
  18. $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko \
  19. $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko \
  20. $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
  21. AUTOLOAD:=$(call AutoProbe,iwlwifi iwldvm iwlmvm)
  22. MENU:=1
  23. endef
  24. define KernelPackage/iwlwifi/description
  25. iwlwifi kernel module for
  26. Intel Wireless WiFi Link 6250AGN Adapter
  27. Intel 6000 Series Wi-Fi Adapters (6200AGN and 6300AGN)
  28. Intel WiFi Link 1000BGN
  29. Intel Wireless WiFi 5150AGN
  30. Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
  31. Intel 6005 Series Wi-Fi Adapters
  32. Intel 6030 Series Wi-Fi Adapters
  33. Intel Wireless WiFi Link 6150BGN 2 Adapter
  34. Intel 100 Series Wi-Fi Adapters (100BGN and 130BGN)
  35. Intel 2000 Series Wi-Fi Adapters
  36. Intel 7260 Wi-Fi Adapter
  37. Intel 3160 Wi-Fi Adapter
  38. Intel 7265 Wi-Fi Adapter
  39. Intel 8260 Wi-Fi Adapter
  40. Intel 3165 Wi-Fi Adapter
  41. endef
  42. define KernelPackage/iwlwifi/config
  43. if PACKAGE_kmod-iwlwifi
  44. config PACKAGE_IWLWIFI_DEBUG
  45. bool "Enable full debugging output in the iwlwifi driver"
  46. default n
  47. help
  48. This option will enable debug tracing output for the iwlwifi drivers
  49. This will result in the kernel module being ~100k larger. You can
  50. control which debug output is sent to the kernel log by setting the
  51. value in
  52. /sys/module/iwlwifi/parameters/debug
  53. This entry will only exist if this option is enabled.
  54. To set a value, simply echo an 8-byte hex value to the same file:
  55. % echo 0x43fff > /sys/module/iwlwifi/parameters/debug
  56. You can find the list of debug mask values in:
  57. drivers/net/wireless/intel/iwlwifi/iwl-debug.h
  58. If this is your first time using this driver, you should say Y here
  59. as the debug information can assist others in helping you resolve
  60. any problems you may encounter.
  61. config PACKAGE_IWLWIFI_DEBUGFS
  62. bool "iwlwifi debugfs support"
  63. depends on PACKAGE_MAC80211_DEBUGFS
  64. default n
  65. help
  66. Enable creation of debugfs files for the iwlwifi drivers. This
  67. is a low-impact option that allows getting insight into the
  68. driver's state at runtime.
  69. endif
  70. endef
  71. define KernelPackage/iwl-legacy
  72. $(call KernelPackage/mac80211/Default)
  73. DEPENDS:= +kmod-mac80211 @PCI_SUPPORT
  74. TITLE:=Intel legacy Wireless support
  75. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwlegacy.ko
  76. AUTOLOAD:=$(call AutoProbe,iwlegacy)
  77. endef
  78. define KernelPackage/iwl-legacy/description
  79. iwl-legacy kernel module for legacy Intel wireless support
  80. endef
  81. define KernelPackage/iwl3945
  82. $(call KernelPackage/mac80211/Default)
  83. DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +iwl3945-firmware
  84. TITLE:=Intel iwl3945 Wireless support
  85. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwl3945.ko
  86. AUTOLOAD:=$(call AutoProbe,iwl3945)
  87. endef
  88. define KernelPackage/iwl3945/description
  89. iwl3945 kernel module for Intel 3945 support
  90. endef
  91. define KernelPackage/iwl4965
  92. $(call KernelPackage/mac80211/Default)
  93. DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +@DRIVER_11N_SUPPORT +iwl4965-firmware
  94. TITLE:=Intel iwl4965 Wireless support
  95. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwl4965.ko
  96. AUTOLOAD:=$(call AutoProbe,iwl4965)
  97. endef
  98. define KernelPackage/iwl4965/description
  99. iwl4965 kernel module for Intel 4965 support
  100. endef
  101. define KernelPackage/libipw
  102. $(call KernelPackage/mac80211/Default)
  103. TITLE:=libipw for ipw2100 and ipw2200
  104. DEPENDS:=@PCI_SUPPORT +kmod-crypto-michael-mic +kmod-crypto-ecb +kmod-lib80211 +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT @!BIG_ENDIAN @!LINUX_3_18
  105. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/libipw.ko
  106. AUTOLOAD:=$(call AutoProbe,libipw)
  107. endef
  108. define KernelPackage/libipw/description
  109. Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
  110. endef
  111. IPW2100_NAME:=ipw2100-fw
  112. IPW2100_VERSION:=1.3
  113. define Download/ipw2100
  114. URL:= \
  115. https://src.fedoraproject.org/repo/pkgs/ipw2100-firmware/ipw2100-fw-1.3.tgz/46aa75bcda1a00efa841f9707bbbd113/ \
  116. https://archlinux.mirror.pkern.at/other/packages/ipw2100-fw/ \
  117. http://mirror.ox.ac.uk/sites/ftp.openbsd.org/pub/OpenBSD/distfiles/firmware/ \
  118. http://firmware.openbsd.org/firmware-dist/
  119. FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
  120. HASH:=e1107c455e48d324a616b47a622593bc8413dcce72026f72731c0b03dae3a7a2
  121. endef
  122. $(eval $(call Download,ipw2100))
  123. define KernelPackage/ipw2100
  124. $(call KernelPackage/mac80211/Default)
  125. TITLE:=Intel IPW2100 driver
  126. DEPENDS:=@PCI_SUPPORT +kmod-libipw
  127. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/ipw2100.ko
  128. AUTOLOAD:=$(call AutoProbe,ipw2100)
  129. endef
  130. define KernelPackage/ipw2100/description
  131. Kernel support for Intel IPW2100
  132. Includes:
  133. - ipw2100
  134. endef
  135. IPW2200_NAME:=ipw2200-fw
  136. IPW2200_VERSION:=3.1
  137. define Download/ipw2200
  138. URL:= \
  139. https://src.fedoraproject.org/repo/pkgs/ipw2200-firmware/ipw2200-fw-3.1.tgz/eaba788643c7cc7483dd67ace70f6e99/ \
  140. https://archlinux.mirror.pkern.at/other/packages/ipw2200-fw/ \
  141. http://mirror.ox.ac.uk/sites/ftp.openbsd.org/pub/OpenBSD/distfiles/firmware/ \
  142. http://firmware.openbsd.org/firmware-dist/
  143. FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
  144. HASH:=c6818c11c18cc030d55ff83f64b2bad8feef485e7742f84f94a61d811a6258bd
  145. endef
  146. $(eval $(call Download,ipw2200))
  147. define KernelPackage/ipw2200
  148. $(call KernelPackage/mac80211/Default)
  149. TITLE:=Intel IPW2200 driver
  150. DEPENDS:=@PCI_SUPPORT +kmod-libipw
  151. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/ipw2200.ko
  152. AUTOLOAD:=$(call AutoProbe,ipw2200)
  153. endef
  154. define KernelPackage/ipw2200/description
  155. Kernel support for Intel IPW2200
  156. Includes:
  157. - ipw2200
  158. endef
  159. define KernelPackage/ipw2100/install
  160. $(INSTALL_DIR) $(1)/lib/firmware
  161. $(INSTALL_DATA) $(PKG_BUILD_DIR)/ipw2100-$(IPW2100_VERSION)*.fw $(1)/lib/firmware
  162. endef
  163. define KernelPackage/ipw2200/install
  164. $(INSTALL_DIR) $(1)/lib/firmware
  165. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware
  166. endef