Skip to contentSkip to conversation

llvm-common: move cross script install to sysroot preprocess function

PATCH Superseded Jonathan Liu 2 participants 3 messages Jun 2, 2013 – Jun 12, 2013

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index 612fd34..3a4232f 100644
@@ -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
#1 lore raw
Quoted 13 lines · Jonathan Liu

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 +0 -0
index 612fd34..3a4232f 100644

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

#2 lore raw
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.

---
  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
index 612fd34..3a4232f 100644

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

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