diff options
-rw-r--r-- | meta/classes-recipe/scons.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes-recipe/scons.bbclass b/meta/classes-recipe/scons.bbclass index d510c12b9b..d20a78dc6e 100644 --- a/meta/classes-recipe/scons.bbclass +++ b/meta/classes-recipe/scons.bbclass | |||
@@ -10,11 +10,12 @@ DEPENDS += "python3-scons-native" | |||
10 | 10 | ||
11 | EXTRA_OESCONS ?= "" | 11 | EXTRA_OESCONS ?= "" |
12 | # This value below is derived from $(getconf ARG_MAX) | 12 | # This value below is derived from $(getconf ARG_MAX) |
13 | SCONS_MAXLINELENGTH ?= "2097152" | 13 | SCONS_MAXLINELENGTH ?= "MAXLINELENGTH=2097152" |
14 | EXTRA_OESCONS:append = " ${SCONS_MAXLINELENGTH}" | ||
14 | do_configure() { | 15 | do_configure() { |
15 | if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then | 16 | if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then |
16 | if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then | 17 | if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then |
17 | ${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean PREFIX=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} prefix=${prefix} ${EXTRA_OESCONS} | 18 | ${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} |
18 | fi | 19 | fi |
19 | 20 | ||
20 | mkdir -p `dirname ${CONFIGURESTAMPFILE}` | 21 | mkdir -p `dirname ${CONFIGURESTAMPFILE}` |
@@ -23,12 +24,12 @@ do_configure() { | |||
23 | } | 24 | } |
24 | 25 | ||
25 | scons_do_compile() { | 26 | scons_do_compile() { |
26 | ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} || \ | 27 | ${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \ |
27 | die "scons build execution failed." | 28 | die "scons build execution failed." |
28 | } | 29 | } |
29 | 30 | ||
30 | scons_do_install() { | 31 | scons_do_install() { |
31 | ${STAGING_BINDIR_NATIVE}/scons --directory=${S} install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} install || \ | 32 | ${STAGING_BINDIR_NATIVE}/scons --directory=${S} install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \ |
32 | die "scons install execution failed." | 33 | die "scons install execution failed." |
33 | } | 34 | } |
34 | 35 | ||