summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* clang: Update to latest 8.x branchKhem Raj2019-02-1319-29/+30
| | | | | | Forward port ppc/musl patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Disable internal assembler for directFB on ARMKhem Raj2019-02-121-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use gold linker for nativersdkKhem Raj2019-02-111-12/+12
| | | | | | | | | | | | | | nativesdk packages are special in OE, where linker pads the dynamic section with additional bits so that can be patched to a relocatable location duting installing SDK, lld will need such a patch if it has to link the nativesdk apps, until then we use gold Add more fine grained packageconfigs for libpfm, ncurses, and libedit Enable clang as toolchain to build nativesdk version of clang with gold linker Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cross,sdk,cross-canadian: Create symlinks for llvm-ar llvm-ranlib llvm-nmKhem Raj2019-02-113-33/+19
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Set nativesk ldso location correctly during linkKhem Raj2019-02-111-3/+8
| | | | | | | | | | Add aarch64 host support Enable lld via LDFLGS instead of TOOLCHAIN_FLAGS which also get passed to compiler Add relative rpaths so the liraries from SDK sysroot are preferred over sdk host when SDK is used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nativesdk-clang-glue: Symlink /lib dir for libgcc_s and friendsKhem Raj2019-02-111-1/+3
| | | | | | Without this -fuse-ld=lld fails to find libgcc_s Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix nativesdk builds to use clang-nativeKhem Raj2019-02-116-13/+47
| | | | | | | | | | - User lld for linking nativesdk-clang - Enable LTO to build nativesdk-clang - Use -static-libgcc when using gold/lld for nativesdk clang build - Use llvm wrappers for ar ranlib and nm to help LTO - Package and create cross versions of lld Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-nativesdk: Do not default to clang-runtimeKhem Raj2019-02-091-1/+1
| | | | | | | | | | | This make it use same runtime as the cross compiler default, which is more or less what is going to be case, if one wants to use clang runtime then it should be enabled across all clang variants (native/nativesdk/cross) Fixes Issue #66 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Use static version from libcxxKhem Raj2019-02-091-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable lld for linker during stage2 of clang-native buildKhem Raj2019-02-091-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable 2 stage bootstrap for clang-nativeKhem Raj2019-02-091-5/+23
| | | | | | This will help in using clang Thin-LTO to compile clang itself Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Disable standalone buildKhem Raj2019-02-092-5/+11
| | | | | | | | | | | standalone build starts to look for c++ headers which then are fed from libstc++ because libcxx is not built yet, instead let build use it from in-tree libcxx enable llvm-ar/llvm-ranlib/llvm-nm to provide ar/ranlib/nm respectively, this helps with lto enabled builds for libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 8.xKhem Raj2019-02-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable LTO and lld based on distro knobsKhem Raj2019-02-093-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | Add to local.conf or distro config the following to enable lto flavors and lld linker DISTRO_FEATURES += "thin-lto" DISTRO_FEATURES += "full-lto" DISTRO_FEATURES += "lld" Add lto.bbclass To enable LTO is currently per recipe, or globally to enable globally add following to global config meta-data e.g. local.conf INHRIT += "lto" other-wise enable LTO per recipe using inherit lto to recipe via bbappend or in main recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Compiler native and clang for target with Thin-LTO enabledKhem Raj2019-02-071-3/+10
| | | | | | Should speed up compiler speed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Refresh patches and use static libunwind.a during default linkKhem Raj2019-02-0719-63/+63
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Make libunwind as static libraryKhem Raj2019-02-072-19/+14
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 8.0.0 RC2Khem Raj2019-02-071-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 8.x/rc1Khem Raj2019-02-031-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.x release branchKhem Raj2019-02-011-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable a cross version of clang-tidyKhem Raj2019-01-315-0/+5
| | | | | | define CLANG_TIDY_EXE which is used by some build systems e.g. cmake Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Add .dword support for aarch64 MCKhem Raj2019-01-312-0/+58
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Add libunwind to linker cmdline when using compiler-rtKhem Raj2019-01-311-6/+9
| | | | | | libunwind also drags in libpthread and libdl so add those too Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: Use GNU assembler for openssl10Khem Raj2019-01-311-0/+2
| | | | | | It uses gnu as specific syntax Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Undo -fno-tree-vrp for clangKhem Raj2019-01-291-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to tip of release/8.xKhem Raj2019-01-291-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: link with libgcc_eh.a when using compiler-rtKhem Raj2019-01-271-6/+8
| | | | | | | | | | compiler-rt is not a full replacement for libgcc, it provides the built-ins so we are left with EH and unwinding support to be had from elsewhere, we could use LLVM linunwind but that depends on libpthread so it will end up pulling too many libraries for meantime link with libgcc_eh.a when --rtlib=compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use -l:lib method to specify libunwind.aKhem Raj2019-01-261-5/+10
| | | | | | This makes sure that linker treats it as a library and not object Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Document switching compiler runtimeKhem Raj2019-01-261-1/+14
| | | | | | We can now use full clang runtime suite and replace gcc runtime Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add libunwind automatically to link cmdline when using compiler-rtKhem Raj2019-01-262-0/+24
| | | | | | | This makes compile-rt equal to libgcc which has both builtins+unwind as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx: Remove --rtlib=compiler-rtKhem Raj2019-01-262-0/+2
| | | | | | This avoids catch-22 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on release/8.x branchKhem Raj2019-01-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Do not remove deps on compiler-rt and libcxxKhem Raj2019-01-241-3/+0
| | | | | | This builds ok with them now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Append to CXX along with TARGET_CXXFLAGS to carry ↵Khem Raj2019-01-243-7/+10
| | | | | | | | -stdlib flag Since TARGET_CXXFLAGS does not get passed into all packages Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Mark gstreamer1.0-libav to use gnu assemblerKhem Raj2019-01-241-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Use compiler-rt for C runtimeKhem Raj2019-01-241-1/+2
| | | | 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: Update license checksumsKhem Raj2019-01-194-7/+7
| | | | | | The only change is update to the year in license files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to upcoming 8.0 release branchKhem Raj2019-01-1923-634/+263
| | | | | | | | | | | | | | | Clang 8.0 is going to be released in Feb-March 2019 so here we switch to release/8.x branch a bit early so we can provide some feedback for release to be good on OE If one needs to use stable 7.0.1 release please use thud branch clang 8.0 does have RISC-V backend, enable it clang: Add building experimental targets e.g. riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project: Switch to canonical git mirrorDan McGregor2019-01-163-6/+6
| | | | | | | LLVM now has an official git monorepo mirror. It will likely become the canonical upstream in the near future. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* README.md: fix typoAdam Romanek2019-01-151-1/+1
|
* compiler-rt: Fix unintended dependencies concatenationAdam Romanek2019-01-041-1/+1
| | | | | The error message was: >> Nothing PROVIDES 'ninja-nativeclang-native' (but virtual:nativesdk:/media/storage/romanek-adam/build-2018-12-17-clang/workspace/meta-clang/recipes-devtools/clang/compiler-rt_git.bb DEPENDS on or otherwise requires it)
* nativesdk-compiler-rt: Add missing dep on clang-nativeKhem Raj2018-12-271-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,nativesdk-packagegroup-sdk-host: Recognise risc-vKhem Raj2018-12-273-4/+1
| | | | | | | 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>
* layer.conf: Use dynamic layer featureKhem Raj2018-12-272-0/+5
| | | | | | | | | | | | This feature lets bbappend to be applied only when a given layer is present in layermix move kernel-selftest.bbappend to dynamic-layers/openembedded-layer where it belongs Fix Issue #78 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Do not force lld to link stepKhem Raj2018-12-271-2/+0
| | | | | | This was an experimental change Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nativesdk-clang: Rely on runtime build via libcxx and compiler-rt recipesKhem Raj2018-12-271-2/+0
| | | | | | | | This was trying to build runtime during build but we already have recipes for libcxx and compiler-rt to do that, unless we merge them into clang recipe, we need to keep using them to provide nativesdk clang runtime Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-2720-150/+154
| | | | | | | | | | | | | | This is an overhaul of clang/llvm project related recipes * switch to using a flat mono repo for all clang/llvm projects * Add llvm-project-source recipe which will prepare source tree in work-shared for all recipes much like kernel and gcc * build lld as part of clang recipes, its much easier and saves build time and hopefully nativesdk version will be built now for free * switch to official git repos at git://github.com/llvm-project * Adjust all recipes to use shared sources Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lld: DeleteKhem Raj2018-12-271-52/+0
| | | | | | lld is being merged into clang recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* systemd-boot: Do not export NM, AR and RANLIBKhem Raj2018-12-271-4/+0
| | | | | | this is no longer needed as it seems. Signed-off-by: Khem Raj <raj.khem@gmail.com>