Adding New RPM Packages in meta-petalinux
Adding New RPM Packages in meta-petalinux
meta-petalinux supports various packages for Xilinx architectures.However there might be a use-case when a user wants to add additional packages to create a rpm feed channel
Step-by-step guide
Add the steps involved:- meta-petalinux should be setup for Yocto build setup
- Please refer to Getting Started With Yocto using Repo to build RPM Packages
- For example we want to add wireless-tools package to Zynq/ZynqMP architecture
- wireless-tools is a recipe present in Yocto project for supporting tools for Linux Standard Wireless Extension Subsystem
- http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-connectivity/wireless-tools/wireless-tools_30.pre9.bb
- In meta-petalinux, packagegroup-petalinux.bb contains the information about all the packages being built for each architecture
- https://github.com/Xilinx/meta-petalinux/blob/rel-v2016.1/recipes-core/packagegroups/packagegroup-petalinux.bb
- Lets add the desired package at the end of ZYNQ_EXTRAS
-
ZYNQ_EXTRAS = " \ bonnie++ \ hdparm \ iperf \ libattr \ libinput \ opencv \ python-multiprocessing \ python-numpy \ python-scons \ python-shell \ python-threading \ python-smartpm \ smartmontools \ v4l-utils \ yavta \ libmetal \ wireless-tools \ "
- save the file
- bitbake to get the new RPM
-
$ MACHINE=<architecture>-generic bitbake petalinux-image
- find -name "wireless-tools*rpm" in /tmp/deploy/rpm to verify it is built
Related Articles
Xilinx YoctoAdding Mali Userspace binaries
© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy