conf: machine: move RDEPENDS and RRECOMMENDS from kernel-rdepends.inc
RFC PATCH 1/1 conf: machine: move RDEPENDS and RRECOMMENDS from kernel-rdepends.inc
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with lots of machine-override appends that are hard to modify downstream, use proper MACHINE_ESSENTIAL_EXTRA_RDEPENDS and MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS vars that are specifically designed for this purpose.
This also makes such dependencies generic and not tied to a particular kernel recipe including kernel-rdepends.inc with the entire machine-specific list.
--- meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 - meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 - 22 files changed, 37 insertions(+), 56 deletions(-) delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
meta-ti-bsp/conf/machine/am65xx-evm.conf +2 -0
@@ -5,3 +5,5 @@ 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"
meta-ti-bsp/conf/machine/beagle-x15.conf +0 -2
@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen" SERIAL_CONSOLES = "115200;ttyS2" UBOOT_MACHINE = "am57xx_evm_config" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0 -4
@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"
meta-ti-bsp/conf/machine/beaglebone.conf +0 -4
@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen" MACHINE_FEATURES += "screen" SERIAL_CONSOLES = "115200;ttyS0" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"
meta-ti-bsp/conf/machine/beagleplay.conf +0 -4
@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""
meta-ti-bsp/conf/machine/include/am62axx.inc +2 -0
@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am62x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"
meta-ti-bsp/conf/machine/include/am64xx.inc +2 -0
@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am64x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am65xx.inc +2 -0
@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-am65x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"
meta-ti-bsp/conf/machine/include/j7200.inc +2 -0
@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"
meta-ti-bsp/conf/machine/include/j721e.inc +2 -0
@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw"
meta-ti-bsp/conf/machine/include/j721s2.inc +2 -0
@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"
meta-ti-bsp/conf/machine/include/j784s4.inc +2 -0
@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw"
meta-ti-bsp/conf/machine/include/k3.inc +2 -0
@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" + TFA_PLATFORM = "k3" # Use the expected value of the ubifs filesystem's volume name in the kernel
meta-ti-bsp/conf/machine/include/omap-a15.inc +4 -0
@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fw prueth-fw prusw-fw pruhsr-fw pruprp-fw" + # Use the expected value of the ubifs filesystem's volume name in the kernel # and u-boot. UBI_VOLNAME = "rootfs"
meta-ti-bsp/conf/machine/include/omapl138.inc +2 -0
@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + MACHINE_FEATURES = "serial usbhost usbgadget alsa"
meta-ti-bsp/conf/machine/include/ti-soc.inc +4 -0
@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides. SOC_FAMILY = "ti-soc" + +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" KERNEL_DTB_OVERLAY_SUPPORT ?= "1" + require conf/machine/include/soc-family.inc
meta-ti-bsp/conf/machine/include/ti33x.inc +4 -0
@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" + # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 alsa gpu"
meta-ti-bsp/conf/machine/include/ti43x.inc +5 -1
@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot. UBI_VOLNAME = "rootfs" -EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0 -38
@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" - -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"
meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0 -1
@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" inherit kernel -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0 -1
@@ -9,7 +9,6 @@ inherit kernel DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0 -1
@@ -7,7 +7,6 @@ inherit ti-secdev inherit kernel require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
Signature · 1 line
2.25.1
Quoted 7 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with lots of machine-override appends that are hard to modify downstream, use proper
MACHINE_ESSENTIAL_EXTRA_RDEPENDSandMACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvars that are specifically designed for this purpose.
Quoted 5 lines
This also makes such dependencies generic and not tied to a particular kernel recipe including kernel-rdepends.inc with the entire machine-specific list.
Signed-off-by Denys Dmytriyenko <[email protected]>---
Quoted 327 lines
meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 - meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 - 22 files changed, 37 insertions(+), 56 deletions(-)delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
meta-ti-bsp/conf/machine/am65xx-evm.conf +2
-0@@ -5,3 +5,5 @@ 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"meta-ti-bsp/conf/machine/beagle-x15.conf +0
-2@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen" SERIAL_CONSOLES = "115200;ttyS2" UBOOT_MACHINE = "am57xx_evm_config" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-4@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"meta-ti-bsp/conf/machine/beaglebone.conf +0
-4@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen" MACHINE_FEATURES += "screen" SERIAL_CONSOLES = "115200;ttyS0" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"meta-ti-bsp/conf/machine/beagleplay.conf +0
-4@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""meta-ti-bsp/conf/machine/include/am62axx.inc +2
-0@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am62x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"meta-ti-bsp/conf/machine/include/am64xx.inc +2
-0@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am64x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"meta-ti-bsp/conf/machine/include/am65xx.inc +2
-0@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-am65x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"meta-ti-bsp/conf/machine/include/j7200.inc +2
-0@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"meta-ti-bsp/conf/machine/include/j721e.inc +2
-0@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw"meta-ti-bsp/conf/machine/include/j721s2.inc +2
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"meta-ti-bsp/conf/machine/include/j784s4.inc +2
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw"meta-ti-bsp/conf/machine/include/k3.inc +2
-0@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" + TFA_PLATFORM = "k3" # Use the expected value of the ubifs filesystem's volume name in the kernelmeta-ti-bsp/conf/machine/include/omap-a15.inc +4
-0@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fw prueth-fw prusw-fw pruhsr-fw pruprp-fw" + # Use the expected value of the ubifs filesystem's volume name in the kernel # and u-boot. UBI_VOLNAME = "rootfs"meta-ti-bsp/conf/machine/include/omapl138.inc +2
-0@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + MACHINE_FEATURES = "serial usbhost usbgadget alsa"meta-ti-bsp/conf/machine/include/ti-soc.inc +4
-0@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides. SOC_FAMILY = "ti-soc" + +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" KERNEL_DTB_OVERLAY_SUPPORT ?= "1" + require conf/machine/include/soc-family.incmeta-ti-bsp/conf/machine/include/ti33x.inc +4
-0@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" + # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 alsa gpu"meta-ti-bsp/conf/machine/include/ti43x.inc +5
-1@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot. UBI_VOLNAME = "rootfs" -EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu"meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-38@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" - -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0
-1@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" inherit kernel -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0
-1@@ -9,7 +9,6 @@ inherit kernel DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0
-2@@ -7,7 +7,6 @@ inherit ti-secdev inherit kernel require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#17175): https://lists.yoctoproject.org/g/meta-ti/message/17175
Mute This Topic: https://lists.yoctoproject.org/mt/102141624/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/6695306/3619733/2033773410/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Ryan Eatmon
Acked-byQuoted 8 lines · Andrew Davis via lists.yoctoproject.org
Quoted 7 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with lots of machine-override appends that are hard to modify downstream, use proper
MACHINE_ESSENTIAL_EXTRA_RDEPENDSandMACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvars that are specifically designed for this purpose.
Quoted 7 lines
Quoted 5 lines
This also makes such dependencies generic and not tied to a particular kernel recipe including kernel-rdepends.inc with the entire machine-specific list.
Signed-off-by Denys Dmytriyenko <[email protected]>---
Acked-by Andrew Davis <[email protected]>
Quoted 321 lines
Quoted 300 lines
meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 -
meta-ti-bsp/conf/machine/beaglebone-ai64.conf| 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 -22 files changed, 37 insertions(+), 56 deletions(-)delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
meta-ti-bsp/conf/machine/am65xx-evm.conf +0
-0@@ -5,3 +5,5 @@require conf/machine/include/am65xx.inc
UBOOT_MACHINE= "am65x_evm_a53_defconfig"meta-ti-bsp/conf/machine/am65xx-evm.conf +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/beagle-x15.conf +0
-0@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen"
SERIAL_CONSOLES= "115200;ttyS2"
UBOOT_MACHINE= "am57xx_evm_config"meta-ti-bsp/conf/machine/beagle-x15.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-0@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \"
MACHINE_GUI_CLASS= "bigscreen"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-image"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"meta-ti-bsp/conf/machine/beaglebone.conf +0
-0@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen"
MACHINE_FEATURES+= "screen"
SERIAL_CONSOLES= "115200;ttyS0"meta-ti-bsp/conf/machine/beaglebone.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"meta-ti-bsp/conf/machine/beagleplay.conf +0
-0@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \"
MACHINE_GUI_CLASS= "bigscreen"meta-ti-bsp/conf/machine/beagleplay.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-image"
meta-ti-bsp/conf/machine/beagleplay.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""meta-ti-bsp/conf/machine/include/am62axx.inc +0
-0@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin"
TFA_BOARD= "lite"
OPTEEMACHINE = "k3-am62x"meta-ti-bsp/conf/machine/include/am62axx.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"meta-ti-bsp/conf/machine/include/am64xx.inc +0
-0@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin"
TFA_BOARD= "lite"
OPTEEMACHINE = "k3-am64x"meta-ti-bsp/conf/machine/include/am64xx.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am65xx.inc +0
-0@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-am65x"meta-ti-bsp/conf/machine/include/am65xx.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"meta-ti-bsp/conf/machine/include/j7200.inc +0
-0@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j721e"meta-ti-bsp/conf/machine/include/j7200.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"meta-ti-bsp/conf/machine/include/j721e.inc +0
-0@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j721e"meta-ti-bsp/conf/machine/include/j721e.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fwti-eth-fw"
meta-ti-bsp/conf/machine/include/j721s2.inc +0
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?="ti-img-rogue-driver"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j784s4"meta-ti-bsp/conf/machine/include/j721s2.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"meta-ti-bsp/conf/machine/include/j784s4.inc +0
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?="ti-img-rogue-driver"
TFA_BOARD= "j784s4"
OPTEEMACHINE = "k3-j784s4"meta-ti-bsp/conf/machine/include/j784s4.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fwti-eth-fw"
meta-ti-bsp/conf/machine/include/k3.inc +0
-0@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/k3.inc +2
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" +
TFA_PLATFORM= "k3"
# Use the expected value of the ubifs filesystem's volume name in the kernelmeta-ti-bsp/conf/machine/include/omap-a15.inc +0
-0@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/omap-a15.inc +3
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fw prueth-fwprusw-fw pruhsr-fw pruprp-fw"
+
# Use the expected value of the ubifs filesystem's volume name in the kernel# and u-boot. UBI_VOLNAME = "rootfs"meta-ti-bsp/conf/machine/include/omapl138.inc +0
-0@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/omapl138.inc +2
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" +
MACHINE_FEATURES= "serial usbhost usbgadget alsa"meta-ti-bsp/conf/machine/include/ti-soc.inc +0
-0@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides.
SOC_FAMILY= "ti-soc"meta-ti-bsp/conf/machine/include/ti-soc.inc +3
-0+ +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
KERNEL_DTB_OVERLAY_SUPPORT?= "1"
+
require conf/machine/include/soc-family.incmeta-ti-bsp/conf/machine/include/ti33x.inc +0
-0@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/ti33x.inc +3
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fwpruprp-fw"
+
# List common SoC features, may need to add touchscreen for specific machinesMACHINE_FEATURES= "apm usbgadget usbhost vfat ext2 alsa gpu"meta-ti-bsp/conf/machine/include/ti43x.inc +0
-0@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot.
UBI_VOLNAME= "rootfs"meta-ti-bsp/conf/machine/include/ti43x.inc +5
-1-EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fwpruprp-fw"
# List common SoC features, may need to add touchscreen for specific machinesMACHINE_FEATURES= "apm usbgadget usbhost vfat ext2 screen alsa gpu"meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-15@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = " prueth-fwprusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-2-RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-18- -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0
-0@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" inherit kernel
-require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0
-0@@ -9,7 +9,6 @@ inherit kernel
DEFCONFIG_BUILDER= "${S}/ti_config_fragments/defconfig_builder.sh"
require recipes-kernel/linux/setup-defconfig.inc
-require recipes-kernel/linux/kernel-rdepends.inc
require recipes-kernel/linux/ti-kernel.inc
include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' ifd.getVar('KERNEL_DEVICETREE_PREFIX')else ''}meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0
-0@@ -7,7 +7,6 @@ inherit ti-secdevQuoted 11 lines
inherit kernel
require recipes-kernel/linux/setup-defconfig.inc
-require recipes-kernel/linux/kernel-rdepends.inc
require recipes-kernel/linux/ti-kernel.inc
include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' ifd.getVar('KERNEL_DEVICETREE_PREFIX')else ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' ifd.getVar('TI_EXTRAS')else ''}-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17176): https://lists.yoctoproject.org/g/meta-ti/message/17176
Mute This Topic: https://lists.yoctoproject.org/mt/102141624/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Quoted 19 lines · Ryan Eatmon
Quoted 16 lines · Andrew Davis via lists.yoctoproject.org
Quoted 15 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with
lots of machine-override appends that are hard to modify downstream, use properMACHINE_ESSENTIAL_EXTRA_RDEPENDSandMACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvars
that are specifically designed for this purpose.This also makes such dependencies generic and not tied to a particular kernel
recipe including kernel-rdepends.inc with the entire machine-specific list.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
Acked-by Andrew Davis <[email protected]>Acked-by Ryan Eatmon <[email protected]>
Should I resend this patch w/o RFC tag? Or will you pick it up as is?
Quoted 340 lines
Quoted 340 lines
Quoted 340 lines
meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 -
meta-ti-bsp/conf/machine/beaglebone-ai64.conf| 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 -22 files changed, 37 insertions(+), 56 deletions(-)delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
meta-ti-bsp/conf/machine/am65xx-evm.conf +0
-0@@ -5,3 +5,5 @@require conf/machine/include/am65xx.inc
UBOOT_MACHINE= "am65x_evm_a53_defconfig"meta-ti-bsp/conf/machine/am65xx-evm.conf +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/beagle-x15.conf +0
-0@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen"
SERIAL_CONSOLES= "115200;ttyS2"
UBOOT_MACHINE= "am57xx_evm_config"meta-ti-bsp/conf/machine/beagle-x15.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-0@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \"
MACHINE_GUI_CLASS= "bigscreen"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-image"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"meta-ti-bsp/conf/machine/beaglebone.conf +0
-0@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen"
MACHINE_FEATURES+= "screen"
SERIAL_CONSOLES= "115200;ttyS0"meta-ti-bsp/conf/machine/beaglebone.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"meta-ti-bsp/conf/machine/beagleplay.conf +0
-0@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \"
MACHINE_GUI_CLASS= "bigscreen"meta-ti-bsp/conf/machine/beagleplay.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-image"
meta-ti-bsp/conf/machine/beagleplay.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""meta-ti-bsp/conf/machine/include/am62axx.inc +0
-0@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin"
TFA_BOARD= "lite"
OPTEEMACHINE = "k3-am62x"meta-ti-bsp/conf/machine/include/am62axx.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"meta-ti-bsp/conf/machine/include/am64xx.inc +0
-0@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin"
TFA_BOARD= "lite"
OPTEEMACHINE = "k3-am64x"meta-ti-bsp/conf/machine/include/am64xx.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am65xx.inc +0
-0@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-am65x"meta-ti-bsp/conf/machine/include/am65xx.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"meta-ti-bsp/conf/machine/include/j7200.inc +0
-0@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j721e"meta-ti-bsp/conf/machine/include/j7200.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"meta-ti-bsp/conf/machine/include/j721e.inc +0
-0@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j721e"meta-ti-bsp/conf/machine/include/j721e.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fwvxd-dec-fw ti-eth-fw"
meta-ti-bsp/conf/machine/include/j721s2.inc +0
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?="ti-img-rogue-driver"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j784s4"meta-ti-bsp/conf/machine/include/j721s2.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"meta-ti-bsp/conf/machine/include/j784s4.inc +0
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?="ti-img-rogue-driver"
TFA_BOARD= "j784s4"
OPTEEMACHINE = "k3-j784s4"meta-ti-bsp/conf/machine/include/j784s4.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fwcnm-wave-fw ti-eth-fw"
meta-ti-bsp/conf/machine/include/k3.inc +0
-0@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/k3.inc +2
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" +
TFA_PLATFORM= "k3"
# Use the expected value of the ubifs filesystem's volume name in the kernelmeta-ti-bsp/conf/machine/include/omap-a15.inc +0
-0@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/omap-a15.inc +3
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fwprueth-fw prusw-fw pruhsr-fw pruprp-fw"
+
# Use the expected value of the ubifs filesystem's volume name in the kernel# and u-boot. UBI_VOLNAME = "rootfs"meta-ti-bsp/conf/machine/include/omapl138.inc +0
-0@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/omapl138.inc +2
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" +
MACHINE_FEATURES= "serial usbhost usbgadget alsa"meta-ti-bsp/conf/machine/include/ti-soc.inc +0
-0@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides.
SOC_FAMILY= "ti-soc"meta-ti-bsp/conf/machine/include/ti-soc.inc +3
-0+ +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
KERNEL_DTB_OVERLAY_SUPPORT?= "1"
+
require conf/machine/include/soc-family.incmeta-ti-bsp/conf/machine/include/ti33x.inc +0
-0@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs"
EXTRA_IMAGEDEPENDS+= "virtual/bootloader"meta-ti-bsp/conf/machine/include/ti33x.inc +3
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fwpruhsr-fw pruprp-fw"
+
# List common SoC features, may need to add touchscreen for specific machines
MACHINE_FEATURES= "apm usbgadget usbhost vfat ext2 alsa gpu"meta-ti-bsp/conf/machine/include/ti43x.inc +0
-0@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot.
UBI_VOLNAME= "rootfs"meta-ti-bsp/conf/machine/include/ti43x.inc +5
-1-EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fwpruhsr-fw pruprp-fw"
# List common SoC features, may need to add touchscreen for specific machines
MACHINE_FEATURES= "apm usbgadget usbhost vfat ext2 screen alsa gpu" diff --git a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted file mode 100644
index 266a7ef5..00000000meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-15@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = "prueth-fw prusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-2-RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-18- -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb index
dfa46f48..a7b5ca74100644meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0
-0@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" inherit kernel
-require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb index7f3911e4..0cf0a319100644meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0
-0@@ -9,7 +9,6 @@ inherit kernel
DEFCONFIG_BUILDER= "${S}/ti_config_fragments/defconfig_builder.sh" require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc
require recipes-kernel/linux/ti-kernel.inc
include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' ifd.getVar('KERNEL_DEVICETREE_PREFIX')else ''}
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb index66be6944..ee106a7f100644meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0
-0@@ -7,7 +7,6 @@ inherit ti-secdevinherit kernel
require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' ifd.getVar('KERNEL_DEVICETREE_PREFIX')else ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' ifd.getVar('TI_EXTRAS')else ''}
Quoted 20 lines · Denys Dmytriyenko
Quoted 19 lines · Ryan Eatmon
Quoted 16 lines · Andrew Davis via lists.yoctoproject.org
Quoted 15 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with
lots of machine-override appends that are hard to modify downstream, use properMACHINE_ESSENTIAL_EXTRA_RDEPENDSandMACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvars
that are specifically designed for this purpose.This also makes such dependencies generic and not tied to a particular kernel
recipe including kernel-rdepends.inc with the entire machine-specific list.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Denys Dmytriyenko <[email protected]>---
Acked-by Andrew Davis <[email protected]>Acked-by Ryan Eatmon <[email protected]>Should I resend this patch w/o RFC tag? Or will you pick it up as is?
I can pick it up as is.
Quoted 341 lines
Quoted 341 lines
Quoted 341 lines
Quoted 341 lines
meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 - meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 - 22 files changed, 37 insertions(+), 56 deletions(-)delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
meta-ti-bsp/conf/machine/am65xx-evm.conf +2
-0@@ -5,3 +5,5 @@ require conf/machine/include/am65xx.inc UBOOT_MACHINE = "am65x_evm_a53_defconfig" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/beagle-x15.conf +0
-2@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen" SERIAL_CONSOLES = "115200;ttyS2" UBOOT_MACHINE = "am57xx_evm_config" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-2@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-image"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"meta-ti-bsp/conf/machine/beaglebone.conf +0
-2@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen" MACHINE_FEATURES += "screen" SERIAL_CONSOLES = "115200;ttyS0" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-zimage"
meta-ti-bsp/conf/machine/beaglebone.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"meta-ti-bsp/conf/machine/beagleplay.conf +0
-2@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetreekernel-image-image"
meta-ti-bsp/conf/machine/beagleplay.conf +0
-2- -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""meta-ti-bsp/conf/machine/include/am62axx.inc +2
-0@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am62x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"meta-ti-bsp/conf/machine/include/am64xx.inc +2
-0@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am64x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/include/am65xx.inc +2
-0@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-am65x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"meta-ti-bsp/conf/machine/include/j7200.inc +2
-0@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"meta-ti-bsp/conf/machine/include/j721e.inc +2
-0@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fwvxd-dec-fw ti-eth-fw"
meta-ti-bsp/conf/machine/include/j721s2.inc +0
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?="ti-img-rogue-driver"
TFA_BOARD= "generic"
OPTEEMACHINE = "k3-j784s4"meta-ti-bsp/conf/machine/include/j721s2.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"meta-ti-bsp/conf/machine/include/j784s4.inc +0
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?="ti-img-rogue-driver"
TFA_BOARD= "j784s4"
OPTEEMACHINE = "k3-j784s4"meta-ti-bsp/conf/machine/include/j784s4.inc +2
-0+ +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fwcnm-wave-fw ti-eth-fw"
meta-ti-bsp/conf/machine/include/k3.inc +2
-0@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" + TFA_PLATFORM = "k3" # Use the expected value of the ubifs filesystem's volume namein the kernel
meta-ti-bsp/conf/machine/include/omap-a15.inc +3
-0@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fwprueth-fw prusw-fw pruhsr-fw pruprp-fw"
+
# Use the expected value of the ubifs filesystem's volume name
in the kernel# and u-boot. UBI_VOLNAME = "rootfs"meta-ti-bsp/conf/machine/include/omapl138.inc +2
-0@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + MACHINE_FEATURES = "serial usbhost usbgadget alsa"meta-ti-bsp/conf/machine/include/ti-soc.inc +4
-0@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides. SOC_FAMILY = "ti-soc" + +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" KERNEL_DTB_OVERLAY_SUPPORT ?= "1" + require conf/machine/include/soc-family.incmeta-ti-bsp/conf/machine/include/ti33x.inc +3
-0@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fwpruhsr-fw pruprp-fw"
+
# List common SoC features, may need to add touchscreen for
specific machines
MACHINE_FEATURES= "apm usbgadget usbhost vfat ext2 alsa gpu"meta-ti-bsp/conf/machine/include/ti43x.inc +5
-1@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot. UBI_VOLNAME = "rootfs" -EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fwpruhsr-fw pruprp-fw"
# List common SoC features, may need to add touchscreen for
specific machines
MACHINE_FEATURES= "apm usbgadget usbhost vfat ext2 screen alsa gpu"
diff --git a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted file mode 100644
index 266a7ef5..00000000meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-15@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = "prueth-fw prusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-2-RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-18- -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb index
dfa46f48..a7b5ca74100644meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0
-0@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
inherit kernel
-require recipes-kernel/linux/kernel-rdepends.inc
require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb index7f3911e4..0cf0a319100644meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0
-1@@ -9,7 +9,6 @@ inherit kernel DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if
d.getVar('KERNEL_DEVICETREE_PREFIX')else ''} diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb index66be6944..ee106a7f100644meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0
-1@@ -7,7 +7,6 @@ inherit ti-secdev inherit kernel require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if
d.getVar('KERNEL_DEVICETREE_PREFIX')else ''}
include ${@ 'recipes-kernel/linux/ti-extras.inc' ifd.getVar('TI_EXTRAS')else ''}
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Quoted 181 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with lots of machine-override appends that are hard to modify downstream, use proper
MACHINE_ESSENTIAL_EXTRA_RDEPENDSandMACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvars that are specifically designed for this purpose.This also makes such dependencies generic and not tied to a particular kernel recipe including kernel-rdepends.inc with the entire machine-specific list.
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 - meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 - 22 files changed, 37 insertions(+), 56 deletions(-)delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
meta-ti-bsp/conf/machine/am65xx-evm.conf +2
-0@@ -5,3 +5,5 @@ 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"meta-ti-bsp/conf/machine/beagle-x15.conf +0
-2@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen" SERIAL_CONSOLES = "115200;ttyS2" UBOOT_MACHINE = "am57xx_evm_config" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-4@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"meta-ti-bsp/conf/machine/beaglebone.conf +0
-4@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen" MACHINE_FEATURES += "screen" SERIAL_CONSOLES = "115200;ttyS0" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"meta-ti-bsp/conf/machine/beagleplay.conf +0
-4@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""meta-ti-bsp/conf/machine/include/am62axx.inc +2
-0@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am62x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"meta-ti-bsp/conf/machine/include/am64xx.inc +2
-0@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am64x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"meta-ti-bsp/conf/machine/include/am65xx.inc +2
-0@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-am65x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"meta-ti-bsp/conf/machine/include/j7200.inc +2
-0@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"meta-ti-bsp/conf/machine/include/j721e.inc +2
-0@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw"meta-ti-bsp/conf/machine/include/j721s2.inc +2
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"meta-ti-bsp/conf/machine/include/j784s4.inc +2
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw"meta-ti-bsp/conf/machine/include/k3.inc +2
-0@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" + TFA_PLATFORM = "k3" # Use the expected value of the ubifs filesystem's volume name in the kernelmeta-ti-bsp/conf/machine/include/omap-a15.inc +0
-0
meta-ti-bsp/conf/machine/include/omap-a15.inc UBOOT_SUFFIX = "img" · line 46
Quoted 7 lines
meta-ti-bsp/conf/machine/include/omap-a15.inc +4
-0@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fw prueth-fw prusw-fw pruhsr-fw pruprp-fw" +
This breaks dra7xx-evm and dra7xx-hs-evm builds. prusw-fw is not compatible with that platform. At least according to the recipes. I think this needs a little rework.
Quoted 151 lines
meta-ti-bsp/conf/machine/include/omap-a15.inc +0
-0# Use the expected value of the ubifs filesystem's volume name in the kernel # and u-boot. UBI_VOLNAME = "rootfs"meta-ti-bsp/conf/machine/include/omapl138.inc +2
-0@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + MACHINE_FEATURES = "serial usbhost usbgadget alsa"meta-ti-bsp/conf/machine/include/ti-soc.inc +4
-0@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides. SOC_FAMILY = "ti-soc" + +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" KERNEL_DTB_OVERLAY_SUPPORT ?= "1" + require conf/machine/include/soc-family.incmeta-ti-bsp/conf/machine/include/ti33x.inc +4
-0@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" + # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 alsa gpu"meta-ti-bsp/conf/machine/include/ti43x.inc +5
-1@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot. UBI_VOLNAME = "rootfs" -EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu"meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-38@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" - -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0
-1@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" inherit kernel -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0
-1@@ -9,7 +9,6 @@ inherit kernel DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0
-2@@ -7,7 +7,6 @@ inherit ti-secdev inherit kernel require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#17175): https://lists.yoctoproject.org/g/meta-ti/message/17175
Mute This Topic: https://lists.yoctoproject.org/mt/102141624/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/10828724/6551054/1815494134/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Quoted 170 lines · Ryan Eatmon
Quoted 167 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Instead of making kernel RDEPENDS on devicetree and different FW images with lots of machine-override appends that are hard to modify downstream, use proper
MACHINE_ESSENTIAL_EXTRA_RDEPENDSandMACHINE_ESSENTIAL_EXTRA_RRECOMMENDSvars that are specifically designed for this purpose.This also makes such dependencies generic and not tied to a particular kernel recipe including kernel-rdepends.inc with the entire machine-specific list.
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-ti-bsp/conf/machine/am65xx-evm.conf | 2 + meta-ti-bsp/conf/machine/beagle-x15.conf | 2 - meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 4 -- meta-ti-bsp/conf/machine/beaglebone.conf | 4 -- meta-ti-bsp/conf/machine/beagleplay.conf | 4 -- meta-ti-bsp/conf/machine/include/am62axx.inc | 2 + meta-ti-bsp/conf/machine/include/am64xx.inc | 2 + meta-ti-bsp/conf/machine/include/am65xx.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/j721s2.inc | 2 + meta-ti-bsp/conf/machine/include/j784s4.inc | 2 + meta-ti-bsp/conf/machine/include/k3.inc | 2 + meta-ti-bsp/conf/machine/include/omap-a15.inc | 4 ++ meta-ti-bsp/conf/machine/include/omapl138.inc | 2 + meta-ti-bsp/conf/machine/include/ti-soc.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti33x.inc | 4 ++ meta-ti-bsp/conf/machine/include/ti43x.inc | 6 ++- .../recipes-kernel/linux/kernel-rdepends.inc | 38 ------------------- .../linux/linux-ti-mainline_git.bb | 1 - .../linux/linux-ti-staging_5.10.bb | 1 - .../linux/linux-ti-staging_6.1.bb | 1 - 22 files changed, 37 insertions(+), 56 deletions(-) delete mode 100644 meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.incmeta-ti-bsp/conf/machine/am65xx-evm.conf +2
-0@@ -5,3 +5,5 @@ 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"meta-ti-bsp/conf/machine/beagle-x15.conf +0
-2@@ -19,5 +19,3 @@ MACHINE_GUI_CLASS = "bigscreen" SERIAL_CONSOLES = "115200;ttyS2" UBOOT_MACHINE = "am57xx_evm_config" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +0
-4@@ -24,7 +24,3 @@ ti/k3-j721e-sk.dtb \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw"meta-ti-bsp/conf/machine/beaglebone.conf +0
-4@@ -21,7 +21,3 @@ MACHINE_GUI_CLASS = "bigscreen" MACHINE_FEATURES += "screen" SERIAL_CONSOLES = "115200;ttyS0" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-zimage" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3"meta-ti-bsp/conf/machine/beagleplay.conf +0
-4@@ -42,7 +42,3 @@ ti/k3-am625-sk-rpi-hdr-pwm.dtbo \ " MACHINE_GUI_CLASS = "bigscreen" - -MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image" - -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += ""meta-ti-bsp/conf/machine/include/am62axx.inc +2
-0@@ -16,3 +16,5 @@ IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am62x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw"meta-ti-bsp/conf/machine/include/am64xx.inc +2
-0@@ -20,3 +20,5 @@ IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin" TFA_BOARD = "lite" OPTEEMACHINE = "k3-am64x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"meta-ti-bsp/conf/machine/include/am65xx.inc +2
-0@@ -25,3 +25,5 @@ IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-am65x" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x"meta-ti-bsp/conf/machine/include/j7200.inc +2
-0@@ -4,3 +4,5 @@ SOC_FAMILY:append = ":j7200" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw"meta-ti-bsp/conf/machine/include/j721e.inc +2
-0@@ -23,3 +23,5 @@ IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j721e" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw"meta-ti-bsp/conf/machine/include/j721s2.inc +2
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "generic" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"meta-ti-bsp/conf/machine/include/j784s4.inc +2
-0@@ -9,3 +9,5 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw"meta-ti-bsp/conf/machine/include/k3.inc +2
-0@@ -40,6 +40,8 @@ FIT_SIGN_ALG ?= "rsa4096" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" + TFA_PLATFORM = "k3" # Use the expected value of the ubifs filesystem's volume name in the kernelmeta-ti-bsp/conf/machine/include/omap-a15.inc +0
-0@@ -40,6 +40,10 @@ UBOOT_SUFFIX = "img" EXTRA_IMAGEDEPENDS += "virtual/bootloader"
Quoted 8 lines
meta-ti-bsp/conf/machine/include/omap-a15.inc UBOOT_SUFFIX = "img" · line 46
Quoted 4 lines
meta-ti-bsp/conf/machine/include/omap-a15.inc +4
-0+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "vpdma-fw goodix-fw prueth-fw prusw-fw pruhsr-fw pruprp-fw" +This breaks dra7xx-evm and dra7xx-hs-evm builds. prusw-fw is not compatible with that platform. At least according to the recipes. I think this needs a little rework.
Well, it should work on dra7xx as well as am57xx, but I guess this was one of the instances of "it was only tested on one platform, but not the other".
Some time ago Andrew was trying to unify these omap-a15/dra7xx/am57xx bits, but that got abandoned due to extensive software differences in the distro imposed by different target markets of those platforms. We should probably revisit that again at some point...
For now I'll move the PRU pieces to am57xx config in v2.
Quoted 127 lines
Quoted 127 lines
meta-ti-bsp/conf/machine/include/omap-a15.inc +0
-0# Use the expected value of the ubifs filesystem's volume name in the kernel # and u-boot. UBI_VOLNAME = "rootfs"meta-ti-bsp/conf/machine/include/omapl138.inc +2
-0@@ -11,4 +11,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + MACHINE_FEATURES = "serial usbhost usbgadget alsa"meta-ti-bsp/conf/machine/include/ti-soc.inc +4
-0@@ -1,5 +1,9 @@ # This is a generic TI SOC family. It is a superset of all other SOCs # and platforms defined in meta-ti to allow BSP-level overrides. SOC_FAMILY = "ti-soc" + +# TI platforms all use devicetrees with overlays +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" KERNEL_DTB_OVERLAY_SUPPORT ?= "1" + require conf/machine/include/soc-family.incmeta-ti-bsp/conf/machine/include/ti33x.inc +4
-0@@ -63,6 +63,10 @@ UBI_VOLNAME = "rootfs" EXTRA_IMAGEDEPENDS += "virtual/bootloader" +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" + # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 alsa gpu"meta-ti-bsp/conf/machine/include/ti43x.inc +5
-1@@ -57,7 +57,11 @@ UBOOT_SUFFIX = "img" # and u-boot. UBI_VOLNAME = "rootfs" -EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "virtual/bootloader" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-zimage" + +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "amx3-cm3 prueth-fw pruhsr-fw pruprp-fw" # List common SoC features, may need to add touchscreen for specific machines MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu"meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc deleted +0
-38@@ -1,38 +0,0 @@ -# Pull in the devicetree files into the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" - -# Add run-time dependency for PM firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" - -# Add run-time dependency for VPE VPDMA firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" - -# Add run-time dependency for Goodix firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" - -# Add run-time dependency for PRU Ethernet firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx = " prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" - -# Add run-time dependency for Cadence MHDP firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cadence-mhdp-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cadence-mhdp-fw" - -# Add run-time dependency for Video Decoding firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw" - -# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw" - -# Add run-time dependency for TI ETH firmware to the rootfs -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7200 = " ti-eth-fw" -RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " ti-eth-fw"meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +0
-1@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" inherit kernel -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb +0
-1@@ -9,7 +9,6 @@ inherit kernel DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +0
-1@@ -7,7 +7,6 @@ inherit ti-secdev inherit kernel require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/kernel-rdepends.inc require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}