summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* layers: Add meta-browser to dynamic layersKhem Raj2019-09-233-0/+10
| | | | | | | | | | meta-browser/master builds with multiple releases of meta-clang(thud,warrior,master) but sometimes we only need tweaks for a given clang version, this helps doing so Enable lld as default linker Signed-off-by: Khem Raj <raj.khem@gmail.com>
* chromium: Use libgcc unwinder on armKhem Raj2019-09-211-0/+6
| | | | | | It crashes with out this Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to final 9.0.0 releaseKhem Raj2019-09-211-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: Provide libunwindKhem Raj2019-09-191-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: New reecipe for llvm unwinder split from libcxxKhem Raj2019-09-193-34/+103
| | | | | | | Its easier to provide it as replacement for nongnu libunwind bundled into libcxx was getting harder when it came to replacement Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Reset EXCLUDE_FROM_WORLDKhem Raj2019-09-181-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Do not set LIBCPLUSPLUS and COMPILER_RT when compiler != clangKhem Raj2019-09-182-8/+16
| | | | | | | | | | | | | * Add compiler-rt and libcxx only when these libs are used via cmdline * libffi still need to disable internal asm on arm <= v6 * Add compiler-rt to linker only when compiler-rt is used in compiler cmdline * Set BASE_DEFAULT_DEPS instead of munging BASEEDEPENDS directly Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: pass PYTHON_EXECUTABLE to target as wellAnuj Mittal2019-09-183-0/+27
| | | | | | | Also make sure that we pass this value on to an internal native build that tries to detect python while cross-compiling. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* compiler-rt: stage libs in case of multlib as wellAnuj Mittal2019-09-181-1/+5
| | | | | | | We install compiler libs in lib irrespective of value of libdir. Make sure that these libs are actually staged as well when libdir != /usr/lib. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* libcxx: support multilibAnuj Mittal2019-09-181-1/+2
| | | | | | Use LLVM_LIBDIR_SUFFIX with the correct value of suffix derived using baselib. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* clang: support multilibAnuj Mittal2019-09-181-0/+1
| | | | | | Pass LLVM_LIBDIR_SUFFIX with the correct value of lib suffix. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* Update to latest on 9.xKhem Raj2019-09-161-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* add lldb-wchar packageconfig optionJeremy Puhlman2019-09-161-2/+3
| | | | | | | | | | | | | | | | Turn off wchar in editline for native and nativesdk | In file included from /build/poky/build/tmp/work-shared/llvm-project-source-9.0.0-r0/git/lldb/source/Core/IOHandler.cpp:31:0: | /build/poky/build/tmp/work-shared/llvm-project-source-9.0.0-r0/git/lldb/include/lldb/Host/Editline.h:36:19: | fatal error: codecvt: No such file or directory | #include <codecvt> | ^ wchar causes codecvt to be included, which does not exist on centos7, which prevents clang-native from building. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* scan-build: Limit scans to target recipes onlyKhem Raj2019-09-163-24/+50
| | | | | | | | Add a blacklist for scanning, add packages which are not scannable Add --force-analyze-debug-code and -analyze-headers to default set of scan options Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Remove python syntax highlighterKhem Raj2019-09-151-3/+3
|
* More syntax changesKhem Raj2019-09-151-20/+16
|
* Update contribution guideline and general typosKhem Raj2019-09-151-12/+6
|
* clang: Add libxml2-native libedit-native to dependsKhem Raj2019-09-151-4/+7
| | | | | | | pkgconfig is needed for detecting libedit python3-dir is already inherited in python3native so remove it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Turn bootstrapping into a packageconfigKhem Raj2019-09-141-22/+16
| | | | | | | | | | This helps to enable/disable it on demand, currently we have some problems with stage2 not respecting PYTHON_EXECUTABLE e.g. which can cause problems when we have non-standard local installs of python, this should actually be fixed in llvm CMake infra, but we insulate ourselves here first Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define BINPATHPREFIXKhem Raj2019-09-141-4/+6
| | | | | | This is to make stage2 as an optional step maybe a packageconfig Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: make sure python3 is used for native buildsMartin Jansa2019-09-141-1/+2
| | | | | | | | | | | * with /usr/bin/python -> python2.7 on the host, I was seeing: CMake Error at work-shared/llvm-project-source-9.0.0-r0/git/lldb/cmake/modules/LLDBConfig.cmake:229 (message): Found incompatible Python interpreter (2.7) and Python libraries (3.7) Call Stack (most recent call first): work-shared/llvm-project-source-9.0.0-r0/git/lldb/CMakeLists.txt:20 (include) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.xKhem Raj2019-09-141-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix installation of clang-tblgen and lldb-tblgenDamian Wrobel2019-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Fixes: | install: cannot stat ‘/data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/build/bin/clang-tblgen’: No such file or directory | WARNING: /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/temp/run.do_install.25108:1 exit 1 from 'install -Dm 0755 /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/build/bin/clang-tblgen /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/image/data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/sysroots/x86_64-linux/usr/bin/clang-tblgen' $ cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) The location of the tools is as following: $ pwd /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/build $ find . -name clang-tblgen ./tools/clang/stage2-bins/bin/clang-tblgen ./tools/clang/stage2-bins/NATIVE/bin/clang-tblgen ./NATIVE/bin/clang-tblgen $ find . -name lldb-tblgen ./tools/clang/stage2-bins/bin/lldb-tblgen ./tools/clang/stage2-bins/NATIVE/bin/lldb-tblgen Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Let cmake figure out python version for nativeKhem Raj2019-09-123-33/+9
| | | | | | supply python3 for nativesdk and target recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add support for RISCV floating point registers in inlineasmKhem Raj2019-09-122-0/+104
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Disable target clang for riscvKhem Raj2019-09-121-0/+3
| | | | | | | | | Its not supported as native host _yet_ CMake Error at cmake/config-ix.cmake:438 (message): Unknown architecture riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
* omxplayer: Mark gcc only for nowKhem Raj2019-09-121-0/+2
| | | | | | it needs some work to port to compile with clang++ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libc-bench,libhugetlbfs,tsocks: Link with libgcc on clang/x86Khem Raj2019-09-111-0/+7
| | | | | | | glibc links with libgcc and therefore expects libgcc symbols during static linking as well 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>
* clang: Update to llvmorg-9.0.0-rc4Khem Raj2019-09-111-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* glibc-testsuite: Mark gcc only packageKhem Raj2019-09-111-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: correct typo errorNaveen Saini2019-09-101-1/+1
| | | | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* clang: Update to latest on 9.xKhem Raj2019-09-101-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Pass PYTHON_LIBRARY and PYTHON_INCLUDE_DIR to second stageKhem Raj2019-09-101-1/+1
| | | | | | This should ensure that right native python infra is used all along Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Explictly define PYTHON_LIBRARY and PYTHON_INCLUDE_DIRKhem Raj2019-09-091-2/+2
| | | | | | oe-core doesnt yet define these variables Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: Mark non-clangable on powerpcKhem Raj2019-09-091-0/+1
| | | | | | clang/ppc missing 64bit atomics Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Use gcc to compile m4 on ppcKhem Raj2019-09-091-0/+2
| | | | | | we do not have compiler-rt on ppc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Backport a fix to re-arrange header include order on muslKhem Raj2019-09-092-0/+116
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Facilitate building without llvm libunwindKhem Raj2019-09-091-10/+15
| | | | | | | | | | | | | | | | | | | | | | | when llvm unwind library is disabled, build was not picking up libgcc automatically since we still use, compiler-rt for C runtime, therefore introduce it via special CMAKE_SHARED_LINKER_FLAGS in packageconfig Bundle static unwind library into libcxx-abi library and bundle libcxx-abi.a into libc++.a this helps in just specifying lc++ and no other flags are needed. Also bundle static libunwind and cxx-abi but not into shared libc++, this would avoid adding them explicitly on linker cmdline in packages when doing static linking Use PREFERRED_PROVIDER_libunwind to determine if unwind packageconfig should be enabled or not Pass -fno-exceptions on arm, otherwise it links in unwinding routines which it expects to link from libgcc_s, we really don't need this when doing cmake checks so disable exceptions during cmake checks Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.x branchKhem Raj2019-09-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Add ^libunwind-locale-.* to PACKAGES_DYNAMICKhem Raj2019-09-091-0/+2
| | | | | | | this should help when libcxx is preferred to provide libunwind and help masking the packages coming from libunwind recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Rename lldb-python to have PN in nameKhem Raj2019-09-071-3/+3
| | | | | | | | | This helps in extending rules to native/nativesdk recipes fixes ERROR: nativesdk-clang-9.0.0-r0 do_package_qa: QA Issue: nativesdk-python-lldb rdepends on nativesdk-clang-dev [dev-deps] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define PYTHON_LIBRARY and PYTHON_INCLUDE_DIRKhem Raj2019-09-0724-110/+76
| | | | | | | | - Update at the same time to latest on 9.x - Update patches to drop patch numbers - Drop lldb from search python interpreter Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: compiler-rt does not compile for ppc32Khem Raj2019-09-021-0/+1
| | | | | | Use libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Use -mlong-double-64 on ppc64/muslKhem Raj2019-09-021-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Package into /usr/lib alwaysKhem Raj2019-09-021-13/+14
| | | | | | | Clang differentiates on compiler-rt name and not dirs so installing all of them into /usr/lib/clang is fine and expected 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>
* libcxx: Fix build on ppcKhem Raj2019-09-021-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 9.0-rc3Khem Raj2019-09-022-2/+2
| | | | | | | Default to ssp and pie irrespective of GCCPIE this lets us build one clang for all Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest.bbappend: Remove llvm-native from dependencyKhem Raj2019-08-281-0/+1
| | | | | | | clang-native is sufficient to provide needed tools for kernel-selftest including the ones from llvm-native Signed-off-by: Khem Raj <raj.khem@gmail.com>