| Newsgroups |
gmane.linux.lfs.automated |
| Message-ID |
<[email protected]> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch xry111/parallelism
in repository jhalfs.
commit a9360e10a757f6832b631c9ee4ae3bbe7e500f75
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Nov 17 15:55:36 2023 +0100
Fix MAKEFLAGS for binutils-pass1
We need a special case for binutils-pass1 in case REALSBU is set
to y. Use variables JOBSBP1 in shell and jobs-bp1 in .xsl.
---
LFS/lfs.xsl | 12 +++++++++++-
common/libs/func_book_parser | 4 +++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index 26982b0..d96aa60 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -31,6 +31,9 @@
<!-- Parallelism (LFS >= 12.1) -->
<xsl:param name="jobs" select="1"/>
+ <!-- value of jobs for binutils-pass1 -->
+ <xsl:param name="jobs-bp1" select="1"/>
+
<!-- Install non wide character ncurses 5? -->
<xsl:param name="ncurses5" select="'n'"/>
@@ -1251,7 +1254,14 @@ cd $PKGDIR
</xsl:if>
<xsl:text>
export MAKEFLAGS="-j</xsl:text>
- <xsl:value-of select="$jobs"/>
+ <xsl:choose>
+ <xsl:when test="@id='ch-tools-binutils-pass1'">
+ <xsl:value-of select="$jobs-bp1"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$jobs"/>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text>"
</xsl:text>
<xsl:text>SECONDS=${PREV_SEC}
diff --git a/common/libs/func_book_parser b/common/libs/func_book_parser
index 6b7435b..e754666 100644
--- a/common/libs/func_book_parser
+++ b/common/libs/func_book_parser
@@ -67,8 +67,9 @@ extract_commands() { #
JOBS="\$(nproc)"
else
JOBS="$N_PARALLEL"
-
fi
+ if [ "REALSBU" = y ]; then JOBSBP1=1; else JOBSBP1="$JOBS"; fi
+
# First profile the book, for revision and arch. Note that
# MULTIBLIB is set to "default" if pure 64 bit book. In this case,
# profiling on arch is useless, but does not hurt either.
@@ -109,6 +110,7 @@ extract_commands() { #
--stringparam log-level "$LOG_LEVEL" \
--stringparam script-root "$SCRIPT_ROOT" \
--stringparam jobs "$JOBS" \
+ --stringparam jobs-bp1 "$JOBSBP1" \
--output "./${COMMANDS}/" \
$XSL \
prbook.xml >> $LOGDIR/$LOG 2>&1
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page