firmware: add Intel/Lantiq VRX518 ACA firmware package
authorMartin Schiller <ms.3headeddevs@gmail.com>
Wed, 21 Aug 2019 06:05:06 +0000 (08:05 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Jul 2024 19:42:09 +0000 (21:42 +0200)
This firmware is used by the vrx518 ep driver.

Signed-off-by: Martin Schiller <ms.3headeddevs@gmail.com>
[update for new license]
Signed-off-by: Andre Heider <a.heider@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15550
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/firmware/lantiq/vrx518_aca_fw/Makefile [new file with mode: 0644]
package/kernel/lantiq/vrx518_ep/Makefile

diff --git a/package/firmware/lantiq/vrx518_aca_fw/Makefile b/package/firmware/lantiq/vrx518_aca_fw/Makefile
new file mode 100644 (file)
index 0000000..6b2361e
--- /dev/null
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=vrx518_aca_fw
+PKG_VERSION:=1.5.0
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://gitlab.com/prpl-foundation/intel/vrx518_aca_fw.git
+PKG_SOURCE_VERSION:=c509b89c77c26a7df0f0999aabf78b82ca9c9ff0
+PKG_MIRROR_HASH:=fba91071f18599617434d93e78c67dad91b3e4c5811b77c15961e3a13b506d2e
+
+PKG_LICENSE:=MaxLinear-Software-License-Agreement
+PKG_LICENSE_FILES:=platform/xrx500/LICENSE
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/$(PKG_NAME)
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  TITLE:=VRX518 ACA firmware
+  URL:=http://www.intel.com
+  DEPENDS:=@TARGET_ipq40xx
+endef
+
+define Package/$(PKG_NAME)/description
+  VRX518 ACA firmware
+endef
+
+define Build/Compile
+endef
+
+define Package/$(PKG_NAME)/install
+       $(INSTALL_DIR) $(1)/lib/firmware/09a9
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/platform/xrx500/LICENSE $(1)/lib/firmware/09a9/aca_fw.bin.LICENSE
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/platform/xrx500/aca_fw.bin $(1)/lib/firmware/09a9
+endef
+
+$(eval $(call BuildPackage,$(PKG_NAME)))
index b6477b19d6d2e2f576cd0b5c05ab7e21c8285e82..7518080a807053abd5020dc05a8dce637c762f72 100644 (file)
@@ -15,14 +15,12 @@ PKG_LICENSE:=GPL-2.0
 
 include $(INCLUDE_DIR)/package.mk
 
-# TODO this driver depends on the vrx518 aca firmware, add this dependency if
-# that ever gets a compatible license
 define KernelPackage/vrx518_ep
   SECTION:=sys
   CATEGORY:=Kernel modules
   SUBMENU:=Network Devices
   TITLE:=VRX518 EP Support
-  DEPENDS:=@TARGET_ipq40xx
+  DEPENDS:=@TARGET_ipq40xx +vrx518_aca_fw
   AUTOLOAD:=$(call AutoLoad,26,vrx518)
   FILES:=$(PKG_BUILD_DIR)/vrx518.ko
 endef