Skip to contentSkip to conversation

recipes-bsp: Do not use MACHINE_ARCH when package is not machine specific

PATCH In review Andrew Davis 2 participants 6 messages Mar 12, 2024 – Mar 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 recipes-bsp: Do not use MACHINE_ARCH when package is not machine specific

Most firmware does not run on the host and is therefor not architecture specific, at least as far as the package manager is concerned. Although the firmware might not be useful on some machines, the package itself is not machine specific. Remove PACKAGE_ARCH.

---
 meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb | 2 --
 meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb         | 2 --
 meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb     | 1 -
 meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb             | 2 --
 meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb   | 2 --
 meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb       | 2 --
 meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb   | 2 --
 meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb     | 2 --
 meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb | 2 --
 meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb              | 1 -
 meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb           | 1 -
 11 files changed, 19 deletions(-)
meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb +0 -2
index d88bca6e..ed1c7817 100644
@@ -10,8 +10,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "j721e|j721s2|j784s4"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET = "mhdp8546.bin"
 
 do_install() {
meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb +0 -2
index d1b99979..1a2e911c 100644
@@ -12,8 +12,6 @@ PR = "${INC_PR}.1"
 
 COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|am62axx|am62pxx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET_WAVE521C = "wave521c_codec_fw.bin"
 
 SOURCE_WAVE521C = "wave521c_k3_codec_fw.bin"
meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb +0 -1
index 61b1b986..95ba1e2d 100755
@@ -4,7 +4,6 @@ LICENSE = "TI-TFL"
 LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=04ad0a015d4bb63c2b9e7b112debf3db"
 
 PV = "6.2+git"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit update-alternatives
 
meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb +0 -2
index e58f2d58..ee3a94dc 100644
@@ -10,8 +10,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "dra7xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 ORIGIN = "DRA71x-RevA-GT9271_SpecDig_Config.bin"
 TARGET = "goodix_9271_cfg.bin"
 
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb +0 -2
index 2c0736ed..4b6ef75d 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET = " \
     am65x-sr2-pru0-prueth-fw.elf \
     am65x-sr2-pru1-prueth-fw.elf \
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb +0 -2
index 8b15ab7f..20b2bfb9 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "am65xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET = " \
     am65x-pru0-prueth-fw.elf \
     am65x-pru1-prueth-fw.elf \
meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb +0 -2
index ea39d73d..bc731094 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET = " \
     am65x-sr2-pru0-pruhsr-fw.elf \
     am65x-sr2-pru1-pruhsr-fw.elf \
meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb +0 -2
index 63c2d311..6e296e7c 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET = " \
     am65x-sr2-pru0-prusw-fw.elf \
     am65x-sr2-pru1-prusw-fw.elf \
meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb +0 -2
index d295a1c1..74729c16 100644
@@ -9,8 +9,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "j721e"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 TARGET = "pvdec_full_bin.fw"
 
 do_install() {
meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb +0 -1
index 7d16ae39..4ec09a70 100644
@@ -3,7 +3,6 @@ LICENSE = "TI-TSPA"
 LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3"
 
 COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 PR = "r1"
 
meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb +0 -1
index 2452d111..8af49577 100644
@@ -4,7 +4,6 @@ LICENSE = "TI-TSPA"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c"
 
 COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vpdma-fw/03-2012/exports/vpdma-fw_03-2012.tar.gz;protocol=http;name=dra7xx-evm"
 SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e"
Signature · 1 line
2.39.2
#2 lore raw

PATCH 3/5 pruhsr-fw: Combine PRU-HSR firmwares into single package

The firmware for different machines and versions are named differently so there is no need to have machine specific packages for each of these firmwares. Move all the PRU-HSR firmwares into single package.

---
 meta-ti-bsp/conf/machine/am65xx-evm.conf      |  2 +-
 meta-ti-bsp/conf/machine/include/am64xx.inc   |  2 +-
 .../pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb      | 24 -------------------
 .../pruhsr-fw/pruhsr-fw_2.17.25.bb            | 24 ++++++++++++-------
 4 files changed, 18 insertions(+), 34 deletions(-)
 delete mode 100644 meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb
meta-ti-bsp/conf/machine/am65xx-evm.conf +1 -1
index 3d8e11b4..7df93db7 100644
@@ -6,4 +6,4 @@ require conf/machine/include/am65xx.inc
 
 UBOOT_MACHINE = "am65x_evm_a53_defconfig"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am64xx.inc +1 -1
index fb71d271..de65829c 100644
@@ -21,4 +21,4 @@ TFA_BOARD = "lite"
 
 OPTEEMACHINE = "k3-am64x"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw-am65x-sr2"
meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb deleted +0 -24
deleted file mode 100644
index bc731094..00000000
@@ -1,24 +0,0 @@
-SUMMARY = "PRU HSR firmware for AM65xx SR2.0"
-
-require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
-
-PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
-PR = "${INC_PR}.0"
-
-COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
-
-TARGET = " \
-    am65x-sr2-pru0-pruhsr-fw.elf \
-    am65x-sr2-pru1-pruhsr-fw.elf \
-    am65x-sr2-rtu0-pruhsr-fw.elf \
-    am65x-sr2-rtu1-pruhsr-fw.elf \
-    am65x-sr2-txpru0-pruhsr-fw.elf \
-    am65x-sr2-txpru1-pruhsr-fw.elf \
-"
-
-do_install() {
-	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
-	for f in ${TARGET}; do
-		install -m 0644 ${S}/ti-pruss/$f ${D}${nonarch_base_libdir}/firmware/ti-pruss/$f
-	done
-}
meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb +16 -8
index fe99cb3e..3b06de9c 100644
@@ -1,18 +1,26 @@
-SUMMARY = "PRU HSR firmware for AM335x/AM437x/AM57xx"
+SUMMARY = "PRU HSR firmware"
 
 require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
 PE = "1"
 PR = "${INC_PR}.0"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx"
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|am65xx|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-TARGET = ""
-TARGET:ti33x = "am335x-pru0-pruhsr-fw.elf am335x-pru1-pruhsr-fw.elf"
-TARGET:ti43x = "am437x-pru0-pruhsr-fw.elf am437x-pru1-pruhsr-fw.elf"
-TARGET:am57xx = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf"
+TARGET = " \
+    am335x-pru0-pruhsr-fw.elf \
+    am335x-pru1-pruhsr-fw.elf \
+    am437x-pru0-pruhsr-fw.elf \
+    am437x-pru1-pruhsr-fw.elf \
+    am57xx-pru0-pruhsr-fw.elf \
+    am57xx-pru1-pruhsr-fw.elf \
+    am65x-sr2-pru0-pruhsr-fw.elf \
+    am65x-sr2-pru1-pruhsr-fw.elf \
+    am65x-sr2-rtu0-pruhsr-fw.elf \
+    am65x-sr2-rtu1-pruhsr-fw.elf \
+    am65x-sr2-txpru0-pruhsr-fw.elf \
+    am65x-sr2-txpru1-pruhsr-fw.elf \
+"
 
 do_install() {
 	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
Signature · 1 line
2.39.2
#3 lore raw

PATCH 4/5 prusw-fw: Combine PRU-Switch firmwares into single package

In reply to Andrew Davis

The firmware for different machines and versions are named differently so there is no need to have machine specific packages for each of these firmwares. Move all the PRU-Switch firmwares into single package.

---
 meta-ti-bsp/conf/machine/am65xx-evm.conf      |  2 +-
 meta-ti-bsp/conf/machine/include/am64xx.inc   |  2 +-
 .../prusw-fw/prusw-fw-am65x-sr2_git.bb        | 24 -------------------
 .../recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb    | 24 ++++++++++++-------
 4 files changed, 18 insertions(+), 34 deletions(-)
 delete mode 100644 meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb
meta-ti-bsp/conf/machine/am65xx-evm.conf +1 -1
index 7df93db7..60eed90f 100644
@@ -6,4 +6,4 @@ require conf/machine/include/am65xx.inc
 
 UBOOT_MACHINE = "am65x_evm_a53_defconfig"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw-am65x-sr2"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw"
meta-ti-bsp/conf/machine/include/am64xx.inc +1 -1
index de65829c..cfade2fa 100644
@@ -21,4 +21,4 @@ TFA_BOARD = "lite"
 
 OPTEEMACHINE = "k3-am64x"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw-am65x-sr2"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw"
meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb deleted +0 -24
deleted file mode 100644
index 6e296e7c..00000000
@@ -1,24 +0,0 @@
-SUMMARY = "PRU Ethernet Switch firmware for AM65xx SR2.0"
-
-require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
-
-PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
-PR = "${INC_PR}.0"
-
-COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
-
-TARGET = " \
-    am65x-sr2-pru0-prusw-fw.elf \
-    am65x-sr2-pru1-prusw-fw.elf \
-    am65x-sr2-rtu0-prusw-fw.elf \
-    am65x-sr2-rtu1-prusw-fw.elf \
-    am65x-sr2-txpru0-prusw-fw.elf \
-    am65x-sr2-txpru1-prusw-fw.elf \
-"
-
-do_install() {
-	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
-	for f in ${TARGET}; do
-		install -m 0644 ${S}/ti-pruss/$f ${D}${nonarch_base_libdir}/firmware/ti-pruss/$f
-	done
-}
meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb +16 -8
index 755f93b9..be407363 100644
@@ -1,17 +1,25 @@
-SUMMARY = "PRU Switch firmware for AM57xx, AM437x and AM335x"
+SUMMARY = "PRU Switch firmware"
 
 require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
 PR = "${INC_PR}.0"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx"
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|am65xx|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-TARGET = ""
-TARGET:ti33x = "am335x-pru0-prusw-fw.elf am335x-pru1-prusw-fw.elf"
-TARGET:ti43x = "am437x-pru0-prusw-fw.elf am437x-pru1-prusw-fw.elf"
-TARGET:am57xx = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf"
+TARGET = " \
+	am335x-pru0-prusw-fw.elf \
+	am335x-pru1-prusw-fw.elf \
+	am437x-pru0-prusw-fw.elf \
+	am437x-pru1-prusw-fw.elf \
+	am57xx-pru0-prusw-fw.elf \
+	am57xx-pru1-prusw-fw.elf \
+	am65x-sr2-pru0-prusw-fw.elf \
+	am65x-sr2-pru1-prusw-fw.elf \
+	am65x-sr2-rtu0-prusw-fw.elf \
+	am65x-sr2-rtu1-prusw-fw.elf \
+	am65x-sr2-txpru0-prusw-fw.elf \
+	am65x-sr2-txpru1-prusw-fw.elf \
+"
 
 do_install() {
 	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
Signature · 1 line
2.39.2
#4 lore raw

PATCH 5/5 pruprp-fw: Do not make this firmware package machine specific

In reply to Andrew Davis

This firmware is named so that the correct firmware is chosen on each machine. No need to split this package for each machine, combine them into one non-machine-specific package.

---
 .../recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb     | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb +8 -6
index 842621f6..9d5136c2 100644
@@ -7,12 +7,14 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-TARGET = ""
-TARGET:ti33x = "am335x-pru0-pruprp-fw.elf am335x-pru1-pruprp-fw.elf"
-TARGET:ti43x = "am437x-pru0-pruprp-fw.elf am437x-pru1-pruprp-fw.elf"
-TARGET:am57xx = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf"
+TARGET = " \
+	am335x-pru0-pruprp-fw.elf \
+	am335x-pru1-pruprp-fw.elf \
+	am437x-pru0-pruprp-fw.elf \
+	am437x-pru1-pruprp-fw.elf \
+	am57xx-pru0-pruprp-fw.elf \
+	am57xx-pru1-pruprp-fw.elf \
+"
 
 do_install() {
 	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/5 prueth-fw: Combine PRU-ETH firmwares into single package

In reply to Andrew Davis

The firmware for different machines and versions are named differently so there is no need to have machine specific packages for each of these firmwares. Move all the PRU-ETH firmwares into single package.

---
 meta-ti-bsp/conf/machine/am65xx-evm.conf      |  2 +-
 meta-ti-bsp/conf/machine/include/am64xx.inc   |  2 +-
 meta-ti-bsp/conf/machine/include/am65xx.inc   |  2 +-
 .../prueth-fw/prueth-fw-am65x-sr2_git.bb      | 24 ----------------
 .../prueth-fw/prueth-fw-am65x_git.bb          | 22 ---------------
 .../recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb | 28 +++++++++++++------
 6 files changed, 23 insertions(+), 57 deletions(-)
 delete mode 100644 meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb
 delete mode 100644 meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb
meta-ti-bsp/conf/machine/am65xx-evm.conf +1 -1
index f6eb6f0c..3d8e11b4 100644
@@ -6,4 +6,4 @@ require conf/machine/include/am65xx.inc
 
 UBOOT_MACHINE = "am65x_evm_a53_defconfig"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am64xx.inc +1 -1
index 85652eef..fb71d271 100644
@@ -21,4 +21,4 @@ TFA_BOARD = "lite"
 
 OPTEEMACHINE = "k3-am64x"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am65xx.inc +1 -1
index 7c9d5fb1..80a7744a 100644
@@ -26,4 +26,4 @@ TFA_BOARD = "generic"
 
 OPTEEMACHINE = "k3-am65x"
 
-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw"
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb deleted +0 -24
deleted file mode 100644
index 4b6ef75d..00000000
@@ -1,24 +0,0 @@
-SUMMARY = "PRU Ethernet firmware for AM65xx SR2.0"
-
-require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
-
-PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
-PR = "${INC_PR}.0"
-
-COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
-
-TARGET = " \
-    am65x-sr2-pru0-prueth-fw.elf \
-    am65x-sr2-pru1-prueth-fw.elf \
-    am65x-sr2-rtu0-prueth-fw.elf \
-    am65x-sr2-rtu1-prueth-fw.elf \
-    am65x-sr2-txpru0-prueth-fw.elf \
-    am65x-sr2-txpru1-prueth-fw.elf \
-"
-
-do_install() {
-	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
-	for f in ${TARGET}; do
-		install -m 0644 ${S}/ti-pruss/$f ${D}${nonarch_base_libdir}/firmware/ti-pruss/$f
-	done
-}
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb deleted +0 -22
deleted file mode 100644
index 20b2bfb9..00000000
@@ -1,22 +0,0 @@
-SUMMARY = "PRU Ethernet firmware for AM65x SR1.0"
-
-require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
-
-PV = "${PRUETH_FW_AM65X_VERSION}"
-PR = "${INC_PR}.0"
-
-COMPATIBLE_MACHINE = "am65xx"
-
-TARGET = " \
-    am65x-pru0-prueth-fw.elf \
-    am65x-pru1-prueth-fw.elf \
-    am65x-rtu0-prueth-fw.elf \
-    am65x-rtu1-prueth-fw.elf \
-"
-
-do_install() {
-	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
-	for f in ${TARGET}; do
-		install -m 0644 ${S}/ti-pruss/$f ${D}${nonarch_base_libdir}/firmware/ti-pruss/$f
-	done
-}
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb +20 -8
index 463f3faa..b85355e4 100644
@@ -1,17 +1,29 @@
-SUMMARY = "PRU Ethernet firmware for AM57xx, AM437x and AM335x"
+SUMMARY = "PRU Ethernet firmware"
 
 require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 
 PR = "${INC_PR}.0"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx"
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|am65xx|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-TARGET = ""
-TARGET:ti33x = "am335x-pru0-prueth-fw.elf am335x-pru1-prueth-fw.elf"
-TARGET:ti43x = "am437x-pru0-prueth-fw.elf am437x-pru1-prueth-fw.elf"
-TARGET:am57xx = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf"
+TARGET = " \
+    am335x-pru0-prueth-fw.elf \
+    am335x-pru1-prueth-fw.elf \
+    am437x-pru0-prueth-fw.elf \
+    am437x-pru1-prueth-fw.elf \
+    am57xx-pru0-prueth-fw.elf \
+    am57xx-pru1-prueth-fw.elf \
+    am65x-pru0-prueth-fw.elf \
+    am65x-pru1-prueth-fw.elf \
+    am65x-rtu0-prueth-fw.elf \
+    am65x-rtu1-prueth-fw.elf \
+    am65x-sr2-pru0-prueth-fw.elf \
+    am65x-sr2-pru1-prueth-fw.elf \
+    am65x-sr2-rtu0-prueth-fw.elf \
+    am65x-sr2-rtu1-prueth-fw.elf \
+    am65x-sr2-txpru0-prueth-fw.elf \
+    am65x-sr2-txpru1-prueth-fw.elf \
+"
 
 do_install() {
 	install -d ${D}${nonarch_base_libdir}/firmware/ti-pruss
Signature · 1 line
2.39.2
#5 lore raw
In reply to Andrew Davis
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org

Most firmware does not run on the host and is therefor not architecture specific, at least as far as the package manager is concerned. Although the firmware might not be useful on some machines, the package itself is not machine specific. Remove ZjQcmQRYFpfptBannerStart
This message was sent from outside of Texas Instruments.
Do not click links or open attachments unless you recognize the source of this email and know the content is safe.
ZjQcmQRYFpfptBannerEnd
Most firmware does not run on the host and is therefor not architecture

s/therefor/therefore

Quoted 171 lines

specific, at least as far as the package manager is concerned. Although the firmware might not be useful on some machines, the package itself is not machine specific. Remove PACKAGE_ARCH.

---
  meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb | 2 --
  meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb         | 2 --
  meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb     | 1 -
  meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb             | 2 --
  meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb   | 2 --
  meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb       | 2 --
  meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb   | 2 --
  meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb     | 2 --
  meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb | 2 --
  meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb              | 1 -
  meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb           | 1 -
  11 files changed, 19 deletions(-)
meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb +0 -2
index d88bca6e..ed1c7817 100644
@@ -10,8 +10,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "j721e|j721s2|j784s4"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET = "mhdp8546.bin"
 
  do_install() {
meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb +0 -2
index d1b99979..1a2e911c 100644
@@ -12,8 +12,6 @@ PR = "${INC_PR}.1"
 
  COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|am62axx|am62pxx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET_WAVE521C = "wave521c_codec_fw.bin"
 
  SOURCE_WAVE521C = "wave521c_k3_codec_fw.bin"
meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb +0 -1
index 61b1b986..95ba1e2d 100755
@@ -4,7 +4,6 @@ LICENSE = "TI-TFL"
  LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=04ad0a015d4bb63c2b9e7b112debf3db"
 
  PV = "6.2+git"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
  inherit update-alternatives
 
meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb +0 -2
index e58f2d58..ee3a94dc 100644
@@ -10,8 +10,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "dra7xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  ORIGIN = "DRA71x-RevA-GT9271_SpecDig_Config.bin"
  TARGET = "goodix_9271_cfg.bin"
 
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb +0 -2
index 2c0736ed..4b6ef75d 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET = " \
      am65x-sr2-pru0-prueth-fw.elf \
      am65x-sr2-pru1-prueth-fw.elf \
meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb +0 -2
index 8b15ab7f..20b2bfb9 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "am65xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET = " \
      am65x-pru0-prueth-fw.elf \
      am65x-pru1-prueth-fw.elf \
meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw-am65x-sr2_git.bb +0 -2
index ea39d73d..bc731094 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET = " \
      am65x-sr2-pru0-pruhsr-fw.elf \
      am65x-sr2-pru1-pruhsr-fw.elf \
meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb +0 -2
index 63c2d311..6e296e7c 100644
@@ -7,8 +7,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "am65xx-evm|am64xx"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET = " \
      am65x-sr2-pru0-prusw-fw.elf \
      am65x-sr2-pru1-prusw-fw.elf \
meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb +0 -2
index d295a1c1..74729c16 100644
@@ -9,8 +9,6 @@ PR = "${INC_PR}.0"
 
  COMPATIBLE_MACHINE = "j721e"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
  TARGET = "pvdec_full_bin.fw"
 
  do_install() {
meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb +0 -1
index 7d16ae39..4ec09a70 100644
@@ -3,7 +3,6 @@ LICENSE = "TI-TSPA"
  LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3"
 
  COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
  PR = "r1"
 
meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb +0 -1
index 2452d111..8af49577 100644
@@ -4,7 +4,6 @@ LICENSE = "TI-TSPA"
  LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c"
 
  COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
  SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vpdma-fw/03-2012/exports/vpdma-fw_03-2012.tar.gz;protocol=http;name=dra7xx-evm"
  SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e"
Signature · 10 lines
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17516): https://urldefense.com/v3/__https://lists.yoctoproject.org/g/meta-ti/message/17516__;!!G3vK!SOWH7xa4sXTpNoXJeNKUQ88iApWOwwFwJtcOijUMYwpuP_T9_QszPWk8CoNoG_d9HQ2hWNbH6aUMkVuEet7_K6qiBRhQ$
Mute This Topic: https://urldefense.com/v3/__https://lists.yoctoproject.org/mt/104886932/7030289__;!!G3vK!SOWH7xa4sXTpNoXJeNKUQ88iApWOwwFwJtcOijUMYwpuP_T9_QszPWk8CoNoG_d9HQ2hWNbH6aUMkVuEet7_KyWG9S8P$
Group Owner: [email protected]
Unsubscribe: https://urldefense.com/v3/__https://lists.yoctoproject.org/g/meta-ti/unsub__;!!G3vK!SOWH7xa4sXTpNoXJeNKUQ88iApWOwwFwJtcOijUMYwpuP_T9_QszPWk8CoNoG_d9HQ2hWNbH6aUMkVuEet7_K5vyG5Av$  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-