summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* spirv-llvm-translator: Update for branch renamemickledorePreeti Sachan2024-10-151-1/+1
| | | | | | | | "master" branch in SPIRV-Headers has been renamed to "main" See https://github.com/KhronosGroup/SPIRV-Headers/commits/main/ Signed-off-by: Preeti Sachan <preeti.sachan@intel.com>
* layer.conf: Mark it scarthgap compatibleNaveen Saini2024-03-181-1/+1
| | | | | | | | Downstream projects need time to switch to opaque pointers in llvm16 which requires in some cases significant effort. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* bpftrace: Replace python with python3 in ptestWentao Zhang2023-12-212-0/+54
| | | | | | | | "runtime:call" in ptest gets the following FAILED: | python: No such file or directory Replace python with python3 in this ptest item. Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
* layer.conf: Mark it nanbield (4.3) compatibleNaveen Saini2023-12-191-1/+1
| | | | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* llvm-config: fix script for multilib buildNaveen Saini2023-06-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | From multilib build: | CMake Error at cmake/FindLLVM.cmake:79 (message): | Failed running | tmp-glibc/work/x86-64-v3-oe-linux/ispc/1.20.0-r0/recipe-sysroot/usr/bin/crossscripts/llvm-config;--libfiles;engine;ipo;bitreader;bitwriter;instrumentation;linker;option;frontendopenmp;windowsdriver;x86 | Call Stack (most recent call first): | cmake/FindLLVM.cmake:116 (run_llvm_config) | CMakeLists.txt:377 (get_llvm_libfiles) Currently hardcoded to /lib, which causing multilib build failure. An easy solution could be set and export YOCTO_ALTERNATE_LIBDIR to $baselib in recipe, but it would require to add this in all affected recipes. Other approach is to handle in llvm-config script itself. Unfortunately $baselib is not available in env for the llvm-config script, so extracting baselib value from $base_libdir as its being exported and available in env and then set YOCTO_ALTERNATE_LIBDIR accordingly. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* bcc: updating the shebang of python scripts in tools to python3Xiangyu Chen2023-05-301-0/+2
| | | | | | | | | the upstream changed the shebang of python scripts in tools folder[1], this would cause do_install:append cannot conver all scripts. [1] https://github.com/iovisor/bcc/commit/3f5e402bcadf44ce0250864db52673bf7317797b Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
* clang.bbclass: Remove gcc specific -fcanon-prefix-mapKhem Raj2023-05-291-1/+4
| | | | | | | | This option is not available in clang yet Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 4cf1e9e0baf30568851c6646510d18bad50c613b) Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* llvm-config: add --libfiles optionNaveen Saini2023-05-191-0/+5
| | | | | | | | | | | --libfiles Fully qualified library filenames for makefile depends. This option is being used by ispc cmake. https://github.com/ispc/ispc/blob/main/cmake/FindLLVM.cmake#L116 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> (cherry picked from commit c31fa8b367b4af4922120fe8e28d255ff4ebf256) Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* bindgen-cli: regenerate with updated bbclassKhem Raj2023-04-252-74/+144
| | | | | | | * it's needed for compatibility with updated fetcher from: https://patchwork.yoctoproject.org/project/bitbake/patch/20230405122125.3358972-1-enrico.scholz@sigma-chemnitz.de/ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bindgen-cli: Add missing SRC_URI sha256sum for all dependency cratesKhem Raj2023-03-192-2/+66
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* android-tools: remove recipe and dynamic-layerEtienne Cordonnier2023-03-1554-2416/+0
| | | | | | | The recipe has been patched to remove the clang dependency and moved to meta-openembedded at https://github.com/openembedded/meta-openembedded/tree/master/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* libclc: Define llvm tools needed during buildKhem Raj2023-03-121-0/+5
| | | | | | | | | It pokes at target llvm.cmake and gets the path LLVM_TOOLS_BINARY_DIR pointing to target sysroot however during cross builds it should be looking for tools for cross building in native sysroot Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Upgrade to 0.17.0Khem Raj2023-03-101-1/+2
| | | | | | Use system provided bpf and bcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: remove -Dasm=falseRoss Burton2023-03-101-3/+0
| | | | | | | | | | | When the bbappend was moved to Meson in 2019[1] the EXTRA_OEMESON variable was misspelt as EXTRA_OEMASON. As this assignment hasn't been needed since 2019, we can remove it. [1] 66f826b89d9e290f8a82c15dea251f41c2580fc3 Signed-off-by: Ross Burton <ross.burton@arm.com>
* mesa: remove -latomic and -lm additionsRoss Burton2023-03-101-3/+0
| | | | | | | qemux86 and qemux86-64 builds are successful without these now, so remove them. Signed-off-by: Ross Burton <ross.burton@arm.com>
* mesa: remove unused FILESEXTRAPATHSRoss Burton2023-03-101-2/+0
| | | | | | This bbappend doesn't have any patches, so this is redundant. Signed-off-by: Ross Burton <ross.burton@arm.com>
* openmp: ignore CVE-2022-26345Ross Burton2023-03-101-0/+3
| | | | | | | This CVE appears to be specific to Intel's packaging of OpenMP in oneAPI, so ignore it. Signed-off-by: Ross Burton <ross.burton@arm.com>
* android-tools: add adb daemonEtienne Cordonnier2023-03-083-0/+236
| | | | Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools: remove bashismEtienne Cordonnier2023-03-081-1/+1
| | | | Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools: allow removing fastboot from TOOLS_TO_BUILDEtienne Cordonnier2023-03-082-2/+4
| | | | | | | | The fastboot makefile is creating the directory $(OUT_DIR)/usr/bin, so removing fastboot from TOOLS_TO_BUILD in a bbappend resulted in a build failure because of the missing directory $(OUT_DIR)/usr/bin. Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* bindgen-cli: Add the build dependency crate:// linksZoltán Böszörményi2023-03-082-7/+70
| | | | | | | | | | | | | | | "inherit cargo-update-recipe-crates" was misunderstood, as in that it doesn't add the build dependencies transparently during the build. Instead, "bitbake -c update_crates recipe-name" must be run and the resulting recipe-name-crates.inc file must be included in the recipe. Update the recipe with using the crate:// link for bindgen-cli. Otherwise "bitbake -c update_crates recipe-name" got confused and produced empty output when using the source in a subdirectory from the rust-bindgen GIT repo. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
* castxml: Upgrade to tip of trunkKhem Raj2023-03-081-1/+3
| | | | | | To fix compile with clang16 its needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Fix tests build with clang16Khem Raj2023-03-082-0/+35
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Add missing dependency to get zip utility during buildKhem Raj2023-03-081-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Update to latest tipKhem Raj2023-03-081-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* android-tools: make it work with devtoolEtienne Cordonnier2023-03-0743-137/+1143
| | | | | | | | | | devtool modify android-tools was failing with an error: - regenerate patches in the git format working with devtool - add debian patches to yocto instead of applying them manually with do_unpack_and_patch_debian, to make it work with devtool Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools: fix libcrypto_utils link errorEtienne Cordonnier2023-03-061-1/+2
| | | | | | | | | | | | | | When building android-tools, this chain of dependency pulls the openssl library libcrypto.so.3 in recipe-sysroot: clang-native -> cmake-native -> curl-native -> openssl-native The issue is that libcrypto_utils attempt to link against the libcrypto.so produced by boringssl (debian/out/usr/lib/android/libcrypto.so), but the -L flags added by yocto to CPPFLAGS appear before the -L flag provided in the patch, and therefore the wrong library is used. Link explicitly against libcrypto.so.0 in order to ignore the openssl library and use boringssl instead. Note: to debug this add -Wl,--verbose to LDFLAGS Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools: make native version compileEtienne Cordonnier2023-03-062-2/+4
| | | | | | | | | | | Those 2 warnings (caused by the combination of -nostdlib and the options added by meta-clang) were treated as errors: """ clang-14: warning: argument unused during compilation: '-rtlib=libgcc' [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '--unwindlib=libgcc' [-Wunused-command-line-argument] """ Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools-conf: fix typoEtienne Cordonnier2023-03-061-1/+1
| | | | Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools-conf: remove PACKAGE_ARCH = MACHINE_ARCHEtienne Cordonnier2023-03-061-2/+0
| | | | | | | | | | | | android-tools inherits the native class, and RDEPENDS on android-tools-conf. This line causes an error when trying to build android-tools-native: """ ERROR: Required build target 'android-tools-native' has no buildable providers. Missing or unbuildable dependency chain was: ['android-tools-native', 'clang-native-x86_64'] """ Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools: fix incremental builds by using ln -sfEtienne Cordonnier2023-03-0612-12/+12
| | | | | | | This avoids an error about the file already existing when debugging the recipe and starting incremental builds. Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* android-tools: correctly pass DEB_HOST_ARCH to libbacktraceEtienne Cordonnier2023-03-062-5/+3
| | | | | | | | | | | - The code was producing the error "tool: command not found" and the else branch was always executed, even for libbacktrace. - There is no variable "deb_host_arch" defined in rules.yocto, so it's not clear what the first line of the patch with DEB_HOST_ARCH=${deb_host_arch} was supposed to do. "${deb_host_arch}" is always undefined in this context. Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
* bindgen-cli: New recipe for version 0.64.0Zoltán Böszörményi2023-03-061-0/+23
| | | | | | It is used by Mesa to build Rusticl. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
* openmp: Fix build with 64bit file offset on 32bit archesKhem Raj2023-03-051-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* github/actions: Adapt to new envsetup.sh syntax in CI loop scriptKhem Raj2023-03-041-6/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: Add new exceptions for alternative Linux kernel recipesJon Mason2023-02-221-0/+2
| | | | | | | Other Linux kernel recipes are seeing the same objcopy issue. Add entries for them to work around the issue here as well. Signed-off-by: Jon Mason <jdmason@kudzu.us>
* clang: Pass LLVM_CONFIG_PATH to target and nativesdk buildsKhem Raj2023-02-221-0/+3
| | | | | | | | This ensures that it does not end up building NATIVE tools and using them during build, which obviously wont work when buildhost != targethost or iow cross-compiling Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Remove clang-offload-wrapperKhem Raj2023-02-221-2/+1
| | | | | | This has been deleted in clang 16+ via https://reviews.llvm.org/D130020 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Use LLVM_ENABLE_RUNTIMES to build C++ runtime libsKhem Raj2023-02-221-1/+2
| | | | | | This is new way of building it from 16.x onwards Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: don't override PACKAGECONFIG[gallium-llvm] in non-clang caseDmitry Baryshkov2023-02-151-1/+3
| | | | | | | | | Change mesa bbappend to override PACKAGECONFIG[gallium-llvm] only if clang toolchain is selected. Unfortunately this has to be implemented in a nasty way because there is no standard way to apply override to the variable flag setting. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
* linux-fslc-imx: Use gnu objcopy with clangKhem Raj2023-02-151-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Move .so symlinks to -dev package fixes multilib buildKhem Raj2023-02-151-2/+2
| | | | | | | | Fixes ERROR: lib32-clang-15.0.7-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package lib32-liblldb contains symlink .so '/usr/lib/liblldbIntelFeatures.so' non -dev/-dbg/nativesdk- package lib32-liblldb contains symlink .so '/usr/lib/liblldb.so' [dev-so] ERROR: lib32-clang-15.0.7-r0 do_package_qa: Fatal QA errors were found, failing task. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Provide missing tools during cross compileKhem Raj2023-02-101-2/+9
| | | | | | | Enable ompd gdb plugin build and add py3 to depndencies as it is required by the plugin Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix clang recipe for multilib buildlumpyh2023-02-061-1/+1
| | | | | | | | | when building clang for multilib, bitbake complains about liblldb containing a .so symlink this patch fixes this Signed-off-by: lumpyh <lumpy.hega@gmx.de>
* runtime: Enable PIC for static archives with clang runtime libsKhem Raj2023-02-065-0/+8
| | | | | | | This helps in compling shared libraries which may use e.g. static libc++.a during link Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Correctly specify https in HOMEPAGEKhem Raj2023-02-061-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Update the bbappend to 1.36Khem Raj2023-01-313-58/+3
| | | | | | | | | | | | - Use clang again for qemux86 - Drop upstreamed patch [1] - Ignore texrels with clang QA Issue: busybox: ELF binary /usr/bin/busybox.nosuid has relocations in .text [textrel] [1] https://git.busybox.net/busybox/commit/?id=117a8c9b7a50053964159c342af1f3810cbbd5b8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Use libatomics on all mips32 machinesKhem Raj2023-01-291-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pixman: Use gcc on mipsKhem Raj2023-01-291-0/+2
| | | | | | | libatomic is needed to link after -lomp when -fopenmp is used, it needs clang driver level change Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Build libc++abi into static libc++.aKhem Raj2023-01-291-0/+1
| | | | | | | | This helps statically linking c++ runtime into binaries which use exceptions functions e.g. std::out_of_range as used in rwmem package and using -static-libstdc++ compiler flags Signed-off-by: Khem Raj <raj.khem@gmail.com>