Extend.conf: Difference between revisions

From LFScript
Created page with "Inside the scripts directory, there is a file present which is called <code>extend.conf</code>. This file was introduced in LFScript 4, to seperate BLFS specific instructions ..."
 
→‎Build flags: Update for rev 21
Line 8: Line 8:


=== Build flags ===
=== Build flags ===
If you want to set additional environment variables to be used during the build of '''all''' packages, you should specify them here.
If you want to set additional environment variables to be used during the build of '''all''' packages (like build flags), you should specify them in [[extend.conf]] too.


For example, by default packages are built using only one processor core. If you want to utilise multiple cores, you should add the following line to the top of <code>extend.conf</code>:
Starting with LFScript 4r21, the '''MAKEFLAGS''' variable is set by default, to ensure that all CPU cores are utilised during the build of your system.
 
<pre>export MAKEFLAGS="-j 8"</pre>
 
Replace the <code>8</code> with the number of cores you want to use.


== BLFS Bootscripts ==
== BLFS Bootscripts ==

Revision as of 23:09, 10 February 2012

Inside the scripts directory, there is a file present which is called extend.conf. This file was introduced in LFScript 4, to seperate BLFS specific instructions from the main executable.

The file is sourced at the start of each package build.

Additional environment variables

BLFS

At the top of the file, additional environment variables are defined and exported. Among these are XORG_PREFIX, XORG_CONFIG, KDE_PREFIX and more. These variables are used throughout BLFS, to make the build more dynamic.

Build flags

If you want to set additional environment variables to be used during the build of all packages (like build flags), you should specify them in extend.conf too.

Starting with LFScript 4r21, the MAKEFLAGS variable is set by default, to ensure that all CPU cores are utilised during the build of your system.

BLFS Bootscripts

extend.conf contains a custom shell function called includeBootscript. This function takes one argument; The name of a BLFS Bootscript which needs to be installed.

This function makes it possible to install a bootscript using a single command in the package script. For example, in alsa-utils the bootscript is installed with:

includeBootscript alsa

Scripts requiring a BLFS Bootscript must have the bootscripts source in their Script layout.

Mate

A more recent addition to extend.conf is the convertToMate function. This function adjusts source code designed for Gnome, so that it can use Mate in stead.

This function is still in development and may not work properly.