Changeset 2b3edd2 for BLFS/xsl


Ignore:
Timestamp:
11/09/2021 08:17:04 PM (3 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, legacy, trunk
Children:
60e539b
Parents:
f756851
git-author:
Pierre Labastie <pierre.labastie@…> (11/01/2021 08:13:25 AM)
git-committer:
Pierre Labastie <pierre.labastie@…> (11/09/2021 08:17:04 PM)
Message:

[Remove BLFS envars.conf]: new gen_config.xsl

Now the variables previously defined into envars.conf are in Config.in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/gen_config.xsl

    rf756851 r2b3edd2  
    1111    <xsl:text>comment ""
    1212
    13 menu    "Default package for resolving MTA dependency"
    14 
    15 choice
    16         prompt  "Mail server"
     13menu    "Build settings"
     14
     15    choice
     16        prompt  "Mail server for resolving the MTA dependency"
    1717        config  MS_sendmail
    1818                bool    "sendmail"
     
    2121        config  MS_exim
    2222                bool    "exim"
    23 endchoice
    24 config  MAIL_SERVER
     23    endchoice
     24    config  MAIL_SERVER
    2525        string
    2626        default "sendmail"        if MS_sendmail
     
    2828        default "exim"            if MS_exim
    2929
    30 endmenu
    31 
    32 choice
     30    choice
    3331        prompt  "Dependency level"
    3432        default DEPLVL_2
     33        help
     34            Packages included in the dependency graph. Note that the graph
     35            itself contains all the dependency information relating those
     36            packages.
    3537
    3638        config  DEPLVL_1
     
    4648        bool    "All non external dependencies"
    4749
    48 endchoice
    49 config  optDependency
     50    endchoice
     51    config  optDependency
    5052        int
    5153        default 1       if DEPLVL_1
     
    5456        default 4       if DEPLVL_4
    5557
    56 config  LANGUAGE
     58    config  LANGUAGE
    5759        string "LANG variable in the form ll_CC.charmap[@modifiers]"
    5860        default "en_US.UTF-8"
    5961        help
    6062            Because of the book layout, the 3 fields, ll, CC and charmap are
    61             mandatory. The @modfier is honoured if present.
    62 
    63 config  KBLAYOUT
    64         string "Keyboard layout (to be used in GDM)"
    65         default "us"
    66         help
    67             Used in GDM for setting the login screen keyboard layout.
    68             See the GDM page in the book for what to put into this field
    69 
    70 config  SUDO
     63            mandatory. The @modifier is honoured if present.
     64
     65    config  SUDO
    7166        bool "Build as User"
    7267        default y
    7368        help
    74                 Select if sudo will be used (you build as a normal user)
    75                         otherwise sudo is not needed (you build as root)
    76 
    77 
    78 config  WRAP_INSTALL
     69            Select if sudo will be used (you build as a normal user)
     70                    otherwise sudo is not needed (you build as root)
     71
     72    config  WRAP_INSTALL
    7973        bool "Use `porg style' package management"
    8074        default n
    8175        help
    82                 Select if you want the installation commands to be wrapped
    83                 between "wrapInstall '" and "' ; packInstall" functions,
    84                 where wrapInstall is used to set up a LD_PRELOAD library (for
    85                 example using porg), and packInstall makes the package tarball
    86 
    87 config  DEL_LA_FILES
     76            Select if you want the installation commands to be wrapped
     77            between "wrapInstall '" and "' ; packInstall" functions,
     78            where wrapInstall is used to set up a LD_PRELOAD library (for
     79            example using porg), and packInstall makes the package tarball
     80
     81        config  PACK_INSTALL
     82            string     "Location of the packInstall.sh script"
     83            default    "/blfs_root/packInstall.sh" if !SUDO
     84            default    "$HOME/blfs_root/packInstall.sh" if SUDO
     85            depends on WRAP_INSTALL
     86            help
     87                This script is needed for the proper operation of the
     88                `porg style' package management. Provide an absolute
     89                path.
     90
     91    config      DEL_LA_FILES
    8892        bool "Remove libtool .la files after package installation"
    8993        default y
    9094        help
    91                 This option should be active on any system mixing libtool
    92                 and meson build systems. ImageMagick .la files are preserved.
    93 
    94 config  STATS
     95            This option should be active on any system mixing libtool
     96            and meson build systems. ImageMagick .la files are preserved.
     97
     98    config      STATS
    9599        bool "Generate statistics for the requested package(s)"
    96100        default n
    97101        help
    98                 If you want timing and memory footprint statistics to be
    99                 generated for the packages you build (not their dependencies),
    100                 set this option to y.
     102            If you want timing and memory footprint statistics to be
     103            generated for the packages you build (not their dependencies),
     104            set this option to y. Due to the book layout, several scripts
     105            are not functional in this case. Please review them.
     106
     107endmenu
     108
     109menu "Build Layout"
     110    config  SRC_ARCHIVE
     111        string  "Directory of sources"
     112        default "/sources"
     113    config  SRC_SUBDIRS
     114        bool    "Downloads sources to subdirectories"
     115        default n
     116        help
     117            If this option is set, the sources will be downloaded and archived
     118            into a subdirectory of the source directory, one for each page
     119            of the book. Otherwise they are downloaded and archived directly
     120            into the source directory
     121    config  BUILD_ROOT
     122        string  "Build directory"
     123        default "/sources"
     124        help
     125            Directory where the build occurs. It can be the same as the
     126            source directory, provided the setting of subdirectories is
     127            different
     128    config  BUILD_SUBDIRS
     129        bool    "Build into subdirectories"
     130        default y
     131        help
     132            If this option is set, the sources will be extracted into
     133            subdirectories of the build directory. Otherwise, they will be
     134            directly extracted into the build directory
     135    config  KEEP_FILES
     136        bool    "Keep source directory"
     137        default n
     138        help
     139            Set this option if you want to keep the build directories
     140            for further examination after installing the package
     141endmenu
     142
     143menu    "Optimization"
     144    config JOBS
     145        int     "Number of parallel jobs"
     146        default 0
     147        help
     148            This number will get passed to make or ninja, unless set
     149            to 0, in which case, it is set to the number of processors
     150            on line. Note that some packages do not respect this setting.
     151            Also, "-j1" is always passed to make for install (and nothing
     152            to ninja).
     153    config CFG_CFLAGS
     154        string  "Content of variable CFLAGS"
     155        default "EMPTY"
     156        help
     157            If set to the special string "EMPTY", then CFLAGS will be
     158            unset before starting the script. Otherwise, there is no
     159            content check for this variable. Double check for typos!
     160    config CFG_CXXFLAGS
     161        string  "Content of variable CXXFLAGS"
     162        default "EMPTY"
     163        help
     164            If set to the special string "EMPTY", then CXXFLAGS will be
     165            unset before starting the script. Otherwise, there is no
     166            content check for this variable. Double check for typos!
     167    config CFG_LDFLAGS
     168        string  "Content of variable LDFLAGS"
     169        default "EMPTY"
     170        help
     171            If set to the special string "EMPTY", then LDFLAGS will be
     172            unset before starting the script. Otherwise, there is no
     173            content check for this variable. Double check for typos!
     174endmenu
    101175</xsl:text>
    102176  </xsl:template>
     
    107181                    [(version and not(inst-version)) or
    108182                      string(version) != string(inst-version)]">
    109       <xsl:text>config&#9;MENU_</xsl:text>
     183      <xsl:text>menuconfig&#9;MENU_</xsl:text>
    110184      <xsl:value-of select="@id"/>
    111185      <xsl:text>
     
    115189default&#9;n
    116190
    117 menu "</xsl:text>
    118       <xsl:value-of select="name"/>
    119       <xsl:text>"
    120 depends on MENU_</xsl:text>
     191if&#9;MENU_</xsl:text>
    121192      <xsl:value-of select="@id"/>
    122193      <xsl:text>
     
    124195</xsl:text>
    125196      <xsl:apply-templates select="sublist"/>
    126       <xsl:text>endmenu
     197      <xsl:text>endif
    127198
    128199</xsl:text>
     
    135206                    [(version and not(inst-version)) or
    136207                      string(version) != string(inst-version)]">
    137       <xsl:text>&#9;config&#9;MENU_</xsl:text>
     208      <xsl:text>&#9;menuconfig&#9;MENU_</xsl:text>
    138209      <xsl:value-of select="@id"/>
    139210      <xsl:text>
     
    143214&#9;default&#9;n
    144215
    145 &#9;menu "</xsl:text>
    146       <xsl:value-of select="name"/>
    147       <xsl:text>"
    148 &#9;depends on MENU_</xsl:text>
     216&#9;if&#9;MENU_</xsl:text>
    149217      <xsl:value-of select="@id"/>
    150218      <xsl:text>
     
    152220</xsl:text>
    153221      <xsl:apply-templates select="package"/>
    154       <xsl:text>&#9;endmenu
     222      <xsl:text>&#9;endif
    155223
    156224</xsl:text>
     
    182250      test="not(version) and ./module[not(inst-version) or
    183251                      string(version) != string(inst-version)]">
    184       <xsl:text>&#9;&#9;config&#9;MENU_</xsl:text>
     252      <xsl:text>&#9;&#9;menuconfig&#9;MENU_</xsl:text>
    185253      <xsl:value-of select="translate(name,' ()','___')"/>
    186254      <xsl:text>
     
    190258&#9;&#9;default&#9;n
    191259
    192 &#9;&#9;menu "</xsl:text>
    193       <xsl:value-of select="name"/>
    194       <xsl:text>"
    195 &#9;&#9;depends on MENU_</xsl:text>
     260&#9;&#9;if&#9;MENU_</xsl:text>
    196261      <xsl:value-of select="translate(name,' ()','___')"/>
    197262      <xsl:text>
     
    199264</xsl:text>
    200265      <xsl:apply-templates select="module"/>
    201       <xsl:text>&#9;&#9;endmenu
     266      <xsl:text>&#9;&#9;endif
    202267
    203268</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.