murata-firmware: add new package
authorThomas Richard <thomas.richard@bootlin.com>
Thu, 10 Oct 2024 15:19:38 +0000 (17:19 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 28 Nov 2024 18:48:32 +0000 (18:48 +0000)
This package contains firmwares provided by Murata.
See https://community.murata.com/.

Murata firmwares are used by wifi chip on stm32 boards.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/16716
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 960f5f94d7cefe89abd41347124fd3f0fbb945ae)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/firmware/murata-firmware/Makefile [new file with mode: 0644]

diff --git a/package/firmware/murata-firmware/Makefile b/package/firmware/murata-firmware/Makefile
new file mode 100644 (file)
index 0000000..1d9efda
--- /dev/null
@@ -0,0 +1,57 @@
+#
+# Copyright (C) 2024 Bootlin
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=murata-firmware
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_DATE:=2024-09-12
+PKG_SOURCE_URL:=https://github.com/murata-wireless/cyw-fmac-fw.git
+PKG_MIRROR_HASH:=26f8a2df800666daab183b2842e5b3d591b1e5b31769d5429f9d70527f43d152
+PKG_SOURCE_VERSION:=50ac17bb65b2342cd954d49d9bc492709d431c3c
+
+PKG_MAINTAINER:=Thomas Richard <thomas.richard@bootlin.com>
+PKG_LICENSE_FILES:=LICENCE
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/murata-firmware-default
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  URL:=https://community.murata.com/
+endef
+
+define Build/Compile
+endef
+
+define Package/murata-firmware-43430-sdio
+  $(Package/murata-firmware-default)
+  TITLE:=BCM43430 FullMac SDIO firmware
+  CONFLICTS:=cypress-firmware-43430-sdio
+endef
+
+define Package/murata-firmware-43430-sdio/install
+       $(INSTALL_DIR) $(1)/lib/firmware/murata
+       $(INSTALL_DATA) \
+               $(PKG_BUILD_DIR)/cyfmac43430-sdio.bin \
+               $(1)/lib/firmware/murata/
+       $(INSTALL_DATA) \
+               $(PKG_BUILD_DIR)/cyfmac43430-sdio.1DX.clm_blob \
+               $(1)/lib/firmware/murata/
+       $(INSTALL_DIR) $(1)/lib/firmware/brcm
+       $(LN) \
+               ../murata/cyfmac43430-sdio.bin \
+               $(1)/lib/firmware/brcm/brcmfmac43430-sdio.bin
+       $(LN) \
+               ../murata/cyfmac43430-sdio.1DX.clm_blob \
+               $(1)/lib/firmware/brcm/brcmfmac43430-sdio.clm_blob
+endef
+
+$(eval $(call BuildPackage,murata-firmware-43430-sdio))
+