Hello Yocto Project,

I’m having problems adding OpenMP headers/libraries to the SDK that is 
installed by the Yocto-generated cross-toolchain installer.  Here are the steps 
that I currently take to add both the dynamic and static OpenMP libraries:


  1.  I downloaded the poky distribution of Yocto (pyro branch).
  2.  In order to generate a toolchain installer for the zcu102-zynqmp machine, 
I also added the “meta-xilinx” layer, using the pyro branch for this as well.
  3.  At the end of the conf/local.conf file, I added the following:
MACHINE = "zcu102-zynqmp"
IMAGE_INSTALL_append = " libgomp libgomp-dev libgomp-staticdev glibc-staticdev"
SDKIMAGE_FEATURES += " dev-pkgs dbg-pkgs staticdev-pkgs"

  1.  I generated the toolchain installer with the command: “bitbake 
meta-toolchain”
  2.  I ran the toolchain installer 
(tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-aarch64-toolchain-2.3.4.sh) .

During the build, there are OMP library/header files created in the build 
directory (under tmp/work/aarch64-poky-linux/).  However, after the toolchain 
installer is generated and run, the installed SDK directory only includes the 
following OpenMP library:
sysroots/aarch64-poky-linux/usr/lib/.debug/libgomp.so.1.0.0

The problem is that there are no OpenMP header files nor static OpenMP library 
files in the SDK directory, so OpenMP code can’t be compiled dynamically or 
statically.

I want the toolchain installer to install both the dynamic and static OpenMP 
libraries and corresponding header files in the appropriate paths under the SDK 
directory.

Any help with this would be appreciated.  Please let me know if you’d like 
further clarification.

Thanks,
Kaushik

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to