[OpenWrt-Devel] [PATCH] Add BlueZ Firmware package
Matej Kupljen
matej at cloudmondo.com
Wed Jun 20 05:54:39 EDT 2018
Hi all,
the following patch adds a BlueZ Firmware support.
It was tested on Raspberry PI Zero W board only, but I believe it should
work also on other boards, since it is not board specific.
Signed-off-by: Matej Kupljen <matej at cloudmondo.com>
---
diff --git a/package/firmware/bluez-firmware/Makefile
b/package/firmware/bluez-firmware/Makefile
new file mode 100644
index 0000000..0f6046b
--- /dev/null
+++ b/package/firmware/bluez-firmware/Makefile
@@ -0,0 +1,38 @@
+#
+# Copyright (C) 2018 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=bluez-firmware
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/RPi-Distro/bluez-firmware.git
+PKG_SOURCE_DATE:=2018-06-15
+PKG_SOURCE_VERSION:=ade2bae1aaaebede09abb8fb546f767a0e4c7804
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/bluez-firmware
+ SECTION:=firmware
+ CATEGORY:=Firmware
+ URL:=$(PKG_SOURCE_URL)
+ TITLE:=BlueZ Firmware
+ DEPENDS:=
+endef
+
+define Package/bluez-firmware/compile
+endef
+
+define Package/bluez-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/brcm
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/broadcom/*.bin $(1)/lib/firmware/brcm
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/broadcom/*.hex $(1)/lib/firmware/brcm
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/broadcom/*.hcd $(1)/lib/firmware/brcm
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/broadcom/BCM-LEGAL.txt
$(1)/lib/firmware/brcm
+endef
+
+$(eval $(call BuildPackage,bluez-firmware))
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list