Patchwork [meta-oe] llvm: install llvm-config in crossscripts

login
register
mail settings
Submitter Jonathan Liu
Date May 31, 2013, 1:48 p.m.
Message ID <1370008134-25208-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/50959/
State Superseded, archived
Headers show

Comments

Jonathan Liu - May 31, 2013, 1:48 p.m.
The llvm-config script was being installed to the native sysroot but not
in crossscripts. As a result, recipes would pick up the native
llvm-config which would give flags for native LLVM instead of target
LLVM and result in compile errors.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta-oe/recipes-core/llvm/llvm.inc | 1 +
 1 file changed, 1 insertion(+)
Jonathan Liu - May 31, 2013, 2:20 p.m.
On 31/05/2013 11:48 PM, Jonathan Liu wrote:
> The llvm-config script was being installed to the native sysroot but not
> in crossscripts. As a result, recipes would pick up the native
> llvm-config which would give flags for native LLVM instead of target
> LLVM and result in compile errors.
>
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---
>   meta-oe/recipes-core/llvm/llvm.inc | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
> index a56fda0..59f4f25 100644
> --- a/meta-oe/recipes-core/llvm/llvm.inc
> +++ b/meta-oe/recipes-core/llvm/llvm.inc
> @@ -160,6 +160,7 @@ llvm_sysroot_preprocess() {
>   
>           install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
>           install -m 0755 bin/llvm-config${LLVM_RELEASE} ${SYSROOT_DESTDIR}${bindir_crossscripts}
> +        install -m 0755 bin/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}
>   }
>   
>   do_install_virtclass-native() {
Please disregard this patch. It seems to be installing it incorrectly.

Regards,
Jonathan

Patch

diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
index a56fda0..59f4f25 100644
--- a/meta-oe/recipes-core/llvm/llvm.inc
+++ b/meta-oe/recipes-core/llvm/llvm.inc
@@ -160,6 +160,7 @@  llvm_sysroot_preprocess() {
 
         install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
         install -m 0755 bin/llvm-config${LLVM_RELEASE} ${SYSROOT_DESTDIR}${bindir_crossscripts}
+        install -m 0755 bin/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}
 }
 
 do_install_virtclass-native() {