Apply a timeout to kernel config in LFS
If the kernel-config file is not up to date (missing options or whatever), the kernel "make" will hang, waiting for input. So run "make oldconfig" explicitly, with a timeout. Fixes: #1736
This commit is contained in:
parent
06b731490f
commit
3b27f93764
1 changed files with 2 additions and 0 deletions
|
@ -415,6 +415,8 @@ echo -e "\n\nTotalseconds: $SECONDS\n"
|
||||||
<xsl:text>make mrproper
</xsl:text>
|
<xsl:text>make mrproper
</xsl:text>
|
||||||
<xsl:if test="ancestor::sect1[@id='ch-bootable-kernel']">
|
<xsl:if test="ancestor::sect1[@id='ch-bootable-kernel']">
|
||||||
<xsl:text>cp -v ../kernel-config .config
</xsl:text>
|
<xsl:text>cp -v ../kernel-config .config
</xsl:text>
|
||||||
|
<xsl:text>timeout 60 make oldconfig ||\
</xsl:text>
|
||||||
|
<xsl:text>{ echo kernel config is not up to date; exit 124; }
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<!-- test instructions -->
|
<!-- test instructions -->
|
||||||
|
|
Reference in a new issue