summaryrefslogtreecommitdiffstats
path: root/recipes-core
Commit message (Collapse)AuthorAgeFilesLines
* musl: Do not pass -frounding-math for nowKhem Raj2020-02-211-0/+7
| | | | | | clang/master hangs (can you believe) while compiling musl on armv7ve Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup: be lenient about CLANGSDK settingRoss Burton2019-12-022-2/+2
| | | | | | | | | | | As CLANGSDK defaults to '1', users who have not read the README may think that setting it to '0' would disable adding Clang to the SDK. Little do they know that you need to *unset* the value for this to work (as bool('0') -> True). Change the logic to use bb.utils.contains(), so that '0' is not true. Signed-off-by: Ross Burton <ross.burton@intel.com>
* clang: Add variable CLANGSDK to control including clang in SDKKhem Raj2019-09-253-14/+4
| | | | | | | | | | | | | | CLANGSDK ?= "1" is default which means clang will be included into SDK if one is using clang only for full build and dont intend to distribute it as cross compiler SDK then set CLANGSDK = "" in local.conf or in another config metadata file Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Update non-const patch to remaining patternsKhem Raj2019-09-112-7/+55
| | | | | | | | | | | This was noticed when /bin/ash crashed that there are more instances of this optimization which causes same kind of failures in few other applets As a side benefit busybox compiled with clang works totally fine on riscv64 now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* musl: Do not use clang for musl package on ppc64Khem Raj2019-09-021-0/+1
| | | | | | | Fails to build with builtins which are only in compiler-rt but compiler-rt needs C library to build. Catch-22 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* musl: Use gcc for riscv64 for nowKhem Raj2019-08-141-0/+1
| | | | | | | system boot but not all the way to command prompt so we need to debug it eventually Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Use gcc for riscv64 for nowKhem Raj2019-08-121-0/+1
| | | | | | It crashes when compiled with clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Update the clang compatibility patch to work with clang 9.xKhem Raj2019-08-103-28/+141
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* musl: Use gcc to compile alwaysKhem Raj2019-07-111-0/+1
| | | | | | | | | clang needs built-ins from compiler-rt to build musl and compiler-rt needs a full toolchain to build which means we have a catch-22 on x32 with clang/musl, for now use gcc to compile musl to break the jinx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Use gcc to compile on x86Khem Raj2019-03-031-0/+1
| | | | | | | i386 inline assembly runs out of registers on clang so for now let gcc be used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Define AR, NM and RANLIB to point to llvm wrappersKhem Raj2019-02-141-0/+1
| | | | | | helps with LTO enabled cross builds Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable a cross version of clang-tidyKhem Raj2019-01-311-0/+1
| | | | | | define CLANG_TIDY_EXE which is used by some build systems e.g. cmake Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Fix UB due to modifying const pointerKhem Raj2019-01-192-1/+29
| | | | | | see https://bugs.llvm.org/show_bug.cgi?id=39919 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,nativesdk-packagegroup-sdk-host: Recognise risc-vKhem Raj2018-12-271-1/+0
| | | | | | | This helps build SDKs for risc-v when meta-clang is in layer mix even though clang for risc-v may not fully work yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Do not build in thumb2 mode.Khem Raj2018-12-091-0/+1
| | | | | | | There is a bug in busybox which is found by clang, we need to fix busybox but until them just dont use thumb2 ISA for busybox Signed-off-by: Khem Raj <raj.khem@gmail.com>
* systemd: Drop systemd bbappendKhem Raj2018-12-091-4/+0
| | | | | | Not needed after meson migration Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-standalone-sdk-target: Make clang runtime as RRECOMMENDSKhem Raj2018-09-091-1/+1
| | | | | | | As suggested in Issue #23 this will make sure we can override it with BAD_RECOMMENDATIONS Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup: Consider the fact that clang is not there for riscv64 yetKhem Raj2018-09-092-3/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-standalone-sdk-target: Include libcxx and compiler-rt even ↵Khem Raj2018-07-081-1/+1
| | | | | | | | when clang is not default compiler Fixes issue #63 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* classes: Do not replace armv7ve with armv7a anymoreKhem Raj2017-08-291-2/+0
| | | | | | clang-5.0 supports the option now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-standalone-sdk-target: Fix a typo in packagenameKhem Raj2017-08-081-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: DeleteKhem Raj2017-07-311-1/+1
| | | | | | build llvm libunwind along with libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Merge libcxxabi needs into libcxxKhem Raj2017-07-311-1/+0
| | | | | | | | | This is preferred way of building libc++ and it also means we do not need musl specific tweaks since top level build from llvm already know musl and make right choices Signed-off-by: Khem Raj <raj.khem@gmail.com>
* systemd: Define nm,ar,ranlib from llvm when using clangKhem Raj2017-05-181-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* ncurses: fix build errors in some clang configurationsDaniel McGregor2017-02-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | ncurses' configure script strips the arguments from $CC when checking if -c and -o can be used together. Clang then doesn't have a default sysroot argument to use, so it checks the host for the existence of certain feature headers in libc. These checks fail, and it assumes that clang can't handle -o and -c together. Example config.log snippet: configure:2524: checking whether arm-poky-linux-gnueabi-clang understands -c and -o together configure:2540: arm-poky-linux-gnueabi-clang -c conftest.c -o conftest2.o >&5 In file included from conftest.c:1: In file included from /usr/include/stdio.h:27: In file included from /usr/include/features.h:399: /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found # include <gnu/stubs-32.h> ^ 1 error generated. configure:2543: $? = 1 configure:2562: result: no Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* packagegroup-core-standalone-sdk-target.bbappend: Append only for clang ↵Steve Sakoman2016-05-251-1/+1
| | | | | | | | | toolchain Applying the below patch gets rid of all of the extra packages except glibmm-dev. I have no idea where that is coming from! Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment: Drop toolchain-clang overrideKhem Raj2016-05-101-6/+6
| | | | | | It does not work and moreover its redundant Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment: Remove cmdline options unknown to clangKhem Raj2016-05-101-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-cross: Remove dep on libc-for-gccKhem Raj2016-05-061-0/+1
| | | | | | | | We do not need libc to build clang Add dep on clang-cross when building musl with clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-runtime: Enable shared librariesKhem Raj2016-04-051-0/+2
| | | | | | | | package libcxxabi-dev and compiler-rt-staticdev into packagegroup-core-standalone-sdk-target so it gets into SDK Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-standalone-sdk-target: Add clang runtime libsKhem Raj2016-04-041-0/+5
| | | | | | | ALLOW_EMPTY is added so packaging can succeed the files are all static libs Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Remove -mmusl and -muclibcKhem Raj2016-04-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | These options were introduced in OE-Core to support multi libc SDKs and added with Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Sat Jul 25 14:48:21 2015 +0100 toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection gcc-cross-canadian-<arch> is only built once. It needs to target all the different libcs, not just the currently selected one. This change ensures that if another libc is used, the compiler correctly selects the right one. [YOCTO #8025] (From OE-Core rev: da2e92e256054b137a1646fdad1fe1a47ba3215a) Clang however acts based on crosscompiler name and does not have option to controlled multi libc scene Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-cross-canadian: Fix append for clang into SDKKhem Raj2016-04-011-2/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* glib-2.0: Fix build with clang/musl comboKhem Raj2015-09-251-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sdk: Add support for adding clang to SDKKhem Raj2015-07-083-0/+12
Also export CLANGCC, CLANGCXX, CLANGCPP in SDK environment which can then be used to compile applications in SDK Additionally remove -mthumb-interwork from compiler options if target is arm Signed-off-by: Khem Raj <raj.khem@gmail.com>