diff mbox series

[OpenWrt-Devel] Add BlueZ Firmware package

Message ID 752fe1f5-ec4c-6246-90db-8b0739a77edf@cloudmondo.com
State Changes Requested
Delegated to: John Crispin
Headers show
Series [OpenWrt-Devel] Add BlueZ Firmware package | expand

Commit Message

Matej Kupljen June 20, 2018, 9:54 a.m. UTC
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@cloudmondo.com>
---


+$(eval $(call BuildPackage,bluez-firmware))

Comments

Alberto Bursi June 20, 2018, 10:04 a.m. UTC | #1
On 20/06/2018 11:54, Matej Kupljen wrote:
> 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@cloudmondo.com>
> ---

Bluez package is in community package repository, 
https://github.com/openwrt/packages so the firmwares should go there as 
well. Please open a PR in that github repository.

This is bluez packages makefile, for example 
https://github.com/openwrt/packages/blob/master/utils/bluez/Makefile

-Alberto
diff mbox series

Patch

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
+