firmware: add Intel/Lantiq VRX518 PPE firmware package
authorMartin Schiller <ms.3headeddevs@gmail.com>
Wed, 21 Aug 2019 06:32:09 +0000 (08:32 +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 tc 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_ppe_fw/Makefile [new file with mode: 0644]
package/kernel/lantiq/vrx518_tc/Makefile

diff --git a/package/firmware/lantiq/vrx518_ppe_fw/Makefile b/package/firmware/lantiq/vrx518_ppe_fw/Makefile
new file mode 100644 (file)
index 0000000..4c50521
--- /dev/null
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=vrx518_ppe_fw
+PKG_VERSION:=1.3.7
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://gitlab.com/prpl-foundation/intel/vrx518_ppe_fw.git
+PKG_SOURCE_VERSION:=47c48d52ba59df733ab21fd0c18f6d1a7b0e7229
+PKG_MIRROR_HASH:=33dd15b6c6205b5031498aac9a5a4876f8217aefea06dc511ac60ca1343b50d1
+
+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 PPE firmware
+  URL:=http://www.intel.com
+  DEPENDS:=@TARGET_ipq40xx
+endef
+
+define Package/$(PKG_NAME)/description
+  VRX518 PPE firmware
+endef
+
+define Build/Compile
+endef
+
+define Package/$(PKG_NAME)/install
+       $(INSTALL_DIR) $(1)/lib/firmware
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/platform/xrx500/LICENSE $(1)/lib/firmware/ppe_fw.bin.LICENSE
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/platform/xrx500/ppe_fw.bin $(1)/lib/firmware/
+endef
+
+$(eval $(call BuildPackage,$(PKG_NAME)))
index b05fb4bb637e6cd55a11528196146117a6e75e04..a5718d9d5b2a2db0704f8494a308c77a70a5f1b5 100644 (file)
@@ -28,8 +28,6 @@ include $(INCLUDE_DIR)/package.mk
 PLAT_DIR:=dcdp
 PKG_EXTMOD_SUBDIRS:=$(PLAT_DIR)
 
-# TODO this driver depends on the vrx518 ppe firmware, add this dependency if
-# that ever gets a compatible license
 define KernelPackage/$(PKG_NAME)
   SECTION:=sys
   CATEGORY:=Kernel modules
@@ -39,7 +37,7 @@ define KernelPackage/$(PKG_NAME)
     CONFIG_ATM_LANE=m \
     CONFIG_ATM_MPOA=m \
     CONFIG_ATM_MPOA_INTEL_DSL_PHY_SUPPORT=y
-  DEPENDS:=@TARGET_ipq40xx +kmod-vrx518_ep +kmod-crypto-md5 +kmod-atm +kmod-ipoa +br2684ctl
+  DEPENDS:=@TARGET_ipq40xx +kmod-vrx518_ep +vrx518_ppe_fw +kmod-crypto-md5 +kmod-atm +kmod-ipoa +br2684ctl
   AUTOLOAD:=$(call AutoLoad,27,vrx518_tc)
   FILES:=$(PKG_BUILD_DIR)/$(PLAT_DIR)/$(PKG_NAME).ko
 endef