OpenAMP / meta-openamp

Yocto/OE meta layer to add OpenAMP support to your BSP or distro
MIT License
51 stars 33 forks source link

open-amp binaries missing in the rootfs of image after build #12

Open justdoGIT opened 5 years ago

justdoGIT commented 5 years ago

while adding libmetal and open-amp in the packagegroup recipe, I am getting the following error:

ERROR: core-image-special-pdm3-1.0-r0 do_rootfs: Could not invoke dnf. Command '/media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/oe-rootfs-repo --installroot=/media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/rootfs --setopt=logdir=/media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/temp --nogpgcheck install packagegroup-pdm3-fonts run-postinsts packagegroup-pdm3-base shadow packagegroup-pdm3-apps x11-setup-launcher-init packagegroup-core-x11 packagegroup-pdm3-qt packagegroup-core-tools-profile kernel-image-fitimage-4.14.79-yocto-standard packagegroup-core-tools-debug base-passwd packagegroup-core-ssh-openssh packagegroup-core-tools-testapps packagegroup-core-boot' returned 1:
Added oe-repo repo from /media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:00 ago on Wed 09 Jan 2019 11:17:45 AM UTC.
Error: 
 Problem: conflicting requests
  - nothing provides libopen-amp0 needed by packagegroup-pdm3-apps-1.0-r1.noarch

ERROR: core-image-special-pdm3-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/temp/log.do_rootfs.27879
ERROR: Task (/home/iepl/work/yocto_build/poky/../meta-pdm3/meta-ifm-pdm3/recipes-core/images/core-image-special-pdm3.bb:do_rootfs) failed with exit code '1'

The binaries are there in the workdir of the above-mentioned packages. Also, the packages-split folder doesn't have the binaries but only the libraries generated in it. But directly adding open-amp and libmetal to the image recipe creates the binaries in the rootfs folder. Is there anything needed in the open-amp recipe to add the packages to packagegroup recipe.

wjliang commented 5 years ago

Here is how petalinux have Open-AMP in the packagegroup:

https://github.com/Xilinx/meta-petalinux/blob/rel-v2018.3/recipes-core/packagegroups/packagegroup-petalinux-openamp.bb

You can take a look. Hope it can provide some hint.