mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
@@ -10,11 +10,12 @@ DEPENDS += "python3-scons-native"
|
|||||||
|
|
||||||
EXTRA_OESCONS ?= ""
|
EXTRA_OESCONS ?= ""
|
||||||
# This value below is derived from $(getconf ARG_MAX)
|
# This value below is derived from $(getconf ARG_MAX)
|
||||||
SCONS_MAXLINELENGTH ?= "2097152"
|
SCONS_MAXLINELENGTH ?= "MAXLINELENGTH=2097152"
|
||||||
|
EXTRA_OESCONS:append = " ${SCONS_MAXLINELENGTH}"
|
||||||
do_configure() {
|
do_configure() {
|
||||||
if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
|
if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
|
||||||
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
|
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
|
||||||
${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean PREFIX=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} prefix=${prefix} ${EXTRA_OESCONS}
|
${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p `dirname ${CONFIGURESTAMPFILE}`
|
mkdir -p `dirname ${CONFIGURESTAMPFILE}`
|
||||||
@@ -23,12 +24,12 @@ do_configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scons_do_compile() {
|
scons_do_compile() {
|
||||||
${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} || \
|
${STAGING_BINDIR_NATIVE}/scons --directory=${S} ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
|
||||||
die "scons build execution failed."
|
die "scons build execution failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
scons_do_install() {
|
scons_do_install() {
|
||||||
${STAGING_BINDIR_NATIVE}/scons --directory=${S} install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} MAXLINELENGTH=${SCONS_MAXLINELENGTH} ${EXTRA_OESCONS} install || \
|
${STAGING_BINDIR_NATIVE}/scons --directory=${S} install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
|
||||||
die "scons install execution failed."
|
die "scons install execution failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user