summaryrefslogtreecommitdiffstats
path: root/classes/cmake-native.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* Revert "cmake-native.bbclass: Add ubfs specific variable to ignore list"Khem Raj2023-11-221-2/+0
| | | | | | | | The problem is in BSP layer [1], these variable should not be exported universally moreover its not needed as well. [1] https://github.com/varigit/meta-variscite-bsp-imx/pull/36 This reverts commit 288f752445d3783dbaf06a60919a2b35b14e3a62.
* cmake-native.bbclass: Add ubfs specific variable to ignore listKhem Raj2023-11-221-0/+2
| | | | | | | | These variables show up as dependencies of native recipes otherwise can cause clang-native to rebuild without a reason just when defined by a machine using ubifs. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cmake-native.bbclass: remove reset of CCACHEKai Kang2020-05-151-3/+0
| | | | | | | | | | It reset variable CCACHE to disable ccache. But that doesn't effect that CCACHE is set in an anonymous function from ccache.bbclass at last and ccache is always not disabled with cmake. Remove these useless piece of code. Signed-off-by: Kai Kang <kai.kang@windriver.com>
* cmake-native.bbclass: Add include and libdir from native sysrootKhem Raj2020-02-211-0/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix nativesdk builds to use clang-nativeKhem Raj2019-02-111-0/+4
| | | | | | | | | | - 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: fix nativesdk buildMing Liu2017-08-231-0/+47
I could not manage to build nativesdk-clang, I encountered errors as follows: (trimmed for purpose) | ../gcc/x86_64-pokysdk-linux/6.3.0/ld:: | cannot find crt1.o: No such file or directory | cannot find crtbegin.o: No such file or directory | cannot find -lgcc | cannot find -lgcc_s After some investigation, I found it's caused by the llvm native tools could not compile with crosssdk toolchains. (special linking flags are needed) So we introduce a cmake-native class with a task to generate a native toolchain file, it will be used to build llvm native tools by passed with CROSS_TOOLCHAIN_FLAGS_NATIVE. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>