mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-18 13:11:57 +02:00
* when building for qemux86* it tries to build X86 twice and fails with: | CMake Error at lib/Target/CMakeLists.txt:24 (add_subdirectory): | The binary directory | | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-oe-linux/llvm2.9/2.9-r2.0/llvm-2.9/build/lib/Target/X86 | | is already used to build a source directory. It cannot be used to build | source directory | | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-oe-linux/llvm2.9/2.9-r2.0/llvm-2.9/lib/Target/X86 | | Specify a unique binary directory name. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
41 lines
1.5 KiB
BlitzBasic
41 lines
1.5 KiB
BlitzBasic
require llvm.inc
|
|
|
|
PR = "${INC_PR}.0"
|
|
|
|
SRC_URI += "file://0035-gcc-4.7.patch"
|
|
|
|
# 0019-issue6065.patch is still needed but a bit modified, because it was resolved by
|
|
# http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp?r1=120304&r2=124694&pathrev=124694
|
|
# http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp?diff_format=h&r1=57911&r2=57910&pathrev=57911
|
|
# and still it fails with
|
|
# {standard input}:31: Error: invalid register list to push/pop instruction -- `pop {r0,r1,r2,r3,lr}'
|
|
# make[2]: *** [lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMJITInfo.cpp.o] Error 1
|
|
# SRC_URI += "file://0019-issue6065.patch"
|
|
ARM_INSTRUCTION_SET = "arm"
|
|
|
|
SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
|
|
|
|
PARALLEL_MAKE_virtclass-native = ""
|
|
|
|
EXTRA_OECMAKE = "\
|
|
-DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm${LLVM_RELEASE}/tblgen \
|
|
-DLLVM_TARGETS_TO_BUILD="${LLVM_ARCH}" \
|
|
-DCMAKE_LINKER:FILEPATH=${LD} \
|
|
-DCMAKE_AR:FILEPATH=${AR} \
|
|
-DCMAKE_OBJCOPY:FILEPATH=${OBJCOPY} \
|
|
-DCMAKE_OBJDUMP:FILEPATH=${OBJDUMP} \
|
|
-DCMAKE_RANLIB:FILEPATH=${RANLIB} \
|
|
-DCMAKE_STRIP:FILEPATH=${STRIP} \
|
|
-DNM_PATH:FILEPATH=${NM} \
|
|
-DLLVM_ENABLE_PIC:BOOL=ON \
|
|
-DLLVM_TARGET_ARCH:STRING=${LLVM_ARCH} \
|
|
-DLLVM_ENABLE_ASSERTIONS:BOOL=ON \
|
|
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
"
|
|
|
|
LLVM_RELEASE = "2.9"
|
|
|
|
SRC_URI[md5sum] = "793138412d2af2c7c7f54615f8943771"
|
|
SRC_URI[sha256sum] = "661236cfa17428b48cfa9cbb9909f7569c64b8ecd219fd91dbc00e3b557b3779"
|