summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-12-06 12:50:00 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-16 01:13:58 +0100
commitcb8efd3b4d94c83aefed6533e20b24961e9d054f (patch)
treee3c21c7baca1aa915b6aadec1694deb3a3e226ff /package
parenta63d01f1564397deb97ee679ab97e0bc60d41541 (diff)
downloadbuildroot-novena-cb8efd3b4d94c83aefed6533e20b24961e9d054f.tar.gz
buildroot-novena-cb8efd3b4d94c83aefed6533e20b24961e9d054f.zip
b43-firmware: new package
This package allows to download the Broadcom Wifi drivers, extract the firmware from them, and install them in /lib/firmware, so that they can be used by the open-source kernel driver b43. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/b43-firmware/Config.in25
-rw-r--r--package/b43-firmware/b43-firmware.mk29
3 files changed, 55 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 7607e9789..c605e6f88 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -198,6 +198,7 @@ endmenu
menu "Hardware handling"
source "package/acpid/Config.in"
+source "package/b43-firmware/Config.in"
source "package/cdrkit/Config.in"
source "package/dbus/Config.in"
source "package/dbus-glib/Config.in"
diff --git a/package/b43-firmware/Config.in b/package/b43-firmware/Config.in
new file mode 100644
index 000000000..ab7f4a787
--- /dev/null
+++ b/package/b43-firmware/Config.in
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_B43_FIRMWARE
+ bool "b43-firware"
+ help
+ Firmware for the Broadcom Wifi devices supported by the b43
+ kernel driver.
+
+if BR2_PACKAGE_B43_FIRMWARE
+
+choice
+ prompt "Kernel version"
+ default BR2_PACKAGE_B43_FIRMWARE_KERNEL_AFTER_3_2
+ help
+ Select the kernel version you're using. The b43 driver in
+ kernel >= 3.2 need a different firmware than the b43 drivers
+ from kernel < 3.2.
+
+ config BR2_PACKAGE_B43_FIRMWARE_KERNEL_AFTER_3_2
+ bool ">= 3.2"
+
+ config BR2_PACKAGE_B43_FIRMWARE_KERNEL_BEFORE_3_2
+ bool "< 3.2"
+
+endchoice
+
+endif
diff --git a/package/b43-firmware/b43-firmware.mk b/package/b43-firmware/b43-firmware.mk
new file mode 100644
index 000000000..a4383e4ca
--- /dev/null
+++ b/package/b43-firmware/b43-firmware.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# b43-firmware
+#
+#############################################################
+
+ifeq ($(BR2_PACKAGE_B43_FIRMWARE_KERNEL_AFTER_3_2),y)
+B43_FIRMWARE_VERSION = 5.100.138
+B43_FIRMWARE_SITE = http://www.lwfinger.com/b43-firmware/
+B43_FIRMWARE_SOURCE = broadcom-wl-$(B43_FIRMWARE_VERSION).tar.bz2
+B43_FIRMWARE_DRIVER_FILE = linux/wl_apsta.o
+else ifeq ($(BR2_PACKAGE_B43_FIRMWARE_KERNEL_BEFORE_3_2),y)
+B43_FIRMWARE_VERSION = 5.10.56.27.3
+B43_FIRMWARE_SITE = http://mirror2.openwrt.org/sources/
+B43_FIRMWARE_SOURCE = broadcom-wl-$(B43_FIRMWARE_VERSION)_mipsel.tar.bz2
+B43_FIRMWARE_DRIVER_FILE = driver/wl_apsta/wl_prebuilt.o
+endif
+
+B43_FIRMWARE_LICENSE = PROPRIETARY
+B43_FIRMWARE_REDISTRIBUTE = NO
+
+B43_FIRMWARE_DEPENDENCIES = host-b43-fwcutter
+
+define B43_FIRMWARE_INSTALL_TARGET_CMDS
+ $(INSTALL) -d -m 0755 $(TARGET_DIR)/lib/firmware/
+ $(HOST_DIR)/usr/bin/b43-fwcutter -w $(TARGET_DIR)/lib/firmware/ $(@D)/$(B43_FIRMWARE_DRIVER_FILE)
+endef
+
+$(eval $(generic-package))