diff options
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-core/llvm/llvm2.inc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/meta-oe/recipes-core/llvm/llvm2.inc b/meta-oe/recipes-core/llvm/llvm2.inc index f683fc351a..a1f6ce87d4 100644 --- a/meta-oe/recipes-core/llvm/llvm2.inc +++ b/meta-oe/recipes-core/llvm/llvm2.inc | |||
| @@ -20,13 +20,8 @@ LLVM_RELEASE = "${PV}" | |||
| 20 | 20 | ||
| 21 | BBCLASSEXTEND = "native" | 21 | BBCLASSEXTEND = "native" |
| 22 | 22 | ||
| 23 | LLVM_BUILD_DIR = "${B}/build" | ||
| 24 | LLVM_INSTALL_DIR = "${B}/llvm-install" | 23 | LLVM_INSTALL_DIR = "${B}/llvm-install" |
| 25 | 24 | ||
| 26 | # llvm *must* be built out of tree | ||
| 27 | OECMAKE_SOURCEPATH = ".." | ||
| 28 | OECMAKE_BUILDPATH = "build" | ||
| 29 | |||
| 30 | # other architectures require X86 available, | 25 | # other architectures require X86 available, |
| 31 | LLVM_EXTRA_ARCH = "X86;" | 26 | LLVM_EXTRA_ARCH = "X86;" |
| 32 | LLVM_EXTRA_ARCH_x86 = "" | 27 | LLVM_EXTRA_ARCH_x86 = "" |
| @@ -73,7 +68,7 @@ base_do_compile_prepend() { | |||
| 73 | 68 | ||
| 74 | do_install() { | 69 | do_install() { |
| 75 | # Install into a private directory to be able to reorganize the files. | 70 | # Install into a private directory to be able to reorganize the files. |
| 76 | cd ${LLVM_BUILD_DIR} | 71 | cd ${B} |
| 77 | oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install | 72 | oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install |
| 78 | 73 | ||
| 79 | # Create our custom target directories | 74 | # Create our custom target directories |
| @@ -101,7 +96,7 @@ do_install() { | |||
| 101 | SYSROOT_PREPROCESS_FUNCS_append_class-target = " llvm_sysroot_preprocess" | 96 | SYSROOT_PREPROCESS_FUNCS_append_class-target = " llvm_sysroot_preprocess" |
| 102 | 97 | ||
| 103 | llvm_sysroot_preprocess() { | 98 | llvm_sysroot_preprocess() { |
| 104 | cd ${LLVM_BUILD_DIR} | 99 | cd ${B} |
| 105 | 100 | ||
| 106 | # Fix the paths in the config script to make it find the binaries and | 101 | # Fix the paths in the config script to make it find the binaries and |
| 107 | # library files. Doing so allows 3rd party configure scripts working | 102 | # library files. Doing so allows 3rd party configure scripts working |
| @@ -118,7 +113,7 @@ llvm_sysroot_preprocess() { | |||
| 118 | 113 | ||
| 119 | do_install_class-native() { | 114 | do_install_class-native() { |
| 120 | # Install into a private directory to be able to reorganize the files. | 115 | # Install into a private directory to be able to reorganize the files. |
| 121 | cd ${LLVM_BUILD_DIR} | 116 | cd ${B} |
| 122 | oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install | 117 | oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install |
| 123 | 118 | ||
| 124 | # Create our custom target directories | 119 | # Create our custom target directories |
