Re: [OpenWrt-Devel] [PATCH] Add BlueZ Firmware package

2018-06-20 Thread Alberto Bursi




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 
---


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

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add BlueZ Firmware package

2018-06-20 Thread Matej Kupljen

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 
---


diff --git a/package/firmware/bluez-firmware/Makefile 
b/package/firmware/bluez-firmware/Makefile

new file mode 100644
index 000..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@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel