llvm-common: move cross script install to sysroot preprocess function
PATCH v2 1/1 llvm-common: move cross script install to sysroot preprocess function
The llvm-config script doesn't get placed in the target sysroot crossscripts directory otherwise.
--- meta-oe/recipes-core/llvm/llvm-common.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-core/llvm/llvm-common.bb +5 -1
@@ -6,7 +6,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 SRC_URI = "file://llvm-config" -do_install() { +ALLOW_EMPTY_${PN} = "1" +SYSROOT_PREPROCESS_FUNCS += "llvm_common_sysroot_preprocess" +SYSROOT_PREPROCESS_FUNCS_virtclass-native += "" + +llvm_common_sysroot_preprocess() { install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ }
Signature · 1 line
1.8.3
Quoted 13 lines · Jonathan Liu
The llvm-config script doesn't get placed in the target sysroot crossscripts directory otherwise.
Signed-off-by Jonathan Liu <[email protected]>--- meta-oe/recipes-core/llvm/llvm-common.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)meta-oe/recipes-core/llvm/llvm-common.bb +0
-0
meta-oe/recipes-core/llvm/llvm-common.bb LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 · line 12
Quoted 8 lines
meta-oe/recipes-core/llvm/llvm-common.bb +4
-1@@ -6,7 +6,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 SRC_URI = "file://llvm-config" -do_install() { +ALLOW_EMPTY_${PN} = "1" +SYSROOT_PREPROCESS_FUNCS += "llvm_common_sysroot_preprocess" +SYSROOT_PREPROCESS_FUNCS_virtclass-native += "" +
so you want this to run for target recipe only it seems. above won't do it. you could do something like
SYSROOT_PREPROCESS_FUNCS_append_class-target = "llvm_common_sysroot_preprocess "
Quoted 11 lines
meta-oe/recipes-core/llvm/llvm-common.bb +1
-1+llvm_common_sysroot_preprocess() { install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ } --1.8.3
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 25 lines · Khem Raj
Quoted 13 lines · Jonathan Liu
The llvm-config script doesn't get placed in the target sysroot crossscripts directory otherwise.
Signed-off-by Jonathan Liu <[email protected]>--- meta-oe/recipes-core/llvm/llvm-common.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)meta-oe/recipes-core/llvm/llvm-common.bb +0
-0meta-oe/recipes-core/llvm/llvm-common.bb LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 · line 12
Quoted 8 lines
meta-oe/recipes-core/llvm/llvm-common.bb +4
-1@@ -6,7 +6,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 SRC_URI = "file://llvm-config" -do_install() { +ALLOW_EMPTY_${PN} = "1" +SYSROOT_PREPROCESS_FUNCS += "llvm_common_sysroot_preprocess" +SYSROOT_PREPROCESS_FUNCS_virtclass-native += "" +so you want this to run for target recipe only it seems. above won't do it. you could do something like
Quoted 2 lines
SYSROOT_PREPROCESS_FUNCS_append_class-target = "
llvm_common_sysroot_preprocess"
It does run only for the target recipe last I checked. That's why I added SYSROOT_PREPROCESS_FUNCS_virtclass-native += "".
Regards,
Jonathan
Quoted 7 lines
Quoted 7 lines
meta-oe/recipes-core/llvm/llvm-common.bb +1
-1+llvm_common_sysroot_preprocess() { install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ } --1.8.3