ti-eth-fw: Only include information for supported machines
PATCH v2 1/3 ti-eth-fw: Only include information for supported machines
These other machines are not compatible with this recipe, no need to setup definitions for these.
--- meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-)
meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb +1 -17
@@ -3,7 +3,7 @@ SUMMARY = "TI Ethernet prebuilt binary firmware images" LICENSE = "TI-TFL" LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" -COMPATIBLE_MACHINE = "k3" +COMPATIBLE_MACHINE = "j721e|j7200|j784s4" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -22,15 +22,7 @@ inherit ti-secdev PLAT_SFX = "" PLAT_SFX:j721e = "j721e" PLAT_SFX:j7200 = "j7200" -PLAT_SFX:j721s2 = "j721s2" PLAT_SFX:j784s4 = "j784s4" -PLAT_SFX:j722s = "j722s" -PLAT_SFX:j742s2 = "j742s2" -PLAT_SFX:am65xx = "am65xx" -PLAT_SFX:am64xx = "am64xx" -PLAT_SFX:am62xx = "am62xx" -PLAT_SFX:am62pxx = "am62pxx" -PLAT_SFX:am62axx = "am62axx" ETH_FW_DIR = "ti-eth/${PLAT_SFX}"
@@ -41,15 +33,7 @@ ETH_FW = "app_remoteswitchcfg_server_strip.xer5f" ETH_FW_LIST = "" ETH_FW_LIST:j721e = "${ETH_FW}" ETH_FW_LIST:j7200 = "${ETH_FW}" -ETH_FW_LIST:j721s2 = "" ETH_FW_LIST:j784s4 = "${ETH_FW}" -ETH_FW_LIST:j722s = "" -ETH_FW_LIST:j742s2 = "" -ETH_FW_LIST:am65xx = "" -ETH_FW_LIST:am64xx = "" -ETH_FW_LIST:am62xx = "" -ETH_FW_LIST:am62pxx = "" -ETH_FW_LIST:am62axx = "" do_install() { # ETH firmware
Signature · 1 line
2.39.2
PATCH v2 2/3 ti-linux-fw: Set INHIBIT_DEFAULT_DEPS
Firmware here are not built, no need for C compiler nor std libs. Add INHIBIT_DEFAULT_DEPS=1 and remove the same from all recipes that include this file.
--- meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb | 2 -- meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb | 2 -- meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc | 3 +++ meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-echo-test-fw.bb | 2 -- 4 files changed, 3 insertions(+), 6 deletions(-)
meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb +0 -2
@@ -7,8 +7,6 @@ COMPATIBLE_MACHINE = "k3" PACKAGE_ARCH = "${MACHINE_ARCH}" -INHIBIT_DEFAULT_DEPS = "1" - inherit deploy inherit update-alternatives
meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb +0 -2
@@ -7,8 +7,6 @@ COMPATIBLE_MACHINE = "j721e|j7200|j784s4" PACKAGE_ARCH = "${MACHINE_ARCH}" -INHIBIT_DEFAULT_DEPS = "1" - inherit update-alternatives require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc +3 -0
@@ -43,6 +43,9 @@ INHIBIT_SYSROOT_STRIP = "1" # This is used to prevent the build system from splitting out the firmware debug info into a separate file INHIBIT_PACKAGE_DEBUG_SPLIT = "1" +# Firmware here are prebuilt with no external dependencies +INHIBIT_DEFAULT_DEPS = "1" + # Disable arch checking as firmware is likely to be a different arch from the Yocto build INSANE_SKIP:${PN} += "arch"
meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-echo-test-fw.bb +0 -2
@@ -7,8 +7,6 @@ COMPATIBLE_MACHINE = "k3" PACKAGE_ARCH = "${MACHINE_ARCH}" -INHIBIT_DEFAULT_DEPS = "1" - inherit update-alternatives PLAT_SFX = ""
Signature · 1 line
2.39.2
PATCH v2 3/3 ti-linux-fw: Split firmware in to machine packages
In reply to Andrew DavisFirmware, like kernel modules, may be only relevant to a small subset of hardware. Shipping all firmware for all hardware can waste space. For this reason modules are split out into packages, and the same should be done for firmware.
What we do currently is change the content of the package itself based on what device we are building for. Having a package change content for each machine means we cannot generate one image that supports multiple machines, nor host a common machine agnostic package repo.
Instead we can generate different packages for the different firmwares and only include the firmware packages needed for each machine.
--- meta-ti-bsp/conf/machine/include/am69.inc | 2 +- meta-ti-bsp/conf/machine/include/j7200.inc | 2 +- meta-ti-bsp/conf/machine/include/j721e.inc | 2 +- meta-ti-bsp/conf/machine/include/j784s4.inc | 2 +- .../recipes-bsp/ti-eth-fw/ti-eth-fw.bb | 76 ++++++++++--------- 5 files changed, 46 insertions(+), 38 deletions(-)
meta-ti-bsp/conf/machine/include/am69.inc +1 -1
@@ -18,4 +18,4 @@ TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw" +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw-j784s4"
meta-ti-bsp/conf/machine/include/j7200.inc +1 -1
@@ -26,4 +26,4 @@ TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw" +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw-j7200"
meta-ti-bsp/conf/machine/include/j721e.inc +1 -1
@@ -40,4 +40,4 @@ TI_VXE_VXD_DRIVER = "ti-vxe-vxd-driver" TI_VXE_VXD_DRIVER:bsp-ti-6_6 = "" TI_VXE_VXD_DRIVER:bsp-ti-6_1 = "" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw ${TI_VXE_VXD_DRIVER}" +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw-j721e ${TI_VXE_VXD_DRIVER}"
meta-ti-bsp/conf/machine/include/j784s4.inc +1 -1
@@ -21,4 +21,4 @@ TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw" +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw-j784s4"
meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb +42 -34
113 lines not on this page · raw message
Signature · 1 line
2.39.2