2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=b43legacy-firmware
11 PKG_VERSION
:=3.130.20.0
14 DL_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=wl_apsta-
$(PKG_VERSION
).o
17 PKG_SOURCE_URL
:=@OPENWRT
18 PKG_HASH
:=7dba610b1d96dd14e901bcbce14cd6ecd1b1ac6f5c0035b0d6b6dc46a7c3ef90
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/b43legacy-firmware
25 URL
:=$(PKG_SOURCE_URL
)
26 TITLE
:=Broadcom bcm43xx b43legacy firmware
29 define Package
/b43legacy-firmware
/config
30 if PACKAGE_b43legacy-firmware
32 config B43LEGACY_FW_SQUASH
33 bool
"Remove unnecessary firmware files"
36 This options allows you to remove unnecessary b43legacy firmware files
37 from the final rootfs image. This can reduce the rootfs size by
42 config B43LEGACY_FW_SQUASH_COREREVS
43 string
"Core revisions to include"
44 depends on B43LEGACY_FW_SQUASH
47 This is a comma separated list of core revision numbers.
49 Example
(keep files for rev4 only
):
52 Example
(keep files for rev2 and rev4
):
59 mkdir
-p
$(PKG_BUILD_DIR
)
66 define Package
/b43legacy-firmware
/install
67 $(INSTALL_DIR
) $(1)/lib
/firmware
68 b43-fwcutter
--unsupported
-w
$(1)/lib
/firmware
/ $(DL_DIR
)/$(PKG_SOURCE
)
69 ifneq ($(CONFIG_B43LEGACY_FW_SQUASH
),)
70 b43-fwsquash.py
"G" "$(CONFIG_B43LEGACY_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43legacy"
74 $(eval
$(call BuildPackage
,b43legacy-firmware
))