diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-02-02 00:41:16 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 17:02:10 +0000 |
commit | fb0b2cf7727984bfdc295879bd605d6bd105c585 (patch) | |
tree | 7fcfc985890b89afae0b96250f778e3699c0c861 /meta | |
parent | 0890c01d118de84d0d0b71a61f95ca98c6a5bea8 (diff) | |
download | poky-fb0b2cf7727984bfdc295879bd605d6bd105c585.tar.gz |
scons.bbclass: Make MAXLINELENGTH overridable
older scons do not support MAXLINELENGTH and some packages still may be
using older scons, these recipes can clear SCONS_MAXLINELENGTH in them
and get going. Set
SCONS_MAXLINELENGTH = ""
in such recipes.
(From OE-Core rev: 34de57d12c0a752f66c962d29e5335c1035db066)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 | ||