broadcom.mk 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. PKG_DRIVERS += \
  2. b43 brcmsmac brcmfmac brcmutil
  3. PKG_CONFIG_DEPENDS += \
  4. CONFIG_PACKAGE_B43_DEBUG \
  5. CONFIG_PACKAGE_B43_PIO \
  6. CONFIG_PACKAGE_B43_PHY_G \
  7. CONFIG_PACKAGE_B43_PHY_N \
  8. CONFIG_PACKAGE_B43_PHY_LP \
  9. CONFIG_PACKAGE_B43_PHY_HT \
  10. CONFIG_PACKAGE_B43_BUSES_BCMA_AND_SSB \
  11. CONFIG_PACKAGE_B43_BUSES_BCMA \
  12. CONFIG_PACKAGE_B43_BUSES_SSB \
  13. CONFIG_PACKAGE_BRCM80211_DEBUG
  14. config-$(call config_package,b43) += B43
  15. config-$(CONFIG_PACKAGE_B43_BUSES_BCMA_AND_SSB) += B43_BUSES_BCMA_AND_SSB
  16. config-$(CONFIG_PACKAGE_B43_BUSES_BCMA) += B43_BUSES_BCMA
  17. config-$(CONFIG_PACKAGE_B43_BUSES_SSB) += B43_BUSES_SSB
  18. config-$(CONFIG_PACKAGE_B43_PHY_G) += B43_PHY_G
  19. config-$(CONFIG_PACKAGE_B43_PHY_N) += B43_PHY_N
  20. config-$(CONFIG_PACKAGE_B43_PHY_LP) += B43_PHY_LP
  21. config-$(CONFIG_PACKAGE_B43_PHY_HT) += B43_PHY_HT
  22. config-$(CONFIG_PACKAGE_B43_PIO) += B43_PIO
  23. config-$(CONFIG_PACKAGE_B43_DEBUG) += B43_DEBUG
  24. config-$(call config_package,brcmutil) += BRCMUTIL
  25. config-$(call config_package,brcmsmac) += BRCMSMAC
  26. config-$(call config_package,brcmfmac) += BRCMFMAC
  27. config-$(CONFIG_BRCMFMAC_SDIO) += BRCMFMAC_SDIO
  28. config-$(CONFIG_BRCMFMAC_USB) += BRCMFMAC_USB
  29. config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
  30. config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
  31. config-$(CONFIG_LEDS_TRIGGERS) += B43_LEDS B43LEGACY_LEDS
  32. #Broadcom firmware
  33. ifneq ($(CONFIG_B43_FW_6_30),)
  34. PKG_B43_FWV4_NAME:=broadcom-wl
  35. PKG_B43_FWV4_VERSION:=6.30.163.46
  36. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).wl_apsta.o
  37. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  38. PKG_B43_FWV4_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
  39. PKG_B43_FWV4_HASH:=a07c3b6b277833c7dbe61daa511f908cd66c5e2763eb7a0859abc36cd9335c2d
  40. else
  41. ifneq ($(CONFIG_B43_FW_5_10),)
  42. PKG_B43_FWV4_NAME:=broadcom-wl
  43. PKG_B43_FWV4_VERSION:=5.10.56.27.3
  44. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta/wl_prebuilt.o
  45. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)_mipsel.tar.bz2
  46. PKG_B43_FWV4_SOURCE_URL:=@OPENWRT
  47. PKG_B43_FWV4_HASH:=26a8c370f48fc129d0731cfd751c36cae1419b0bc8ca35781126744e60eae009
  48. else
  49. ifneq ($(CONFIG_B43_FW_4_178),)
  50. PKG_B43_FWV4_NAME:=broadcom-wl
  51. PKG_B43_FWV4_VERSION:=4.178.10.4
  52. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
  53. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  54. PKG_B43_FWV4_SOURCE_URL:=@OPENWRT
  55. PKG_B43_FWV4_HASH:=32f6ad98facbb9045646fdc8b54bb03086d204153253f9c65d0234a5d90ae53f
  56. else
  57. ifneq ($(CONFIG_B43_FW_5_100_138),)
  58. PKG_B43_FWV4_NAME:=broadcom-wl
  59. PKG_B43_FWV4_VERSION:=5.100.138
  60. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
  61. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  62. PKG_B43_FWV4_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
  63. PKG_B43_FWV4_HASH:=f1e7067aac5b62b67b8b6e4c517990277804339ac16065eb13c731ff909ae46f
  64. else
  65. PKG_B43_FWV4_NAME:=broadcom-wl
  66. PKG_B43_FWV4_VERSION:=4.150.10.5
  67. PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta_mimo.o
  68. PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
  69. PKG_B43_FWV4_SOURCE_URL:=@OPENWRT
  70. PKG_B43_FWV4_HASH:=a9f4e276a4d8d3a1cd0f2eb87080ae89b77f0a7140f06d4e9e2135fc44fdd533
  71. endif
  72. endif
  73. endif
  74. endif
  75. ifneq ($(CONFIG_B43_OPENFIRMWARE),)
  76. PKG_B43_FWV4_NAME:=broadcom-wl
  77. PKG_B43_FWV4_VERSION:=5.2
  78. PKG_B43_FWV4_OBJECT:=openfwwf-$(PKG_B43_FWV4_VERSION)
  79. PKG_B43_FWV4_SOURCE:=openfwwf-$(PKG_B43_FWV4_VERSION).tar.gz
  80. PKG_B43_FWV4_SOURCE_URL:=http://netweb.ing.unibs.it/~openfwwf/firmware
  81. PKG_B43_FWV4_HASH:=9de03320083201080b2e94b81637ac07a159cf4e6f3481383e1a217e627bc0dc
  82. endif
  83. define Download/b43
  84. FILE:=$(PKG_B43_FWV4_SOURCE)
  85. URL:=$(PKG_B43_FWV4_SOURCE_URL)
  86. HASH:=$(PKG_B43_FWV4_HASH)
  87. endef
  88. $(eval $(call Download,b43))
  89. define KernelPackage/b43
  90. $(call KernelPackage/mac80211/Default)
  91. TITLE:=Broadcom 43xx wireless support
  92. URL:=https://wireless.wiki.kernel.org/en/users/drivers/b43
  93. KCONFIG:= \
  94. CONFIG_HW_RANDOM=y
  95. # Depend on PCI_SUPPORT to make sure we can select kmod-bcma or kmod-ssb
  96. DEPENDS += \
  97. @PCI_SUPPORT +kmod-mac80211 +kmod-lib-cordic \
  98. $(if $(CONFIG_PACKAGE_B43_USE_SSB),+kmod-ssb) \
  99. $(if $(CONFIG_PACKAGE_B43_USE_BCMA),+kmod-bcma)
  100. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/b43/b43.ko
  101. AUTOLOAD:=$(call AutoProbe,b43)
  102. MENU:=1
  103. endef
  104. define KernelPackage/b43/config
  105. config PACKAGE_B43_USE_SSB
  106. select PACKAGE_kmod-ssb
  107. tristate
  108. depends on !TARGET_bcm47xx && !TARGET_bcm63xx
  109. default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_BCMA_AND_SSB
  110. default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_SSB
  111. config PACKAGE_B43_USE_BCMA
  112. select PACKAGE_kmod-bcma
  113. tristate
  114. depends on !TARGET_bcm47xx && !TARGET_bcm53xx
  115. default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_BCMA_AND_SSB
  116. default PACKAGE_kmod-b43 if PACKAGE_B43_BUSES_BCMA
  117. if PACKAGE_kmod-b43
  118. choice
  119. prompt "b43 firmware version"
  120. default B43_FW_5_100_138
  121. help
  122. This option allows you to select the version of the b43 firmware.
  123. config B43_FW_4_150
  124. bool "Firmware 410.2160 from driver 4.150.10.5 (old stable)"
  125. help
  126. Old stable firmware for BCM43xx devices.
  127. If unsure, select this.
  128. config B43_FW_4_178
  129. bool "Firmware 478.104 from driver 4.178.10.4"
  130. help
  131. Older firmware for BCM43xx devices.
  132. If unsure, select the "stable" firmware.
  133. config B43_FW_5_10
  134. bool "Firmware 508.1084 from driver 5.10.56.27"
  135. help
  136. Older firmware for BCM43xx devices.
  137. If unsure, select the "stable" firmware.
  138. config B43_FW_5_100_138
  139. bool "Firmware 666.2 from driver 5.100.138 (stable)"
  140. help
  141. The currently default firmware for BCM43xx devices.
  142. This firmware currently gets most of the testing and is needed for some N-PHY devices.
  143. If unsure, select the this firmware.
  144. config B43_FW_6_30
  145. bool "Firmware 784.2 from driver 6.30.163.46 (experimental)"
  146. help
  147. Newer experimental firmware for BCM43xx devices.
  148. This firmware is mostly untested.
  149. If unsure, select the "stable" firmware.
  150. config B43_OPENFIRMWARE
  151. bool "Open FirmWare for WiFi networks"
  152. help
  153. Opensource firmware for BCM43xx devices.
  154. Do _not_ select this, unless you know what you are doing.
  155. The Opensource firmware is not suitable for embedded devices, yet.
  156. It does not support QoS, which is bad for AccessPoints.
  157. It does not support hardware crypto acceleration, which is a showstopper
  158. for embedded devices with low CPU resources.
  159. If unsure, select the "stable" firmware.
  160. endchoice
  161. config B43_FW_SQUASH
  162. bool "Remove unnecessary firmware files"
  163. depends on !B43_OPENFIRMWARE
  164. default y
  165. help
  166. This options allows you to remove unnecessary b43 firmware files
  167. from the final rootfs image. This can reduce the rootfs size by
  168. up to 200k.
  169. If unsure, say Y.
  170. config B43_FW_SQUASH_COREREVS
  171. string "Core revisions to include"
  172. depends on B43_FW_SQUASH
  173. default "5,6,7,8,9,10,11,13,15" if TARGET_bcm47xx_legacy
  174. default "16,28,29,30" if TARGET_bcm47xx_mips74k
  175. default "5,6,7,8,9,10,11,13,15,16,28,29,30"
  176. help
  177. This is a comma separated list of core revision numbers.
  178. Example (keep files for rev5 only):
  179. 5
  180. Example (keep files for rev5 and rev11):
  181. 5,11
  182. config B43_FW_SQUASH_PHYTYPES
  183. string "PHY types to include"
  184. depends on B43_FW_SQUASH
  185. default "G,N,LP" if TARGET_bcm47xx_legacy
  186. default "N,HT" if TARGET_bcm47xx_mips74k
  187. default "G,N,LP,HT"
  188. help
  189. This is a comma separated list of PHY types:
  190. A => A-PHY
  191. AG => Dual A-PHY G-PHY
  192. G => G-PHY
  193. LP => LP-PHY
  194. N => N-PHY
  195. HT => HT-PHY
  196. LCN => LCN-PHY
  197. LCN40 => LCN40-PHY
  198. AC => AC-PHY
  199. Example (keep files for G-PHY only):
  200. G
  201. Example (keep files for G-PHY and N-PHY):
  202. G,N
  203. choice
  204. prompt "Supported buses"
  205. default PACKAGE_B43_BUSES_BCMA_AND_SSB
  206. help
  207. This allows choosing buses that b43 should support.
  208. config PACKAGE_B43_BUSES_BCMA_AND_SSB
  209. depends on !TARGET_bcm47xx_legacy && !TARGET_bcm47xx_mips74k && !TARGET_bcm53xx
  210. bool "BCMA and SSB"
  211. config PACKAGE_B43_BUSES_BCMA
  212. depends on !TARGET_bcm47xx_legacy
  213. bool "BCMA only"
  214. config PACKAGE_B43_BUSES_SSB
  215. depends on !TARGET_bcm47xx_mips74k && !TARGET_bcm53xx
  216. bool "SSB only"
  217. endchoice
  218. config PACKAGE_B43_DEBUG
  219. bool "Enable debug output and debugfs for b43"
  220. default n
  221. help
  222. Enable additional debug output and runtime sanity checks for b43
  223. and enables the debugfs interface.
  224. If unsure, say N.
  225. config PACKAGE_B43_PIO
  226. bool "Enable support for PIO transfer mode"
  227. default n
  228. help
  229. Enable support for using PIO instead of DMA. Unless you have DMA
  230. transfer problems you don't need this.
  231. If unsure, say N.
  232. config PACKAGE_B43_PHY_G
  233. bool "Enable support for G-PHYs"
  234. default n if TARGET_bcm47xx_mips74k
  235. default y
  236. help
  237. Enable support for G-PHY. This includes support for the following devices:
  238. PCI: BCM4306, BCM4311, BCM4318
  239. SoC: BCM5352E, BCM4712
  240. If unsure, say Y.
  241. config PACKAGE_B43_PHY_N
  242. bool "Enable support for N-PHYs"
  243. default y
  244. help
  245. Enable support for N-PHY. This includes support for the following devices:
  246. PCI: BCM4321, BCM4322, BCM43222, BCM43224, BCM43225
  247. SoC: BCM4716, BCM4717, BCM4718
  248. Currently only 11g speed is available.
  249. If unsure, say Y.
  250. config PACKAGE_B43_PHY_LP
  251. bool "Enable support for LP-PHYs"
  252. default n if TARGET_bcm47xx_mips74k
  253. default y
  254. help
  255. Enable support for LP-PHY. This includes support for the following devices:
  256. PCI: BCM4312
  257. SoC: BCM5354
  258. If unsure, say Y.
  259. config PACKAGE_B43_PHY_HT
  260. bool "Enable support for HT-PHYs"
  261. default n if TARGET_bcm47xx_legacy
  262. default y
  263. help
  264. Enable support for HT-PHY. This includes support for the following devices:
  265. PCI: BCM4331
  266. Currently only 11g speed is available.
  267. If unsure, say Y.
  268. config PACKAGE_B43_PHY_LCN
  269. bool "Enable support for LCN-PHYs"
  270. depends on BROKEN
  271. default n
  272. help
  273. Currently broken.
  274. If unsure, say N.
  275. endif
  276. endef
  277. define KernelPackage/b43/description
  278. Kernel module for Broadcom 43xx wireless support (mac80211 stack) new
  279. endef
  280. define KernelPackage/brcmutil
  281. $(call KernelPackage/mac80211/Default)
  282. TITLE:=Broadcom IEEE802.11n common driver parts
  283. URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
  284. DEPENDS+=@PCI_SUPPORT||USB_SUPPORT
  285. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko
  286. AUTOLOAD:=$(call AutoProbe,brcmutil)
  287. MENU:=1
  288. endef
  289. define KernelPackage/brcmutil/description
  290. This module contains some common parts needed by Broadcom Wireless drivers brcmsmac and brcmfmac.
  291. endef
  292. define KernelPackage/brcmutil/config
  293. if PACKAGE_kmod-brcmutil
  294. config PACKAGE_BRCM80211_DEBUG
  295. bool "Broadcom wireless driver debugging"
  296. help
  297. Say Y, if you want to debug brcmsmac and brcmfmac wireless driver.
  298. endif
  299. endef
  300. PKG_BRCMSMAC_FW_NAME:=broadcom-wl
  301. PKG_BRCMSMAC_FW_VERSION:=5.100.138
  302. PKG_BRCMSMAC_FW_OBJECT:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION)/linux/wl_apsta.o
  303. PKG_BRCMSMAC_FW_SOURCE:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION).tar.bz2
  304. PKG_BRCMSMAC_FW_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
  305. PKG_BRCMSMAC_FW_HASH:=f1e7067aac5b62b67b8b6e4c517990277804339ac16065eb13c731ff909ae46f
  306. define Download/brcmsmac
  307. FILE:=$(PKG_BRCMSMAC_FW_SOURCE)
  308. URL:=$(PKG_BRCMSMAC_FW_SOURCE_URL)
  309. HASH:=$(PKG_BRCMSMAC_FW_HASH)
  310. endef
  311. $(eval $(call Download,brcmsmac))
  312. define KernelPackage/brcmsmac
  313. $(call KernelPackage/mac80211/Default)
  314. TITLE:=Broadcom IEEE802.11n PCIe SoftMAC WLAN driver
  315. URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
  316. DEPENDS+=@!TARGET_bcm47xx_legacy +kmod-mac80211 +!TARGET_bcm47xx:kmod-bcma +kmod-lib-cordic +kmod-lib-crc8 +kmod-brcmutil +!BRCMSMAC_USE_FW_FROM_WL:brcmsmac-firmware
  317. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcmsmac.ko
  318. AUTOLOAD:=$(call AutoProbe,brcmsmac)
  319. MENU:=1
  320. endef
  321. define KernelPackage/brcmsmac/description
  322. Kernel module for Broadcom IEEE802.11n PCIe Wireless cards
  323. endef
  324. define KernelPackage/brcmsmac/config
  325. if PACKAGE_kmod-brcmsmac
  326. config BRCMSMAC_USE_FW_FROM_WL
  327. bool "Use firmware extracted from broadcom proprietary driver"
  328. default y
  329. help
  330. Instead of using the official brcmsmac firmware a firmware
  331. version 666.2 extracted from the proprietary Broadcom driver
  332. is used. This is needed to get core rev 17 used in bcm4716
  333. to work.
  334. If unsure, say Y.
  335. endif
  336. endef
  337. define KernelPackage/brcmfmac
  338. $(call KernelPackage/mac80211/Default)
  339. TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
  340. URL:=https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
  341. DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +@DRIVER_11AC_SUPPORT \
  342. +kmod-brcmutil +BRCMFMAC_SDIO:kmod-mmc @!TARGET_uml \
  343. +BRCMFMAC_USB:kmod-usb-core +BRCMFMAC_USB:brcmfmac-firmware-usb
  344. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
  345. AUTOLOAD:=$(call AutoProbe,brcmfmac)
  346. endef
  347. define KernelPackage/brcmfmac/description
  348. Kernel module for Broadcom IEEE802.11n USB Wireless cards
  349. endef
  350. define KernelPackage/brcmfmac/config
  351. if PACKAGE_kmod-brcmfmac
  352. config BRCMFMAC_SDIO
  353. bool "Enable SDIO bus interface support"
  354. default y if TARGET_bcm27xx
  355. default y if TARGET_imx_cortexa7
  356. default y if TARGET_sunxi
  357. default n
  358. help
  359. Enable support for cards attached to an SDIO bus.
  360. Select this option only if you are sure that your
  361. board has a Broadcom wireless chip atacched to
  362. that bus.
  363. config BRCMFMAC_USB
  364. bool "Enable USB bus interface support"
  365. depends on USB_SUPPORT
  366. default y
  367. help
  368. Supported USB connected chipsets:
  369. BCM43235, BCM43236, BCM43238 (all in revision 3 only)
  370. BCM43143, BCM43242, BCM43566, BCM43569
  371. config BRCMFMAC_PCIE
  372. bool "Enable PCIE bus interface support"
  373. depends on PCI_SUPPORT
  374. default y
  375. help
  376. Supported PCIe connected chipsets:
  377. BCM4354, BCM4356, BCM43567, BCM43570, BCM43602
  378. endif
  379. endef
  380. define KernelPackage/b43/install
  381. rm -rf $(1)/lib/firmware/
  382. ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
  383. tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
  384. else
  385. tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
  386. endif
  387. $(INSTALL_DIR) $(1)/lib/firmware/
  388. ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
  389. $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
  390. $(INSTALL_DIR) $(1)/lib/firmware/b43-open/
  391. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw
  392. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw
  393. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw
  394. else
  395. b43-fwcutter -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)
  396. endif
  397. ifneq ($(CONFIG_B43_FW_SQUASH),)
  398. b43-fwsquash.py "$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
  399. endif
  400. endef
  401. define KernelPackage/brcmsmac/install
  402. $(INSTALL_DIR) $(1)/lib/firmware/brcm
  403. ifeq ($(CONFIG_BRCMSMAC_USE_FW_FROM_WL),y)
  404. tar xjf "$(DL_DIR)/$(PKG_BRCMSMAC_FW_SOURCE)" -C "$(PKG_BUILD_DIR)"
  405. b43-fwcutter --brcmsmac -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_BRCMSMAC_FW_OBJECT)
  406. endif
  407. endef