Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCH v2] llvm-common: move cross script install to sysroot preprocess function
@ 2013-06-02  8:06 Jonathan Liu
  2013-06-11  7:44 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Liu @ 2013-06-02  8:06 UTC (permalink / raw)
  To: openembedded-devel

The llvm-config script doesn't get placed in the target sysroot
crossscripts directory otherwise.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta-oe/recipes-core/llvm/llvm-common.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-core/llvm/llvm-common.bb b/meta-oe/recipes-core/llvm/llvm-common.bb
index 612fd34..3a4232f 100644
--- a/meta-oe/recipes-core/llvm/llvm-common.bb
+++ b/meta-oe/recipes-core/llvm/llvm-common.bb
@@ -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}/
 }
-- 
1.8.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-oe][PATCH v2] llvm-common: move cross script install to sysroot preprocess function
  2013-06-02  8:06 [meta-oe][PATCH v2] llvm-common: move cross script install to sysroot preprocess function Jonathan Liu
@ 2013-06-11  7:44 ` Khem Raj
  2013-06-12 13:23   ` Jonathan Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2013-06-11  7:44 UTC (permalink / raw)
  To: openembeded-devel

On Sun, Jun 2, 2013 at 1:06 AM, Jonathan Liu <net147@gmail.com> wrote:
> The llvm-config script doesn't get placed in the target sysroot
> crossscripts directory otherwise.
>
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---
>  meta-oe/recipes-core/llvm/llvm-common.bb | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-core/llvm/llvm-common.bb b/meta-oe/recipes-core/llvm/llvm-common.bb
> index 612fd34..3a4232f 100644
> --- a/meta-oe/recipes-core/llvm/llvm-common.bb
> +++ b/meta-oe/recipes-core/llvm/llvm-common.bb
> @@ -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 "

> +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
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-oe][PATCH v2] llvm-common: move cross script install to sysroot preprocess function
  2013-06-11  7:44 ` Khem Raj
@ 2013-06-12 13:23   ` Jonathan Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Liu @ 2013-06-12 13:23 UTC (permalink / raw)
  To: openembedded-devel

On 11/06/2013 5:44 PM, Khem Raj wrote:
> On Sun, Jun 2, 2013 at 1:06 AM, Jonathan Liu <net147@gmail.com> wrote:
>> The llvm-config script doesn't get placed in the target sysroot
>> crossscripts directory otherwise.
>>
>> Signed-off-by: Jonathan Liu <net147@gmail.com>
>> ---
>>   meta-oe/recipes-core/llvm/llvm-common.bb | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta-oe/recipes-core/llvm/llvm-common.bb b/meta-oe/recipes-core/llvm/llvm-common.bb
>> index 612fd34..3a4232f 100644
>> --- a/meta-oe/recipes-core/llvm/llvm-common.bb
>> +++ b/meta-oe/recipes-core/llvm/llvm-common.bb
>> @@ -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 "
It does run only for the target recipe last I checked. That's why I 
added SYSROOT_PREPROCESS_FUNCS_virtclass-native += "".

Regards,
Jonathan
>> +llvm_common_sysroot_preprocess() {
>>       install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
>>       install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
>>   }
>> --
>> 1.8.3
>>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-12 13:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-02  8:06 [meta-oe][PATCH v2] llvm-common: move cross script install to sysroot preprocess function Jonathan Liu
2013-06-11  7:44 ` Khem Raj
2013-06-12 13:23   ` Jonathan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox