summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clang: Remove -mno-spe option from cmdline on ppcKhem Raj2016-03-031-0/+1
| | | | | | | This gcc option is not supported in clang hence remove it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* piglit,python-numpy,valgrind: Mark gcc-only recipesKhem Raj2016-03-033-0/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Move -Wno-error=unused-command-line-argument setting to TUNE_CCARGSKhem Raj2016-03-011-3/+1
| | | | | | | Adding it to TOOLCHAIN_OPTIONS renders libtool useless and its not able to build .so Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Pass -Wno-error=unused-command-line-argument to clangKhem Raj2016-02-291-0/+2
| | | | | | | | | | | We can get past the errors due to -Werror when unused cmdline options appear on compiler cmdline e.g. error: argument unused during compilation: '-pie' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Merge pull request #10 from walkthetalk/masterKhem Raj2016-02-296-15/+15
|\ | | | | rename 'CLANG_GIT' to 'LLVM_GIT'
| * rename 'CLANG_GIT' 'CLANG_GIT_PROTOCOL' to 'LLVM_GIT' 'LLVM_GIT_PROTOCOL'Yi Qingliang2016-03-016-15/+15
| | | | | | | | Signed-off-by: Yi Qingliang <niqingliang2003@gmail.com>
* | Update README.mdKhem Raj2016-02-291-1/+1
| | | | | | Fixes Issue #8
* | Merge pull request #5 from walkthetalk/masterKhem Raj2016-02-296-13/+16
|\| | | | | use variable 'CLANG_GIT' and 'CLANG_GIT_PROTOCOL'
| * use variable 'CLANG_GIT' and 'CLANG_GIT_PROTOCOL'Yi Qingliang2016-02-296-13/+16
|/ | | | Signed-off-by: Yi Qingliang <niqingliang2003@gmail.com>
* recipes: Use NCSA instead of UIUCKhem Raj2016-02-274-4/+4
| | | | | | NCSA is the licence file name for UIUC licence actually Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use SRCPV where git fetcher is usedKhem Raj2016-02-276-2/+19
| | | | | | Move libunwind to 3.8 branch and set SRCREV in clang.inc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 3.8 branchKhem Raj2016-02-271-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-suite: Update to 3.8 release branchKhem Raj2016-02-171-7/+7
| | | | | | 3.8 is around the corner. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Merge pull request #3 from kergoth/drop-gcc-depsKhem Raj2016-02-151-15/+4
|\ | | | | clang.bbclass: remove gcc from deps when appropriate
| * clang.bbclass: remove gcc from deps when appropriateChristopher Larson2016-02-151-15/+4
| | | | | | | | Signed-off-by: Christopher Larson <chris_larson@mentor.com>
* | Merge pull request #2 from kergoth/rng-tools-fixKhem Raj2016-02-152-0/+53
|\ \ | |/ |/| rng-tools: fix build with clang
| * rng-tools: fix build with clangChristopher Larson2016-02-152-0/+53
|/ | | | | | | This fixes 'error: fields must have a constant size' by allocating it with the given buffer size dynamically. Signed-off-by: Christopher Larson <chris_larson@mentor.com>
* clang.bbclass: Replace -march=armv7ve with -march=armv7aKhem Raj2016-01-091-0/+3
| | | | | | | OE-Core now uses -march=armv7ve for cortext-a7 and clang/llvm doesnt have arch tunable for armv7ve, we revert to prior art of using armv7-a Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 3.7.1Khem Raj2016-01-031-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* update llvmKhem Raj2015-10-251-1/+1
| | | | | | bunch of BPF fixes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: use gcc form nativesdk, crosssdk, cross-canadian recipesKhem Raj2015-10-011-0/+3
| | | | | | | | These are not part of target image and many of these tools are still not ported to be buildable with clang, so lets use gcc for building them at this moment Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Remove -mhard-float for ppcKhem Raj2015-10-011-0/+2
| | | | | | | The option is not defined for llvm/clang but the defaults are hard-float anyway so not needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libvorbis,xserver-xorg: Add to non-clang listKhem Raj2015-10-012-0/+4
| | | | | | xserver-xorg is just for x86 since it uses some GNU specific inline asms Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Bump to latest on 3.7 branchKhem Raj2015-10-011-1/+1
| | | | 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>
* clang: Convert gcc specific endian options to clang accepted onesKhem Raj2015-09-251-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: Preferred to provide libunwindKhem Raj2015-09-122-1/+6
| | | | | | | When using meta-clang use the llvm libunwind instead of HP libubwind which comes from OE-Core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: Add recipeKhem Raj2015-09-102-0/+112
| | | | | | | | Apple has contributed libunwind implementation to llvm which is needed for libcxx to work and is equivalent in APIs to HP's libunwind implementation from good old days Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxxabi: Organize the EXTRA_OECMAKE into multilinesKhem Raj2015-09-101-1/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syslinux: Has hard dep on gcc some includes like stdargs need fixingKhem Raj2015-09-101-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx,libcxxabi: Fix build by removing dependence on libgcc and ↵Khem Raj2015-09-103-6/+14
| | | | | | libstdc++ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gummiboot: Compile with gcc onyKhem Raj2015-09-091-0/+2
| | | | | | | | This is needed since clang generate memset calls at -O0 as well even when we use -ffreestanding -fno-builtin, and as a result the build fails since it detects memset as missing symbol in the .so Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gdb-cross,gnu-efi,systemtap,tcp-wrappers: Use gcc only for nowKhem Raj2015-09-084-0/+7
| | | | | | | | | | | | | | | | | | | | | gdb-cross is added since it looks for a gcc for clang frontend as a result it finds gcc in /usr/lib/gcc .. and OE's configure QA check sees this as if the build referenced into hosts /usr/lib and bails out. systemtap uses a lot of nested inlines which is unsupported by clang, time permitting this should be cleaned gnu-efi says error: the 'sse' unit is not supported with this instruction set tcp-wrappers fails with fix_options.c:66:2: error: non-void function 'fix_options' should return a value [-Wreturn-type] return; ^ fix_options.c:109:3: error: non-void function 'fix_options' should return a value [-Wreturn-type] return; Signed-off-by: Khem Raj <raj.khem@gmail.com>
* liboil: Add -fheinous-gnu-extensions for clangKhem Raj2015-09-081-0/+1
| | | | | | There is x86_64 specific inline code which uses gnu'isms Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Update to latest on 3.7 release branchKhem Raj2015-08-281-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx,libcxxabi: Use TARGET_ARCH instead of TRANSLATED_TARGET_ARCHKhem Raj2015-08-263-3/+3
| | | | | | clang-cross compiler is referenced using TARGET_ARCH Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cairo,cpufrequtils,pulseaudio: Use gcc alwaysKhem Raj2015-08-233-0/+6
| | | | | | They dont yet build with clang, so use gcc toolchain always Signed-off-by: Khem Raj <raj.khem@gmail.com>
* systemd: Add bbappend to use ARM ISA for clangKhem Raj2015-08-231-0/+2
| | | | | | | | | | | | | | | We have a clang problem,disable thumb2 for now using clang /tmp/kraj/bus-kernel-43b6ab.s: Assembler messages: /tmp/kraj/bus-kernel-43b6ab.s:10772: Error: r13 not allowed here -- `sub.w sp,r1,#56' clang-3.7: error: assembler command failed with exit code 1 (use -v to see invocation) Makefile:14915: recipe for target 'src/libsystemd/sd-bus/libsystemd_la-bus-kernel.lo' failed make[2]: *** [src/libsystemd/sd-bus/libsystemd_la-bus-kernel.lo] Error 1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Move common bits to clang.incKhem Raj2015-08-225-20/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Update README.mdKhem Raj2015-08-221-7/+12
|
* perf: Use gcc alwaysKhem Raj2015-08-221-0/+2
| | | | | | clang produces legit errors but fix them later Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx,libcxxabi: Fix and add recipesKhem Raj2015-08-223-3/+82
| | | | | | | Add new recipes for libcxx and libcxxabi fix compiler-rt builds using clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openssh: Remove use of -ftrapv when using clangKhem Raj2015-08-221-0/+3
| | | | | | | | | lang with '-ftrapv' generates 'call __mulodi4', which is only implemented in compiler-rt library. However compiler-rt library only has i386/x86_64 backends (see '/usr/lib/clang/3.7.0/lib/linux/libclang_rt.*'). Gcc, on the other hand, generate 'call __mulvdi3', which is implemented in libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* aspell,grub: Exclude from using clang buildKhem Raj2015-08-223-0/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Add bbappend to disable clangKhem Raj2015-08-2137-0/+73
| | | | | | | This is subset of recipes which encountered during core-image-minimal are not _yet_ compilable using clang, so we enable gcc to build them Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/classes: Invert the logic to select toolchain and default to clangKhem Raj2015-08-213-32/+39
| | | | | | | | | | | | | | | | | | | | | So far we have been selecting which packages are compiled using clang this patch changes the logic to use clang by default unless selecting TOOLCHAIN = "gcc" explicitly in the recipe We have not yet enabled clang for native recipes, its only enabled for target recipes needing cross compilation as of now. Get rid of configuration file and move the code to clang.bbclass, simplifies the logic If needed to select gcc to be default system compiler set TOOLCHAIN = "gcc" in local.conf Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable INHIBIT_DEFAULT_DEPSKhem Raj2015-08-211-0/+2
| | | | | | | We need to ignore default deps since we are building clang-native pretty early and it really doesnt need cross compilers dependencies etc. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on release_37 branchKhem Raj2015-08-052-43/+2
| | | | | | Drop the upstreamed patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to tip of 3.7 release branchKhem Raj2015-07-231-2/+3
| | | | | | | | | | Dont stage cmake helper files for nativesdk build they are also poked at by clang-crosssdk and wrong values are inferred since the values are meant for SDKMACHINE and not for native build host so all paths come out incorrect and builds fails for nativesdk packages Therefore we do not stage llvm cmake files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define dynamic linker for nativesdk recipesKhem Raj2015-07-231-0/+3
| | | | | | | | | | | | | When building using crossdk clang the dynamic linker still points to native build system which wont work when SDKMACHINE is differnet than build host so lets pass the values via TOOLCHAIN_OPTIONS to point to correct linker Currently done for x86 only, but this is ok since we dont have other SDKMACHINEs yet, may be in future but we will cross that bridge when we reach there Signed-off-by: Khem Raj <raj.khem@gmail.com>