summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* clang--cross-canadian,clang-cross: Fix missing dependenciesKhem Raj2015-07-232-6/+6
| | | | | | | | | | These deps makes sure that when the individual target is built then it bullds a working tool no need to stage into ${D}${bindir_crossscripts} unnecessarily when staging code is undoing that Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-crosssdk: Fix depedencies and sysroot stagingKhem Raj2015-07-231-5/+4
| | | | | | | We do not need a preprocess function but override full sysroot_stage_all function to control what gets staged Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nativesdk-clang-glue: Add recipe for glueing clang crossdkKhem Raj2015-07-231-0/+27
| | | | | | | | | | | | | | clang differs subtly when it comes to sysroot support as compared to gcc where the gcc driver is compiled with lot of the paths and information clang is not, nativesdk sysroot is tuned to where gcc expects it, this does not work well for clang, since clang looks for all headers/libraries/compiler-runtime under same sysroot whereas gcc has diffrent understanding of sysroot for target and where it expects gcc headers and other tools needed for compilation. Anyway short story is that we create symlinks into directories for include/ and usr/lib so clang is happy and it does not affect gcc crosssdk Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to 3.7 branchKhem Raj2015-07-142-30/+3
| | | | | | 3.7 release branch has been created. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest tip of master 3.7Khem Raj2015-07-103-12/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add fix for missing is_pod definition and additionally fix packaging for nativesdk PACKAGE_DEBUG_SPLIT_STYLE_class-nativesdk = "debug-without-src" Fixes errors like ERROR: debugedit failed with exit code 256 (cmd was '/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysr oots/x86_64-linux/usr/lib/rpm/bin/debugedit' -b '/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/x86 _64-nativesdk-angstromsdk-linux' -d '/usr/src/debug' -i -l '/mnt/home/kraj/work/angstrom/build/tmp-angstrom-gli bc/work/x86_64-nativesdk-angstromsdk-linux/nativesdk-clang/3.7.0-r0/debugsources.list' '/mnt/home/kraj/work/ang strom/build/tmp-angstrom-glibc/work/x86_64-nativesdk-angstromsdk-linux/nativesdk-clang/3.7.0-r0/package/usr/loc al/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/lib/libLTO.so.3.7.0svn'): /mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit: canonica lization unexpectedly shrank by one character see http://lists.openembedded.org/pipermail/openembedded-core/2013-April/077746.html Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix dynamic linker name for arm hard-floatKhem Raj2015-07-092-0/+41
| | | | | | | | OE depends on commandline option to decide on hf ABI unlike other distros which use target triplet *-*-gnueabihf and clang driver only reacted to triplet and not cmdline options, this patch makes it do that as well 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>
* clang: Add recipes for cross-canadian and crosssdk variantsKhem Raj2015-07-082-0/+59
| | | | | | | These are manipulating nativesdk clang to be used as SDK cross compiler option Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix nativesdk buildNathan Trapp2015-07-081-1/+5
| | | | | Signed-off-by: Nathan Trapp <nathan.trapp@savant.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Remove nativesdk-binutils dependencyOtavio Salvador2015-05-261-0/+1
| | | | | | | The dependency is not necessary for building of the nativesdk package. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix building for targetKhem Raj2015-05-153-1/+44
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 3.8 snapshotKhem Raj2015-05-154-223/+51
| | | | | | Use HOST_CC_ARCH as well in CC and CXX Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm/clang: Remove compiler-rt since its an independent recipe nowKhem Raj2015-04-212-72/+12
| | | | | | | let it be put cross compile tool so no runtime target providers shims Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Add independent recipeKhem Raj2015-04-212-0/+375
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clanf.conf: Remove musl and add compiler-rtKhem Raj2015-04-211-2/+6
| | | | | | | | We cant compile libc yet since musl needs a dep on libgcc and compiler-rt needs some work to reach to that point Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Remove junk filesKhem Raj2015-04-221-0/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Extend to provide nativesdk and update to latestKhem Raj2015-04-131-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-cross: Rename PN to include TARGET_ARCHKhem Raj2015-04-064-4/+6
| | | | | | brings it inline with gcc toolchain Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Pin clang/llvm/compiler-rt to specific revisionsKhem Raj2015-04-031-3/+3
| | | | | | | | Avoids frequent rebuilds these are active projects and it takes a long time to compile. We will update them weekly Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Use clang for compiling toyboxKhem Raj2015-04-021-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Build native tblgen prior to compiler itselfKhem Raj2015-03-312-2/+5
| | | | | | | | | This fixed race conditions during build of clang-native where it cant find native tblgen during cross building clang use clang to compile musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Update README.mdKhem Raj2015-03-131-1/+1
| | | Fix typo in syntax spec
* Merge pull request #1 from dsacre/masterKhem Raj2015-03-131-1/+1
|\ | | | | Update license md5 checksum
| * Update license md5 checksumDominic Sacré2015-03-131-1/+1
|/ | | | | The copyright date in projects/compiler-rt/LICENSE.TXT changed from 2014 to 2015.
* Update README.mdKhem Raj2015-03-121-1/+1
| | | Fix a typo
* Update README.mdKhem Raj2015-03-121-1/+2
| | | shell formatting for code section
* README: Update to reflect latest statusKhem Raj2015-03-121-3/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* classes: Add a mechanism, to select components to be able to select default ↵Khem Raj2015-03-123-0/+25
| | | | | | | | | | | | | | | compiler We add clang as an alternative compiler, it sitll uses underlying binutils and compiler runtime, it will only do the compilation and defer link, to GNU ld/gold, to compile a component usign clang add TOOLCHAIN_pn-<recipe-name> = "clang" DEPENDS_append_pn-<recipe-name> = " clang-cross " And OE will start using clang to compile <recipe-name> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-cross: A wrapper to install cross compiler symlinksKhem Raj2015-03-121-0/+28
| | | | | | | Clang is smart to find for cross binutils if the triplet is called so lets add ${TARGET_PREFIX} to clang and enjoy the benefits Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest git masterKhem Raj2015-03-123-66/+106
| | | | | | | Fix clang-native builds, try to provide things that is a stab at replacing gcc runtime provides Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Intial commitKhem Raj2014-09-118-0/+428
Add clang recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>