summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* upgrade of android-tools to 10.0.0.r36Nisha Parrakat2021-08-1230-0/+1173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An older version is present in the meta-oe layer. Took the old recipe and adapted it in the following way: --Deleted all the old patches that were applicable for old version. --Used all the makefiles that come with the new version directly from the source code, just modifying them to install output to a specific folder as below a)added rules_yocto.mk that will mimic the debian/rules b)modified the makefiles of the components to output to a common dir. c) Built boringssl crypto with the option -DOPENSSL_NO_ASM to solve the below errors libcrypto.so.0: undefined reference to `aes_hw_encrypt' libcrypto.so.0: undefined reference to `aes_hw_set_encrypt_key' libcrypto.so.0: undefined reference to `gcm_gmult_v8' libcrypto.so.0: undefined reference to `gcm_init_v8' libcrypto.so.0: undefined reference to `sha256_block_data_order' libcrypto.so.0: undefined reference to `aes_hw_ctr32_encrypt_blocks' libcrypto.so.0: undefined reference to `aes_hw_cbc_encrypt' libcrypto.so.0: undefined reference to `vpaes_decrypt' libcrypto.so.0: undefined reference to `vpaes_encrypt' libcrypto.so.0: undefined reference to `gcm_gmult_neon' libcrypto.so.0: undefined reference to `sha1_block_data_order' libcrypto.so.0: undefined reference to `sha512_block_data_order' libcrypto.so.0: undefined reference to `gcm_init_neon' libcrypto.so.0: undefined reference to `aes_hw_set_decrypt_key' libcrypto.so.0: undefined reference to `vpaes_set_decrypt_key' libcrypto.so.0: undefined reference to `gcm_ghash_neon' libcrypto.so.0: undefined reference to `bn_mul_mont' libcrypto.so.0: undefined reference to `aes_hw_decrypt' libcrypto.so.0: undefined reference to `gcm_ghash_v8' libcrypto.so.0: undefined reference to `vpaes_cbc_encrypt' libcrypto.so.0: undefined reference to `ChaCha20_ctr32' libcrypto.so.0: undefined reference to `vpaes_ctr32_encrypt_blocks' libcrypto.so.0: undefined reference to `vpaes_set_encrypt_key' Attention : https://github.com/grpc/grpc/issues/9440 d) compiled android compatible version of libunwind to be used to build libbacktrace e) REQUIRES meta-selinux for libselinux, thus added it to BBFILES_DYNAMIC of this layer. f) checked compilation and packaging for for x86_64 and aarch64 g) UNTESTED android-tools-adbd.service , couldn't find how to build adbd that is needed by the service with the new version of android-tools. At present the service is still packaged but may not work. h) tested the adb and fastboot on the core-image-minimal by including the android-tools in the image and ran the commands with 'help' Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> Signed-off-by: Nisha Parrakat <nishaparrakat@gmail.com>
* bpftrace: Update to masterKhem Raj2021-08-063-7/+57
| | | | | | Fix build with libc++ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libc-bench: Link with libgcc when using llvm runtimeKhem Raj2021-08-061-0/+1
| | | | | | | This uses static link and glibc uses libgcc intrinsics which otherwise are undefinded. Glibc is built using gcc + gnu runtime still Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Upgrade to 0.13.0Khem Raj2021-08-063-33/+33
| | | | | | | | Drop already upstreamed patch Fix build with clang 13 Add missing dependencies on systemtap and libcereal Signed-off-by: Khem Raj <raj.khem@gmail.com>
* jack: Use gcc to build for 32bit archesKhem Raj2021-08-041-0/+6
| | | | | | | | | | | | | | | Latest jack does not build with clang-13 for 32bit arches | In file included from ../git/common/JackFreewheelDriver.cpp:23: | ../git/common/JackEngineControl.h:67:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackTransportEngine' | alignas(UInt32) JackTransportEngine fTransport; | ^ | ../git/common/JackEngineControl.h:89:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackFrameTimer' | alignas(UInt32) JackFrameTimer fFrameTimer; | ^ | 2 errors generated. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: Convert remaining overrides to new syntaxKhem Raj2021-08-041-13/+13
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Convert libc-klibc override to new syntaxKhem Raj2021-08-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Fix remaining override conversionKhem Raj2021-08-033-5/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Manually finish conversionMartin Jansa2021-08-033-6/+6
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-clang: Convert to new override syntaxSigned-off-by: Martin Jansa2021-08-0342-431/+431
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 13.x branchKhem Raj2021-08-011-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2,libdevmapper: Use gcc to compileKhem Raj2021-08-011-0/+5
| | | | | | | | | | | | clang13 based builds are failing during postprocessing Mismatch between symbols in shared library and lists in .exported_symbols.* files: dm_bit_get_prev | dm_config_clone_node ... dm_udev_wait | make[1]: *** [../libdm/make.tmpl:511: .export.sym] Error 1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "mesa: Use gcc on aarch64"Khem Raj2021-07-301-3/+0
| | | | This reverts commit 314a7014e3abb9ef297aa293c2e56ad916c2dc84.
* compiler-rt,libcxx: Fix native builds when using RUNTIME=llvmKhem Raj2021-07-302-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to 13.x branchKhem Raj2021-07-301-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Explicitly set LLVM_DEFAULT_TARGET_TRIPLEKhem Raj2021-07-181-0/+2
| | | | | | | | | This helps during cross-compile as new clang expects this to be set or else it deduces it and that deduction can go wrong. See commit 395271ad11b8c233db1a4e0e6a76aa52e93e5aec in clang repo Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: Use gcc on aarch64Khem Raj2021-07-181-0/+3
| | | | | | | clang master/13.x has started segfaulting while building mesa, until it is fixed upstream lets switch to using gcc for mesa Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Drop using -cl-no-stdincKhem Raj2021-07-181-1/+0
| | | | | | This flag is no longer needed with latest clang-13 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on trunk/13.0Khem Raj2021-07-181-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Depend on clang runtime when using RUNTIME = "llvm" for native packagesKhem Raj2021-07-081-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix do_package error when multilib enabledChangqing Li2021-07-051-2/+2
| | | | | | | | | After enable multilib, libdir is /usr/lib64, but in llvm's CMakelist.txt, the install path is hardcode as /usr/lib eg: ${CMAKE_BINARY_DIR}/lib/libscanbuild/resources/${resource} Signed-off-by: Changqing Li <changqing.li@windriver.com>
* gnutls: Disable integrated assembler on aarch64Khem Raj2021-06-301-0/+3
| | | | | | | integrated assembler crashes latest clang on aarch64, so lets disable it for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 13.0.0/trunkKhem Raj2021-06-3038-193/+83
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: drop git suffix from version variablesChangqing Li2021-06-282-0/+71
| | | | | | | | | | | other recipe like intel-graphics-compiler, config failed with below error: [IGC] Could not find the LLVM dylib. Aborting. with a suffix in library name make other recipe cannot found it. Backport a patch from 12.0.0 to fix this. Signed-off-by: Changqing Li <changqing.li@windriver.com>
* libcxx: Fix native buildKhem Raj2021-06-252-18/+30
| | | | | | | | Use libgcc with clang-native to compile it Fixes #465 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Fix build on non-x86 targetsKhem Raj2021-06-242-0/+122
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Update to latest trunkKhem Raj2021-06-241-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on main/13.0 lineKhem Raj2021-06-242-1/+3
| | | | | | Package new content for scanbuild and libear Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Remove a trailing slash from SRC_URIRobert Yang2021-06-181-1/+1
| | | | | | | | | | The trailing slash caused the mirror name endswith a dot which looks strange: github.com.KhronosGroup.SPIRV-LLVM-Translator. The slash is not needed, so remove it. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com>
* mariadb: Use gcc got ppc64leKhem Raj2021-06-181-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libucontext: Do not use internal assembler on ppc64leKhem Raj2021-06-181-0/+5
| | | | | | clang segfaults while processing .S files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest master/13.0Khem Raj2021-06-1637-93/+51
| | | | | | Drop 0024-compiler-rt-Include-stddef.h.patch its accepted upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Fix build with llvm >= 13Khem Raj2021-06-142-0/+43
| | | | | | toString implementation has changed in LLVM Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Update to latestKhem Raj2021-06-141-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on main/13.0 branchKhem Raj2021-06-1437-59/+106
| | | | | | | Fix compiler-rt build on armv6 reported in https://github.com/YoeDistro/yoe-distro/issues/555 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: Do not StackAlignmentOverride on llvm >= 13Khem Raj2021-06-142-1/+20
| | | | | | | This has been removed see https://reviews.llvm.org/D103048 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Use libgcc instead of compiler-rt on klibc appsKhem Raj2021-06-141-0/+2
| | | | | | | | | | | | | klibc does not provide libssp functions e.g. __stack_chk_guard and __stack_chk_guard which it expects from libc and compiler-rt code tend to use these functions, so when using compiler-rt it ends up with undefined symbols e.g. /usr/lib/clang/13.0.0/lib/linux/libclang_rt.builtins-armhf.a(divmoddi4.c.o): in function `__divmoddi4': divmoddi4.c:(.text+0x70): undefined reference to `__stack_chk_fail' arm-yoe-linux-gnueabi-ld.bfd: divmoddi4.c:(.text+0x74): undefined reference to `__stack_chk_guard' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* aufs-util,libhugetlbfs,libc-bench: Use libgcc unwinder on glibc/armKhem Raj2021-06-101-2/+3
| | | | | | | | these packages do static linking in parts and when libc is glibc then it has linked in some portions of libgcc since we can not use clang to compile glibc yet. Therefore use libgcc where needed for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Use libgcc for unwinder as well when using for builtinsKhem Raj2021-06-101-9/+11
| | | | | | | | | | | | | | clang 13 does not like to mix rtlib and unwindlib when using libgcc Fixes clang-13: error: --rtlib=libgcc requires --unwindlib=libgcc secondly compiler-rt does not havw 128 bit ( tf ) functions on x86 so fallback to libgcc for those use libatomic for x86 since 64bit atomics are not in compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Do not force libgcc libunwind in rv32 and rv64Khem Raj2021-06-101-2/+0
| | | | | | | llvm unwind can work on rv32 and rv64 with latest clang so open up that option Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on master branchKhem Raj2021-06-0835-63/+61
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* poke: Do not use -O2 with clangKhem Raj2021-06-081-0/+3
| | | | | | | | clang13 has a regression which segfaults the compiler while compiling poke, its reported upstream, until it is fixed do not use -O2 compiler switch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: pass -rtlib only when using clang with gnu runtime hereKhem Raj2021-06-081-9/+9
| | | | | | | The defaults wirh using RUNTIME = "llvm" is already pointing to compiler-rt there is no need to clutter cmdline Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mongodb: Use llvm runtime when using clangKhem Raj2021-06-081-0/+1
| | | | | | | | | | Fixes linker errors like src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4' src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4' src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4' src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mongodb: Remove from nonclangable listKhem Raj2021-06-081-2/+0
| | | | | | mongodb builds fine with latest clang/13.0.0 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Update to master tipKhem Raj2021-06-089-913/+7
| | | | | | | | | | | | In order to use latest clang, latest bcc sources are needed, this also means that we need to use vendored libbpf as thats the newest one needed and avoids dependencies on kernel bpf headers which maybe old and out of sync examples use error.h header which is not available on musl therefore disable examples when building on musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Fix hwsan builds with llvm libunwindKhem Raj2021-06-082-0/+36
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Hide when llvm runtime is usedKhem Raj2021-06-081-0/+3
| | | | | | We want to use llvm libunwind implementation when RUNTIME = "llvm" Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Package libunwind independentlyKhem Raj2021-06-081-2/+4
| | | | | | This helps in ensuring it pose as RPROVIDES when llvm runtime is used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Implement unw_backtraceKhem Raj2021-06-082-0/+56
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>