Skip to content

meta-ros layer need to be present even if petalinux-image-minimal is built #40

@cg-sat

Description

@cg-sat

The line inherit ros_distro_${ROS_DISTRO} in https://github.com/Xilinx/meta-petalinux/blob/master/recipes-core/packagegroups/packagegroup-petalinux-ros.bb#L6 makes it necessary that the meta-ros layer is lying around, because no other layer provides a ros_distro_*.bbclass.

To reduce the amount of code to checkout, I patched the meta-petalinux repository with the following patch:

diff --git a/recipes-core/packagegroups/packagegroup-petalinux-ros.bb b/recipes-core/packagegroups/packagegroup-petalinux-ros.bb
index c9d6de8..faffa50 100644
--- a/recipes-core/packagegroups/packagegroup-petalinux-ros.bb
+++ b/recipes-core/packagegroups/packagegroup-petalinux-ros.bb
@@ -3,7 +3,6 @@ DESCRIPTION = "PetaLinux packages for ROS2 Base and Demos including some basic p
 PACKAGE_ARCH = "${TUNE_PKGARCH}"
 
 inherit packagegroup
-inherit ros_distro_${ROS_DISTRO}
 
 PROVIDES = "${PACKAGES}"
 

I'm using the rel-v2024.1 branch, but this issue is also present in the rel-v2024.2 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions