Self hosting using dnf
Self hosting using dnf
Using dnf, you will be able to install the tools required to build(compile) applications on the target directly.
Table of Contents
Installing the Self-Hosted Package Group
The package-group we are interested is "packagegroup-petalinux-self-hosted". This package-group provides some commonly used utilities like Make, GCC, G++, etc. In this section we will be installing the package-group and then compile, and test out few demo applications.
GCC/G++ installation
We need to install packagegroup-petalinux-self-hostedto be able to compile on target. To install run the below command.
dnf repoquery dnf install packagegroup-petalinux-self-hosted
GCC/G++ testing
Once, the package is installed, you should be able to use GCC/G+x+ compiler and build your programs on the target directly.
To test this, there are 2 sample programs attached below. Go ahead and download those onto your target. You can compile and build them as shown below.
To compile use:
gcc hello_world.c -o hello_world g++ vector-test.cpp -o vector-test
Test Code
Related content
Self hosting using smart
Self hosting using smart
More like this
Dnf package manager
Dnf package manager
More like this
Install and run applications through DNF on target
Install and run applications through DNF on target
More like this
Install and Build with Xilinx Yocto
Install and Build with Xilinx Yocto
More like this
Linux Applications with Petalinux Libraries
Linux Applications with Petalinux Libraries
Read with this
Zynq App Debug
Zynq App Debug
More like this
© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy