summaryrefslogtreecommitdiffstats
path: root/classes
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>
* 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>
* clang.bbclass: remove gcc from deps when appropriateChristopher Larson2016-02-151-15/+4
| | | | 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.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>
* clang: Convert gcc specific endian options to clang accepted onesKhem Raj2015-09-251-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/classes: Invert the logic to select toolchain and default to clangKhem Raj2015-08-211-6/+37
| | | | | | | | | | | | | | | | | | | | | 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.bbclass: Remove junk filesKhem Raj2015-04-221-0/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-cross: Rename PN to include TARGET_ARCHKhem Raj2015-04-061-0/+0
| | | | | | brings it inline with gcc toolchain 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-121-0/+10
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>