cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bitblit11
Adventurer
Adventurer
5,412 Views
Registered: ‎06-13-2017

Bitbake recipe help

Jump to solution

I'm porting Xenomai 3.0.5 to Petalinux 2017.1.  I wrote the iPipe patch and it at least passes the smoke test.  Now I'm trying to add the Xenomai user utilities to the Petalinux rootfs as a bitbake application.  I just upgraded from Petalinux 2015.4 to 2017.1 so bitbake recipes are completely foreign to me.  I started with an old bitbake recipe for Xenomai 2.6.3 I found online.  I got it to compile but the rootfs packaging step complains about an empty package.  I think the problem is my not fully understanding the ${PN}-dbg ${PN}-staticdev ${PN}-dev packages.  I've attached my bitbake recipe.  Could somebody point me to documentation that would explain what these different packages mean, what should go in them, and why I'm getting the empty package error?

0 Kudos
1 Solution

Accepted Solutions
bitblit11
Adventurer
Adventurer
8,205 Views
Registered: ‎06-13-2017

I found a good explanation at:

 

http://www.embeddedlinux.org.cn/OEManual/recipes_packages.html

 

With that, I figured everything out and got Xenomai 3.0.5 running on Petalinux 2017.1. 

View solution in original post

3 Replies
bitblit11
Adventurer
Adventurer
5,408 Views
Registered: ‎06-13-2017

This is the error I get when I run petalinux-build:

 

vagrant@vagrant:~/projects/zedboard$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |###########################################################################################################################################################################################################################################| Time: 0:00:06
Loaded 3234 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:10
Parsing of 2447 .bb files complete (2413 cached, 34 parsed). 3237 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |######################################################################################################################################################################################################################################| Time: 0:00:38
Checking sstate mirror object availability: 100% |##############################################################################################################################################################################################################| Time: 0:00:08
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: xenomai-userspace-utils-1.0-r0 do_package_qa: QA Issue: xenomai-userspace-utils-dev rdepends on xenomai-userspace-utils, but it isn't a build dependency? [build-deps]
WARNING: xenomai-userspace-utils-1.0-r0 do_package_qa: QA Issue: /usr/xenomai/bin/arm-xilinx-linux-gnueabi-xeno-test contained in package xenomai-userspace-utils-dev requires /usr/xenomai/bin/xeno-test-run, but no providers found in RDEPENDS_xenomai-userspace-utils-dev? [file-rdeps]
WARNING: xenomai-userspace-utils-1.0-r0 do_package_qa: QA Issue: xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libpsos.so.0.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libcobalt.so.2.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libalchemy.so.0.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libvxworks.so.0.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libsmokey.so.0.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libcopperplate.so.0.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libanalogy.so.1.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libtrank.so.0.0.0
xenomai-userspace-utils-dbg: found library in wrong location: /usr/xenomai/lib/.debug/libmodechk.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libpsos.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libpsos.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libcobalt.so.2.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libtrank.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libalchemy.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libvxworks.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libcopperplate.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libsmokey.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libcobalt.so.2
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libcopperplate.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libvxworks.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libsmokey.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libmodechk.so.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libcobalt.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libanalogy.so.1.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libmodechk.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libanalogy.so.1
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libalchemy.so.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libcopperplate.so.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libsmokey.so.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libvxworks.so.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libtrank.so.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libtrank.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libalchemy.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libanalogy.so
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libmodechk.so.0.0.0
xenomai-userspace-utils-dev: found library in wrong location: /usr/xenomai/lib/libpsos.so.0 [libdir]
ERROR: petalinux-user-image-1.0-r0 do_rootfs: xenomai-userspace-utils not found in the feeds (plnx_arm cortexa9t2hf-neon cortexa9t2hf-vfp cortexa9hf-neon cortexa9hf-vfp armv7at2hf-neon armv7ahf-neon armv7at2hf-vfp armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp noarch any all) in /home/vagrant/projects/zedboard/build/tmp/deploy/rpm.
ERROR: petalinux-user-image-1.0-r0 do_rootfs: This is often caused by an empty package declared in a recipe's PACKAGES variable. (Empty packages are not constructed unless ALLOW_EMPTY_<pkg> = '1' is used.)
ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/vagrant/projects/zedboard/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_rootfs.30928
ERROR: Task (/home/vagrant/projects/zedboard/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2443 tasks of which 2436 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/vagrant/projects/zedboard/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs
Summary: There were 3 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!
0 Kudos
bitblit11
Adventurer
Adventurer
8,206 Views
Registered: ‎06-13-2017

I found a good explanation at:

 

http://www.embeddedlinux.org.cn/OEManual/recipes_packages.html

 

With that, I figured everything out and got Xenomai 3.0.5 running on Petalinux 2017.1. 

View solution in original post

silentlab54
Contributor
Contributor
1,956 Views
Registered: ‎08-29-2018

Hi,

Could you share your recipe? I'll use it as a reference, if possible.

Thanks in advance for your answer.

0 Kudos