Patchwork scons: add EXTRA_OESCONS

login
register
mail settings
Submitter Víctor Manuel Jáquez Leal
Date Jan. 7, 2011, 8:54 p.m.
Message ID <1294433696-2824-1-git-send-email-vjaquez@igalia.com>
Download mbox | patch
Permalink /patch/194/
State Accepted
Headers show

Comments

Víctor Manuel Jáquez Leal - Jan. 7, 2011, 8:54 p.m.
It's similar to EXTRA_OEMAKE, which appends arguments to the scons
command

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
---
 classes/scons.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Koen Kooi - Jan. 7, 2011, 9:17 p.m.
Op 7 jan 2011, om 21:54 heeft Víctor Manuel Jáquez Leal het volgende geschreven:

> It's similar to EXTRA_OEMAKE, which appends arguments to the scons
> command
> 
> Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
> ---
> classes/scons.bbclass |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/classes/scons.bbclass b/classes/scons.bbclass
> index 2a935e4..13243a0 100644
> --- a/classes/scons.bbclass
> +++ b/classes/scons.bbclass
> @@ -11,7 +11,7 @@ scons_do_compile() {
>         fi
>     fi
> 
> -    ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} CXX="${CXX}" PREFIX=${prefix} prefix=${prefix} || \
> +    ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} CXX="${CXX}" PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
>     oefatal "scons build execution failed."
> 

It would be best to do

EXTRA_OESCONS ?= ""

right above that to avoid weird expansion problems.

regards,

Koen

Patch

diff --git a/classes/scons.bbclass b/classes/scons.bbclass
index 2a935e4..13243a0 100644
--- a/classes/scons.bbclass
+++ b/classes/scons.bbclass
@@ -11,7 +11,7 @@  scons_do_compile() {
         fi
     fi
 
-    ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} CXX="${CXX}" PREFIX=${prefix} prefix=${prefix} || \
+    ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} CXX="${CXX}" PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
     oefatal "scons build execution failed."
 }