diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-04-20 09:33:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:05 +0100 |
commit | 51394baea4109ad130e0806848773734db0ca49f (patch) | |
tree | e7c7d4d1955154e091252bcbeb93f3c8cd7fb13a | |
parent | a68dd429c2d582bf67a00450ac0e8736eac744fe (diff) | |
download | poky-51394baea4109ad130e0806848773734db0ca49f.tar.gz |
llvm: Fix [compile-host-path] QA issue
Its trying to build NATIVE llvm-config which is
already built with llvm-native so we do not need
to rebuild it
Drop setting NINJA_STATUS explicitly, its no longer
needed, on the contrary it hinders the task status
update
(From OE-Core rev: f8393b2b4bc5fbd972be00cb17d0c574ae8deff9)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/llvm/llvm/0001-Disable-generating-a-native-llvm-config.patch | 41 | ||||
-rw-r--r-- | meta/recipes-devtools/llvm/llvm_git.bb | 7 |
2 files changed, 45 insertions, 3 deletions
diff --git a/meta/recipes-devtools/llvm/llvm/0001-Disable-generating-a-native-llvm-config.patch b/meta/recipes-devtools/llvm/llvm/0001-Disable-generating-a-native-llvm-config.patch new file mode 100644 index 0000000000..2809e4c594 --- /dev/null +++ b/meta/recipes-devtools/llvm/llvm/0001-Disable-generating-a-native-llvm-config.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 7f7743ce233fcd735ec580c75270413493658aa6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 19 Apr 2018 18:08:31 -0700 | ||
4 | Subject: [PATCH] Disable generating a native llvm-config | ||
5 | |||
6 | OpenEmbedded already builds this as part of llvm-native | ||
7 | |||
8 | Upstream-Status: Inappropriate [OE-Specific] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | tools/llvm-config/CMakeLists.txt | 16 ---------------- | ||
13 | 1 file changed, 16 deletions(-) | ||
14 | |||
15 | diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt | ||
16 | index 25f99cec978..c45e9b642a8 100644 | ||
17 | --- a/tools/llvm-config/CMakeLists.txt | ||
18 | +++ b/tools/llvm-config/CMakeLists.txt | ||
19 | @@ -63,19 +63,3 @@ endif() | ||
20 | |||
21 | # Add the dependency on the generation step. | ||
22 | add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/llvm-config.cpp ${BUILDVARIABLES_OBJPATH}) | ||
23 | - | ||
24 | -if(CMAKE_CROSSCOMPILING) | ||
25 | - set(${project}_LLVM_CONFIG_EXE "${LLVM_NATIVE_BUILD}/bin/llvm-config") | ||
26 | - set(${project}_LLVM_CONFIG_EXE ${${project}_LLVM_CONFIG_EXE} PARENT_SCOPE) | ||
27 | - | ||
28 | - add_custom_command(OUTPUT "${${project}_LLVM_CONFIG_EXE}" | ||
29 | - COMMAND ${CMAKE_COMMAND} --build . --target llvm-config --config $<CONFIGURATION> | ||
30 | - DEPENDS ${LLVM_NATIVE_BUILD}/CMakeCache.txt | ||
31 | - WORKING_DIRECTORY ${LLVM_NATIVE_BUILD} | ||
32 | - COMMENT "Building native llvm-config..." | ||
33 | - USES_TERMINAL) | ||
34 | - add_custom_target(${project}NativeLLVMConfig DEPENDS ${${project}_LLVM_CONFIG_EXE}) | ||
35 | - add_dependencies(${project}NativeLLVMConfig CONFIGURE_LLVM_NATIVE) | ||
36 | - | ||
37 | - add_dependencies(llvm-config ${project}NativeLLVMConfig) | ||
38 | -endif(CMAKE_CROSSCOMPILING) | ||
39 | -- | ||
40 | 2.17.0 | ||
41 | |||
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index 77c095d9a3..cb3bba6fab 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb | |||
@@ -26,6 +26,7 @@ PATCH_VERSION = "0" | |||
26 | SRC_URI = "git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};protocol=http \ | 26 | SRC_URI = "git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};protocol=http \ |
27 | file://0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \ | 27 | file://0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \ |
28 | file://0002-llvm-allow-env-override-of-exe-path.patch \ | 28 | file://0002-llvm-allow-env-override-of-exe-path.patch \ |
29 | file://0001-Disable-generating-a-native-llvm-config.patch \ | ||
29 | " | 30 | " |
30 | UPSTREAM_CHECK_COMMITS = "1" | 31 | UPSTREAM_CHECK_COMMITS = "1" |
31 | S = "${WORKDIR}/git" | 32 | S = "${WORKDIR}/git" |
@@ -85,15 +86,15 @@ do_configure_prepend() { | |||
85 | } | 86 | } |
86 | 87 | ||
87 | do_compile() { | 88 | do_compile() { |
88 | NINJA_STATUS="[%p] " ninja -v ${PARALLEL_MAKE} | 89 | ninja -v ${PARALLEL_MAKE} |
89 | } | 90 | } |
90 | 91 | ||
91 | do_compile_class-native() { | 92 | do_compile_class-native() { |
92 | NINJA_STATUS="[%p] " ninja -v ${PARALLEL_MAKE} llvm-config llvm-tblgen | 93 | ninja -v ${PARALLEL_MAKE} llvm-config llvm-tblgen |
93 | } | 94 | } |
94 | 95 | ||
95 | do_install() { | 96 | do_install() { |
96 | NINJA_STATUS="[%p] " DESTDIR=${LLVM_INSTALL_DIR} ninja -v install | 97 | DESTDIR=${LLVM_INSTALL_DIR} ninja -v install |
97 | install -D -m 0755 ${B}/bin/llvm-config ${D}${libdir}/${LLVM_DIR}/llvm-config | 98 | install -D -m 0755 ${B}/bin/llvm-config ${D}${libdir}/${LLVM_DIR}/llvm-config |
98 | 99 | ||
99 | install -d ${D}${bindir}/${LLVM_DIR} | 100 | install -d ${D}${bindir}/${LLVM_DIR} |