2006-03-28 15:14:16 +02:00
|
|
|
$Id$
|
|
|
|
|
|
|
|
1. INTRODUCTION::
|
|
|
|
|
2006-03-28 19:42:48 +02:00
|
|
|
This collection of scripts, known as jhalfs-X, strives to create
|
2006-03-30 03:03:01 +02:00
|
|
|
accurate makefiles from the Linux From Scratch book series XML files.
|
2006-03-30 20:53:53 +02:00
|
|
|
This software is an evolution of the original "jhalfs" code.
|
2006-03-28 15:14:16 +02:00
|
|
|
|
|
|
|
The usage of this script assumes you have read and are familiar with
|
2006-03-30 20:53:53 +02:00
|
|
|
the book(s) and, therefore, the configuration variables found in config
|
|
|
|
files will have meaning to you. There are a number of command line switches
|
2006-03-28 15:14:16 +02:00
|
|
|
which, if used, will override the config file settings.
|
|
|
|
|
|
|
|
NOTES::
|
2006-03-30 20:53:53 +02:00
|
|
|
*. The resulting Makefile takes considerable time to run to completion.
|
|
|
|
Lay in a supply of caffeine beverages.
|
2006-03-28 15:14:16 +02:00
|
|
|
|
2006-03-30 20:26:11 +02:00
|
|
|
*. It is recommended that you temporarily unpack your linux kernel,
|
2006-03-30 05:52:19 +02:00
|
|
|
run <make menuconfig>, configure the kernal as per the book and save
|
2006-03-30 20:53:53 +02:00
|
|
|
the resulting .config file. This suggestion also applies to the
|
2006-03-28 19:42:48 +02:00
|
|
|
configuration of the uClibc package when building a HLFS system using
|
|
|
|
uClibc rather than glibc.
|
2006-03-28 15:14:16 +02:00
|
|
|
|
|
|
|
2. INSTALLATION::
|
2006-03-28 20:06:08 +02:00
|
|
|
No installation is required. System-wide installation is not allowed
|
2006-03-28 19:42:48 +02:00
|
|
|
for now.
|
2006-03-28 15:14:16 +02:00
|
|
|
|
|
|
|
3. CONFIGURATION FILES::
|
2006-03-30 20:53:53 +02:00
|
|
|
Each book in the LFS series has its own set of configurable parameters
|
2006-03-29 17:04:40 +02:00
|
|
|
as well as the common parameters file.
|
2006-03-28 15:14:16 +02:00
|
|
|
|
|
|
|
4. RUNNING::
|
2006-03-30 20:53:53 +02:00
|
|
|
The script master.sh cannot be invoked directly but only via the
|
2006-03-30 05:52:19 +02:00
|
|
|
supplied symlinks. After editing the config file for the project you wish
|
2006-03-30 20:53:53 +02:00
|
|
|
to build, run the script.
|
|
|
|
|
|
|
|
The term <symlink> refers to the 1 of 4 package symlinks, lfs,hlfs,clfs,blfs.
|
|
|
|
Replace <symlink> with your choice of packages; i.e.: ./lfs
|
2006-03-30 03:03:01 +02:00
|
|
|
|
|
|
|
./<symlink>
|
2006-03-30 20:26:11 +02:00
|
|
|
Create a makefile based on the settings found in the config files.
|
2006-03-30 20:53:53 +02:00
|
|
|
You must enter the build partition/jhalfs directory and manually run <make>
|
2006-03-30 03:03:01 +02:00
|
|
|
|
2006-03-30 20:26:11 +02:00
|
|
|
./<symlink> -G
|
2006-03-30 03:03:01 +02:00
|
|
|
Download the packages and patches necessary to build <symlink>
|
2006-03-30 20:26:11 +02:00
|
|
|
|
2006-03-30 03:03:01 +02:00
|
|
|
./<symlink> -G -M
|
|
|
|
Download the packages, create and automatically run the Makefile
|
2006-03-30 20:26:11 +02:00
|
|
|
|
2006-03-29 17:04:40 +02:00
|
|
|
./<symlink> --help will give you a context sensitive list of command
|
|
|
|
line switches.
|
2006-03-28 15:14:16 +02:00
|
|
|
|
|
|
|
5. LAYOUT::
|
|
|
|
|
2006-03-28 15:29:09 +02:00
|
|
|
blfs --+ /BLFS config ---+ /common/config
|
|
|
|
| master.sh -+ /common_functions
|
|
|
|
| xxxx.xsl -+ /makefile_functions
|
|
|
|
| /func_check_versions.sh
|
|
|
|
clfs --+ /CLFS config ---+ /func_validate_configs.sh
|
2006-03-28 19:42:48 +02:00
|
|
|
| master.sh -+
|
2006-03-28 15:29:09 +02:00
|
|
|
| xxxx.xsl -+
|
2006-03-28 19:42:48 +02:00
|
|
|
|
|
|
|
|
+--------------------- master.sh --------------->>>
|
2006-03-28 15:29:09 +02:00
|
|
|
+--README
|
2006-03-28 19:42:48 +02:00
|
|
|
|
|
2006-03-28 15:29:09 +02:00
|
|
|
hlfs --+ /HLFS config ---+
|
|
|
|
| master.sh -+
|
|
|
|
| xxxx.xsl -+
|
|
|
|
|
|
|
|
|
lfs --+ /LFS config ---+
|
|
|
|
master.sh -+
|
|
|
|
xxxx.xsl -+
|
2006-03-28 19:42:48 +02:00
|
|
|
|
|
|
|
|
2006-03-28 15:14:16 +02:00
|
|
|
6. FAQ::
|
2006-03-28 15:29:09 +02:00
|
|
|
Q. "It doesn't work"
|
|
|
|
A. Yes it does..
|
|
|
|
|
2006-04-03 16:10:00 +02:00
|
|
|
Q. "What is the function of the SRC_ARCHIVE variable
|
2006-04-07 19:27:23 +02:00
|
|
|
A. When then symlinked master.sh runs it creates a local copy of the
|
|
|
|
necessary packages in BUILDDIR/sources by downloading the files. If
|
|
|
|
the variable SRC_ARCHIVE is defined the software will first look in
|
|
|
|
this location for the file and, if found, will copy it to BUILDDIR/sources.
|
|
|
|
If the files are not found in SRC_ARCHIVE _and_ you have write priv to
|
|
|
|
the directory any downloaded files will be mirrored there.
|
2006-04-03 16:10:00 +02:00
|
|
|
|
|
|
|
Q. "Why have 2 copies of the files."
|
2006-04-03 18:01:32 +02:00
|
|
|
A. The package files must be visible during the chroot phase and this is a
|
|
|
|
simple and reliable method of doing so. This method also handles the CLFS
|
|
|
|
build method where the final build may be done on a separate machine.
|
2006-03-30 03:03:01 +02:00
|
|
|
|
|
|
|
Authors:
|
2006-03-30 20:26:11 +02:00
|
|
|
George Boudreau
|
2006-03-30 03:03:01 +02:00
|
|
|
Manuel Canales Esparcia
|
2006-03-30 20:26:11 +02:00
|
|
|
Jeremy Huntwork
|