From 95a45c8947ef8978a6d1a7568ee7bb3c6a6cf77e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 5 Feb 2023 12:52:14 -0800 Subject: openmp: Provide missing tools during cross compile Enable ompd gdb plugin build and add py3 to depndencies as it is required by the plugin Signed-off-by: Khem Raj --- recipes-devtools/clang/openmp_git.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/recipes-devtools/clang/openmp_git.bb b/recipes-devtools/clang/openmp_git.bb index 60efcaf..3611210 100644 --- a/recipes-devtools/clang/openmp_git.bb +++ b/recipes-devtools/clang/openmp_git.bb @@ -12,7 +12,7 @@ TOOLCHAIN = "clang" LIC_FILES_CHKSUM = "file://openmp/LICENSE.TXT;md5=d75288d1ce0450b28b8d58a284c09c79" -inherit cmake pkgconfig perlnative +inherit cmake pkgconfig perlnative python3native DEPENDS += "elfutils libffi clang" @@ -23,6 +23,9 @@ EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCLANG_TOOL=${STAGING_BINDIR_NATIVE}/clang \ -DLINK_TOOL=${STAGING_BINDIR_NATIVE}/llvm-link \ -DOPT_TOOL=${STAGING_BINDIR_NATIVE}/opt \ + -DOPENMP_LLVM_LIT_EXECUTABLE=${STAGING_BINDIR_NATIVE}/llvm-lit \ + -DEXTRACT_TOOL=${STAGING_BINDIR_NATIVE}/llvm-extract \ + -DPACKAGER_TOOL=${STAGING_BINDIR_NATIVE}/clang-offload-packager \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ " @@ -40,10 +43,14 @@ PACKAGECONFIG[aliases] = "-DLIBOMP_INSTALL_ALIASES=ON,-DLIBOMP_INSTALL_ALIASES=O PACKAGECONFIG[offloading-plugin] = ",,elfutils libffi,libelf libffi" PACKAGECONFIG[no-atomics] = "-DLIBOMP_HAVE_BUILTIN_ATOMIC=OFF -DLIBOMP_LIBFLAGS='-latomic',," -PACKAGES += "${PN}-libomptarget" +PACKAGES += "${PN}-libomptarget ${PN}-gdb-plugin" FILES_SOLIBSDEV = "" FILES:${PN} += "${libdir}/lib*${SOLIBSDEV}" FILES:${PN}-libomptarget = "${libdir}/libomptarget-*.bc" +FILES:${PN}-gdb-plugin = "${datadir}/gdb/python/ompd" + +RDEPENDS:${PN}-gdb-plugin += "python3-core" + INSANE_SKIP:${PN} = "dev-so" # Currently the static libraries contain buildpaths INSANE_SKIP:${PN}-staticdev += "buildpaths" -- cgit v1.2.3-54-g00ecf