2013-10-29 16:42:03 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
version="1.0">
|
|
|
|
|
|
|
|
<xsl:output method="text"
|
|
|
|
encoding='ISO-8859-1'/>
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:apply-templates select="//list"/>
|
|
|
|
<xsl:text>comment ""
|
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
menu "Build settings"
|
2013-10-29 16:42:03 +01:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
choice
|
|
|
|
prompt "Mail server for resolving the MTA dependency"
|
2013-10-29 16:42:03 +01:00
|
|
|
config MS_sendmail
|
|
|
|
bool "sendmail"
|
|
|
|
config MS_postfix
|
|
|
|
bool "postfix"
|
|
|
|
config MS_exim
|
|
|
|
bool "exim"
|
2021-11-01 09:13:25 +01:00
|
|
|
endchoice
|
|
|
|
config MAIL_SERVER
|
2013-10-29 16:42:03 +01:00
|
|
|
string
|
2019-06-15 22:16:35 +02:00
|
|
|
default "sendmail" if MS_sendmail
|
|
|
|
default "postfix" if MS_postfix
|
|
|
|
default "exim" if MS_exim
|
2013-10-29 16:42:03 +01:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
choice
|
2013-10-29 16:42:03 +01:00
|
|
|
prompt "Dependency level"
|
|
|
|
default DEPLVL_2
|
2021-11-01 09:13:25 +01:00
|
|
|
help
|
|
|
|
Packages included in the dependency graph. Note that the graph
|
|
|
|
itself contains all the dependency information relating those
|
|
|
|
packages.
|
2013-10-29 16:42:03 +01:00
|
|
|
|
|
|
|
config DEPLVL_1
|
|
|
|
bool "Required dependencies only"
|
|
|
|
|
|
|
|
config DEPLVL_2
|
2018-01-28 18:56:55 +01:00
|
|
|
bool "Required plus recommended dependencies"
|
2013-10-29 16:42:03 +01:00
|
|
|
|
|
|
|
config DEPLVL_3
|
2018-01-28 18:56:55 +01:00
|
|
|
bool "Req/rec plus optional dependencies of requested package(s)"
|
|
|
|
|
|
|
|
config DEPLVL_4
|
|
|
|
bool "All non external dependencies"
|
2013-10-29 16:42:03 +01:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
endchoice
|
|
|
|
config optDependency
|
2013-10-29 16:42:03 +01:00
|
|
|
int
|
|
|
|
default 1 if DEPLVL_1
|
|
|
|
default 2 if DEPLVL_2
|
|
|
|
default 3 if DEPLVL_3
|
2018-01-28 18:56:55 +01:00
|
|
|
default 4 if DEPLVL_4
|
2013-10-29 16:42:03 +01:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
config LANGUAGE
|
2018-09-28 16:35:46 +02:00
|
|
|
string "LANG variable in the form ll_CC.charmap[@modifiers]"
|
|
|
|
default "en_US.UTF-8"
|
|
|
|
help
|
|
|
|
Because of the book layout, the 3 fields, ll, CC and charmap are
|
2021-11-01 09:13:25 +01:00
|
|
|
mandatory. The @modifier is honoured if present.
|
2019-08-31 14:47:22 +02:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
config SUDO
|
2013-10-29 16:42:03 +01:00
|
|
|
bool "Build as User"
|
|
|
|
default y
|
|
|
|
help
|
2021-11-01 09:13:25 +01:00
|
|
|
Select if sudo will be used (you build as a normal user)
|
|
|
|
otherwise sudo is not needed (you build as root)
|
2017-04-09 12:29:32 +02:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
config WRAP_INSTALL
|
2017-04-09 12:29:32 +02:00
|
|
|
bool "Use `porg style' package management"
|
|
|
|
default n
|
|
|
|
help
|
2021-11-01 09:13:25 +01:00
|
|
|
Select if you want the installation commands to be wrapped
|
|
|
|
between "wrapInstall '" and "' ; packInstall" functions,
|
|
|
|
where wrapInstall is used to set up a LD_PRELOAD library (for
|
|
|
|
example using porg), and packInstall makes the package tarball
|
|
|
|
|
|
|
|
config PACK_INSTALL
|
|
|
|
string "Location of the packInstall.sh script"
|
|
|
|
default "/blfs_root/packInstall.sh" if !SUDO
|
|
|
|
default "$HOME/blfs_root/packInstall.sh" if SUDO
|
|
|
|
depends on WRAP_INSTALL
|
|
|
|
help
|
|
|
|
This script is needed for the proper operation of the
|
|
|
|
`porg style' package management. Provide an absolute
|
|
|
|
path.
|
|
|
|
|
|
|
|
config DEL_LA_FILES
|
2018-01-12 20:04:19 +01:00
|
|
|
bool "Remove libtool .la files after package installation"
|
|
|
|
default y
|
|
|
|
help
|
2021-11-01 09:13:25 +01:00
|
|
|
This option should be active on any system mixing libtool
|
|
|
|
and meson build systems. ImageMagick .la files are preserved.
|
2018-02-05 19:12:17 +01:00
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
config STATS
|
2018-02-05 19:12:17 +01:00
|
|
|
bool "Generate statistics for the requested package(s)"
|
|
|
|
default n
|
|
|
|
help
|
2021-11-01 09:13:25 +01:00
|
|
|
If you want timing and memory footprint statistics to be
|
|
|
|
generated for the packages you build (not their dependencies),
|
|
|
|
set this option to y. Due to the book layout, several scripts
|
|
|
|
are not functional in this case. Please review them.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Build Layout"
|
|
|
|
config SRC_ARCHIVE
|
|
|
|
string "Directory of sources"
|
|
|
|
default "/sources"
|
|
|
|
config SRC_SUBDIRS
|
|
|
|
bool "Downloads sources to subdirectories"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If this option is set, the sources will be downloaded and archived
|
|
|
|
into a subdirectory of the source directory, one for each page
|
|
|
|
of the book. Otherwise they are downloaded and archived directly
|
|
|
|
into the source directory
|
|
|
|
config BUILD_ROOT
|
|
|
|
string "Build directory"
|
|
|
|
default "/sources"
|
|
|
|
help
|
|
|
|
Directory where the build occurs. It can be the same as the
|
|
|
|
source directory, provided the setting of subdirectories is
|
|
|
|
different
|
|
|
|
config BUILD_SUBDIRS
|
|
|
|
bool "Build into subdirectories"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If this option is set, the sources will be extracted into
|
|
|
|
subdirectories of the build directory. Otherwise, they will be
|
|
|
|
directly extracted into the build directory
|
|
|
|
config KEEP_FILES
|
|
|
|
bool "Keep source directory"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Set this option if you want to keep the build directories
|
|
|
|
for further examination after installing the package
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Optimization"
|
|
|
|
config JOBS
|
|
|
|
int "Number of parallel jobs"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
This number will get passed to make or ninja, unless set
|
|
|
|
to 0, in which case, it is set to the number of processors
|
|
|
|
on line. Note that some packages do not respect this setting.
|
|
|
|
Also, "-j1" is always passed to make for install (and nothing
|
|
|
|
to ninja).
|
|
|
|
config CFG_CFLAGS
|
|
|
|
string "Content of variable CFLAGS"
|
|
|
|
default "EMPTY"
|
|
|
|
help
|
|
|
|
If set to the special string "EMPTY", then CFLAGS will be
|
|
|
|
unset before starting the script. Otherwise, there is no
|
|
|
|
content check for this variable. Double check for typos!
|
|
|
|
config CFG_CXXFLAGS
|
|
|
|
string "Content of variable CXXFLAGS"
|
|
|
|
default "EMPTY"
|
|
|
|
help
|
|
|
|
If set to the special string "EMPTY", then CXXFLAGS will be
|
|
|
|
unset before starting the script. Otherwise, there is no
|
|
|
|
content check for this variable. Double check for typos!
|
|
|
|
config CFG_LDFLAGS
|
|
|
|
string "Content of variable LDFLAGS"
|
|
|
|
default "EMPTY"
|
|
|
|
help
|
|
|
|
If set to the special string "EMPTY", then LDFLAGS will be
|
|
|
|
unset before starting the script. Otherwise, there is no
|
|
|
|
content check for this variable. Double check for typos!
|
|
|
|
endmenu
|
2013-10-29 16:42:03 +01:00
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="list">
|
|
|
|
<xsl:if
|
|
|
|
test=".//*[self::package or self::module]
|
|
|
|
[(version and not(inst-version)) or
|
|
|
|
string(version) != string(inst-version)]">
|
2021-11-01 09:13:25 +01:00
|
|
|
<xsl:text>menuconfig	MENU_</xsl:text>
|
2013-10-29 16:42:03 +01:00
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
<xsl:text>
|
|
|
|
bool	"</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text>"
|
|
|
|
default	n
|
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
if	MENU_</xsl:text>
|
2013-10-29 16:42:03 +01:00
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
<xsl:text>
|
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
<xsl:apply-templates select="sublist"/>
|
2021-11-01 09:13:25 +01:00
|
|
|
<xsl:text>endif
|
2013-10-29 16:42:03 +01:00
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="sublist">
|
|
|
|
<xsl:if
|
|
|
|
test=".//*[self::package or self::module]
|
|
|
|
[(version and not(inst-version)) or
|
|
|
|
string(version) != string(inst-version)]">
|
2021-11-01 09:13:25 +01:00
|
|
|
<xsl:text>	menuconfig	MENU_</xsl:text>
|
2013-10-29 16:42:03 +01:00
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
<xsl:text>
|
|
|
|
	bool	"</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text>"
|
|
|
|
	default	n
|
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
	if	MENU_</xsl:text>
|
2013-10-29 16:42:03 +01:00
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
<xsl:text>
|
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
<xsl:apply-templates select="package"/>
|
2021-11-01 09:13:25 +01:00
|
|
|
<xsl:text>	endif
|
2013-10-29 16:42:03 +01:00
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="package">
|
|
|
|
<xsl:if
|
|
|
|
test="(version and not(inst-version)) or
|
|
|
|
string(version) != string(inst-version)">
|
|
|
|
<xsl:text>		config	CONFIG_</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text>
|
|
|
|
		bool	"</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="version"/>
|
|
|
|
<xsl:if test="inst-version">
|
|
|
|
<xsl:text> [Installed </xsl:text>
|
|
|
|
<xsl:value-of select="inst-version"/>
|
|
|
|
<xsl:text>]</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>"
|
|
|
|
		default	n
|
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if
|
|
|
|
test="not(version) and ./module[not(inst-version) or
|
|
|
|
string(version) != string(inst-version)]">
|
2021-11-01 09:13:25 +01:00
|
|
|
<xsl:text>		menuconfig	MENU_</xsl:text>
|
2018-09-28 16:39:18 +02:00
|
|
|
<xsl:value-of select="translate(name,' ()','___')"/>
|
2013-10-29 16:42:03 +01:00
|
|
|
<xsl:text>
|
|
|
|
		bool	"</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text>"
|
|
|
|
		default	n
|
|
|
|
|
2021-11-01 09:13:25 +01:00
|
|
|
		if	MENU_</xsl:text>
|
2018-09-28 16:39:18 +02:00
|
|
|
<xsl:value-of select="translate(name,' ()','___')"/>
|
2013-10-29 16:42:03 +01:00
|
|
|
<xsl:text>
|
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
<xsl:apply-templates select="module"/>
|
2021-11-01 09:13:25 +01:00
|
|
|
<xsl:text>		endif
|
2013-10-29 16:42:03 +01:00
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="module">
|
|
|
|
<xsl:if
|
|
|
|
test="not(inst-version) or
|
|
|
|
string(version) != string(inst-version)">
|
|
|
|
<xsl:text>			config	CONFIG_</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text>
|
|
|
|
			bool	"</xsl:text>
|
|
|
|
<xsl:value-of select="name"/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="version"/>
|
|
|
|
<xsl:if test="inst-version">
|
|
|
|
<xsl:text> [Installed </xsl:text>
|
|
|
|
<xsl:value-of select="inst-version"/>
|
|
|
|
<xsl:text>]</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>"
|
|
|
|
			default	</xsl:text>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains(../name,'xorg')">
|
|
|
|
<xsl:text>y
|
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:text>n
|
|
|
|
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|