source: README@ f5fc83d

2.3 2.3.x 2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since f5fc83d was 597d802, checked in by George Boudreau <georgeb@…>, 18 years ago

Update README to reflect new configuration format

  • Property mode set to 100644
File size: 7.2 KB
Line 
1$Id$
2
31. INTRODUCTION::
4
5 This collection of scripts, known as jhalfs, strives to create
6 accurate makefiles from the Linux From Scratch book series XML files.
7 This software is an evolution of the original "jhalfs-0.2" code.
8
9 The usage of this script assumes you have read and are familiar with
10 the book(s) and, therefore, the configuration variables found in config
11 files will have meaning to you. There are a number of command line switches
12 which, if used, will override the config file settings.
13
14 NOTES::
15 *. The resulting Makefile takes considerable time to run to completion.
16 Lay in a supply of caffeine beverages.
17
18 *. It is recommended that you temporarily unpack your linux kernel,
19 run <make menuconfig>, configure the kernel as per the book and save
20 the resulting .config file. This suggestion also applies to the
21 configuration of the uClibc package when building a HLFS system using
22 uClibc rather than glibc.
23
242. PREREQUISITES::
25
26 To use this tool you MUST:
27
28 - have experience building {c,h,b}LFS packages
29 - know how to edit and write shell scripts
30 - know how a Makefile works
31 - be able to trace build failures and to find what is causing it
32 (user error, package bug, {c,h,b}LFS command bug, or jhalfs code bug)
33
34 If you do not have the above skills, please don't use this tool.
35
36
373. INSTALLATION::
38
39 No installation is required. System-wide installation is not allowed
40 for now.
41
424. CONFIGURATION FILES::
43
44 ::NEWS:: There is new configuration method for jhalfs.
45
46 We have installed the familiar menu based configuration tool driven by
47 by GNU make. see the section RUNNING, for details
48
495. RUNNING::
50
51 ::NEWS:: jhalfs is now launched via GNU make instead of individual symlinks.
52 The command <make> will launch a menu based configuration program. You will
53 recognize the layout from bulding the kernel or uClibc/Busybox. The
54 underlying menu code was borrowed from BusyBox and slightly modified for
55 our use.
56
57 Help on parameter function is available from the online help.
58
59 Once you have set the parameters you wish and have saved your work the
60 makefile will proceed to launch the jhalfs script. The script validate and
61 present you with your selections which you may accept or reject.
62
63 If you accepted the displayed settings jhalfs will proceed to create the
64 makefile, optionally download packages.
65
66 NOTE::
67 If you run the jhalfs script directly the only funcion you can select is to
68 display the version number
69
70
716. LAYOUT::
72
73 /CLFS/config
74 /master.sh
75 /xxxx.xsl
76
77 /CLFS2/config
78 /master.sh
79 /xxxx.xsl
80
81 /HLFS/config
82 /master.sh
83 /xxxx.xsl
84
85 /LFS/config
86 / master.sh
87 /xxxx.xsl
88
89 /common/config
90 /common_functions
91 /makefile_functions
92 /func_check_versions.sh
93 /func_validate_configs.sh
94
95 /contrib/jhalfs-paco.patch
96
97 /extras/do_copy_files
98 /do_ica_prep
99 /do_ica_work
100 /farce
101 /filelist
102
103 README
104 README.BLFS
105 README.PACO
106 TODO
107
108 Config.in
109 makefile
110 jhalfs
111 blfs-tool
112
1137. FAQ::
114 Q. "This 'help' file is very sparse"
115 A. Yes, it is. This tool, jhalfs, is for those who understand the LFS books
116 and wish to automate the build. 99% of any problems that arise can be
117 solved by reading the book(s).
118
119 Q. "It doesn't work!"
120 A. Yes it does, try >> make
121 Remember you must either be 'root' to run this script or have 'sudo' privileges.
122
123 Q. "It still doesn't work"
124 A. jhalfs was designed to work against the developement versions of the LFS
125 series of books. Consequently changes in a book(s) sometimes breaks older
126 versions of jhalfs. Before you start pulling out your hair download the
127 latest version of jhalfs to see if that solves your problem.
128
129 Q. "How do I specify the build location?"
130 A. The original LFS document worked against the well known location /mnt/lfs.
131 This script automates the build of all of the LFS series of books and uses
132 a generic location $BUILDDIR with a default value of /mnt/build_dir.
133 You may change this value to suit your needs.
134
135 The layout below $BUILDDIR is as follows.
136 $BUILDDIR/
137 jhalfs (makefile,cmd scripts,logs..etc)
138 sources (where packages reside)
139 tools (temporary bootstrap system)
140 cross-tools (temporary CLFS only)
141 ...
142 FHS dir structure
143 ...
144
145 Q. "What is the function of the SRC_ARCHIVE variable?"
146 A. When then symlinked master.sh runs it creates a local copy of the
147 necessary packages in BUILDDIR/sources by downloading the files. If
148 the variable SRC_ARCHIVE is defined the software will first look in
149 this location for the file and, if found, will copy it to BUILDDIR/sources.
150 If the files are not found in SRC_ARCHIVE _and_ you have write priv to
151 the directory any downloaded files will be mirrored there.
152
153 Q. "How do I set the SRC_ARCHIVE location?"
154 A. The best way to set the value of SRC_ARCHIVE is
155 export SRC_ARCHIVE=/wherever/you/store/downloaded/packages
156 OR
157 you can change the setting in common/config.
158
159 Q. "Why have 2 copies of the files?"
160 A. The package files must be visible during the chroot phase and this is a
161 simple and reliable method of doing so. This method also handles the CLFS
162 build method where the final build may be done on a separate machine.
163
164 Q. "What is the function of LUSER and LGROUP? There is no cmd line switch"
165 A. If you are running jhalfs from a low or non-priveledged account you may not
166 have the priv to create/delete accounts. These variables are adjustable
167 when invoking make.
168 $BUILDDIR make LUSER=myaccount LGROUP=mygroup
169 Then only changes to your account will be the creation of a NEW .bashrc after
170 saving your original to .bashrc.XXX
171
172 Q. "When I try to build 'xxx' with clfs the makefile fails at the mid-point"
173 A. There could be numerous reasons for the failure but the most likely reason
174 is you are doing a cross-build using the 'chroot' method and the target is
175 not compatible with the host. If you choose to build using the chroot
176 method a test is performed at the end of the temptools phase. If the test
177 succeeds the build continues inside a chroot jail. However if the test fails
178 it means the host and target are not compatible an you should use the
179 'boot' method to create your target code.
180 As an extreme example: You can build a sparc target on a x86 platform but
181 only the temptools phase. You must select the 'boot' method and not the
182 'chroot.' You must transfer the toolchain to a sparc platform, reboot the
183 sparc box and continue the build.
184 Of all the LFS series of books Cross-LFS requires the greatest
185 understanding of host/target hardware combination. Please read the book
186 carefully and don't skip the easy parts (there are none..)
187
188Authors:
189 George Boudreau
190 Manuel Canales Esparcia
191 Jeremy Huntwork
Note: See TracBrowser for help on using the repository browser.