1 | $Id$
|
---|
2 |
|
---|
3 | This is the list of functions used in jhalfs, excluding BLFS tool functions
|
---|
4 | and functions defined in {C,H}LFS/master.sh.
|
---|
5 | I felt the need for documenting it when trying to add package management.
|
---|
6 | Functions are listed in alphabetical order, with a short description and the
|
---|
7 | file where they are defined.
|
---|
8 |
|
---|
9 | --------------------------------------------------------------------------
|
---|
10 | install_blfs_tools():
|
---|
11 | From common/libs/func_install_blfs.
|
---|
12 | Description: Copy the needed files to `BLFS_ROOT'. Initialize
|
---|
13 | the package tracking. Generates a `configuration' file from
|
---|
14 | the tool dependencies settings, and use it to generate
|
---|
15 | scriptlets from the blfs book. Uses those scriptlets to download the
|
---|
16 | needed tarballs. Then generates a Makefile for building the dependencies.
|
---|
17 | Called by: jhalfs
|
---|
18 | --------------------------------------------------------------------------
|
---|
19 | get_sources():
|
---|
20 | From common/libs/func_download_pkgs.
|
---|
21 | Description: Downloads packages if `GETPKG' is `y'. Writes package name
|
---|
22 | and md5 checksum to `MISSING_FILES.DMP' if a package cannot be found in
|
---|
23 | `$SRC_ARCHIVE' and cannot be downloaded, or if md5 checksum does not agree
|
---|
24 | book's one. If `MISSING_FILES.DMP' is not empty at the end of the process,
|
---|
25 | disable the excution of the makefile.
|
---|
26 | Actually, if `$BUILDDIR/sources' does not exist, it is not created if
|
---|
27 | `GETPKG' is `n'. And an empty or non existent `$BUILDDIR/sources' is
|
---|
28 | not flagged...
|
---|
29 | If `GETPKG' is `y', removes `MD5SUMS', `MISSING_FILES.DMP', and `urls.lst'
|
---|
30 | from `$BUILDDIR/sources' and generates them in the course of the process.
|
---|
31 | Called by: get_book and extract_commands
|
---|
32 | --------------------------------------------------------------------------
|
---|
33 | gs_wrt_message():
|
---|
34 | From common/libs/func_download_pkgs.
|
---|
35 | Description: internal function in get_sources. Writes a message to the screen
|
---|
36 | and a package name to `MISSING_FILES.DMP'.
|
---|
37 | --------------------------------------------------------------------------
|
---|
38 | create_urls():
|
---|
39 | From common/libs/func_download_pkgs.
|
---|
40 | Description: Runs xsltproc with stylesheet urls.xsl on chapter 3 of the
|
---|
41 | book. Add BLFS dependencies and custom dependencies if `BLFS_TOOLS' is `y'
|
---|
42 | and `CUSTOM_TOOLS' is `y' respectively.
|
---|
43 | Called by: get_sources
|
---|
44 | --------------------------------------------------------------------------
|
---|
45 | wrt_CustomTools_target():
|
---|
46 | From common/libs/func_custom_pkgs.
|
---|
47 | Description: Add users supplied scripts to `$JHALFSDIR/custom-tools', with
|
---|
48 | corresponding entry in the Makefile.
|
---|
49 | TODO: Add package management (instructions to user and Makefile entry)
|
---|
50 | Called by: All master.sh `build_Makefile'.
|
---|
51 | --------------------------------------------------------------------------
|
---|
52 | add_CustomToolsURLS():
|
---|
53 | From common/libs/func_custom_pkgs.
|
---|
54 | Description: Add any users supplied scripts URL information to urls.lst
|
---|
55 | Called by: create_urls
|
---|
56 | --------------------------------------------------------------------------
|
---|
57 | wrt_Makefile_header():
|
---|
58 | From common/libs/func_wrt_Makefile.
|
---|
59 | Description: Writes the beginning of the Makefile into $MKFILE, which created
|
---|
60 | or erased before.
|
---|
61 | Called by: All master.sh `build_Makefile'.
|
---|
62 | --------------------------------------------------------------------------
|
---|
63 | get_package_tarball_name():
|
---|
64 | From common/libs/func_wrt_Makefile.
|
---|
65 | Arguments: $1 contains the script_name
|
---|
66 | Description: Retrieves the tarball name from `pkg_tarball_list' by comparing
|
---|
67 | script-name to the beginning of a line in the list. Writes the name found
|
---|
68 | to stdout.
|
---|
69 | Implements the behavior described in README.CUSTOM, that is, if script_name
|
---|
70 | begins with d-, strip that part.
|
---|
71 | Called by: various functions in master.sh
|
---|
72 | --------------------------------------------------------------------------
|
---|
73 | LUSER_wrt_target():
|
---|
74 | From common/libs/func_wrt_Makefile.
|
---|
75 | Arguments: $1 contains target name; $2 contains dependency(ies)
|
---|
76 | Description: Add lines in the Makefile, which create target and
|
---|
77 | initialize log file.
|
---|
78 | LUSER version uses $MOUNT_PT in absolute path names.
|
---|
79 | Called by: chapter5_Makefiles and chapter6_Makefiles in LFS/master.sh
|
---|
80 | and other master.sh
|
---|
81 | --------------------------------------------------------------------------
|
---|
82 | CHROOT_wrt_target():
|
---|
83 | From common/libs/func_wrt_Makefile.
|
---|
84 | Arguments: $1 contains target name; $2 contains dependency(ies)
|
---|
85 | Description: Add lines in the Makefile, which create target and
|
---|
86 | initialize log file.
|
---|
87 | CHROOT version uses / in absolute path names.
|
---|
88 | Called by: chapter6_Makefiles and chapter78_Makefiles in LFS/master.sh
|
---|
89 | and other functions in other master.sh
|
---|
90 | --------------------------------------------------------------------------
|
---|
91 | LUSER_wrt_unpack():
|
---|
92 | From common/libs/func_wrt_Makefile.
|
---|
93 | Arguments: $1 contains tarball name; $2 contains 1 if the existing directory
|
---|
94 | is to be presserved.
|
---|
95 | Description: Add lines in the Makefile, which unpack and set 'ROOT' var and
|
---|
96 | remove existing dir if $2 != 1
|
---|
97 | LUSER version uses $MOUNT_PT in absolute path names.
|
---|
98 | Uses: Makefile functions remove_existing_dirs, unpack, get_pkg_root.
|
---|
99 | --------------------------------------------------------------------------
|
---|
100 | CHROOT_Unpack():
|
---|
101 | From common/libs/func_wrt_Makefile.
|
---|
102 | Arguments: $1 contains tarball name; $2 contains 1 if the existing directory
|
---|
103 | is to be presserved.
|
---|
104 | Description: Add lines in the Makefile, which unpack and set 'ROOT' var and
|
---|
105 | remove existing dir if $2 != 1
|
---|
106 | CHROOT version uses / in absolute path names.
|
---|
107 | Uses: Makefile functions remove_existing_dirs2, unpack2, get_pkg_root2.
|
---|
108 | --------------------------------------------------------------------------
|
---|
109 | LUSER_wrt_test_log():
|
---|
110 | From common/libs/func_wrt_Makefile.
|
---|
111 | Description: Add lines in the Makefile, which initialize testsuite
|
---|
112 | log file.
|
---|
113 | LUSER version uses $MOUNT_PT in absolute path names.
|
---|
114 | --------------------------------------------------------------------------
|
---|
115 | CHROOT_wrt_test_log():
|
---|
116 | From common/libs/func_wrt_Makefile.
|
---|
117 | Description: Add lines in the Makefile, which initialize testsuite
|
---|
118 | log file.
|
---|
119 | CHROOT version uses / in absolute path names.
|
---|
120 | --------------------------------------------------------------------------
|
---|
121 | wrt_RunAsRoot():
|
---|
122 | From common/libs/func_wrt_Makefile.
|
---|
123 | Description: Some scripts must be run as root..
|
---|
124 | --------------------------------------------------------------------------
|
---|
125 | LUSER_wrt_RunAsUser():
|
---|
126 | From common/libs/func_wrt_Makefile.
|
---|
127 | Description: Calculate time with perl, footer to log file
|
---|
128 | --------------------------------------------------------------------------
|
---|
129 | CHROOT_wrt_RunAsRoot():
|
---|
130 | From common/libs/func_wrt_Makefile.
|
---|
131 | Description:
|
---|
132 | --------------------------------------------------------------------------
|
---|
133 | LUSER_wrt_CopyFstab():
|
---|
134 | From common/libs/func_wrt_Makefile.
|
---|
135 | Description:
|
---|
136 | --------------------------------------------------------------------------
|
---|
137 | CHROOT_wrt_CopyFstab():
|
---|
138 | From common/libs/func_wrt_Makefile.
|
---|
139 | Description:
|
---|
140 | --------------------------------------------------------------------------
|
---|
141 | LUSER_wrt_TouchTimestamp():
|
---|
142 | From common/libs/func_wrt_Makefile.
|
---|
143 | Description:
|
---|
144 | --------------------------------------------------------------------------
|
---|
145 | CHROOT_wrt_TouchTimestamp():
|
---|
146 | From common/libs/func_wrt_Makefile.
|
---|
147 | Description:
|
---|
148 | --------------------------------------------------------------------------
|
---|
149 | LUSER_wrt_LogNewFiles():
|
---|
150 | From common/libs/func_wrt_Makefile.
|
---|
151 | Description:
|
---|
152 | --------------------------------------------------------------------------
|
---|
153 | CHROOT_wrt_LogNewFiles():
|
---|
154 | From common/libs/func_wrt_Makefile.
|
---|
155 | Description:
|
---|
156 | --------------------------------------------------------------------------
|
---|
157 | LUSER_RemoveBuildDirs():
|
---|
158 | From common/libs/func_wrt_Makefile.
|
---|
159 | Description:
|
---|
160 | --------------------------------------------------------------------------
|
---|
161 | CHROOT_wrt_RemoveBuildDirs():
|
---|
162 | From common/libs/func_wrt_Makefile.
|
---|
163 | Description:
|
---|
164 | --------------------------------------------------------------------------
|
---|
165 | wrt_touch():
|
---|
166 | From common/libs/func_wrt_Makefile.
|
---|
167 | Description:
|
---|
168 | --------------------------------------------------------------------------
|
---|
169 | wrt_compare_targets():
|
---|
170 | From common/libs/func_compare.sh.
|
---|
171 | Description:
|
---|
172 | --------------------------------------------------------------------------
|
---|
173 | wrt_system_build():
|
---|
174 | From common/libs/func_compare.sh.
|
---|
175 | Description:
|
---|
176 | --------------------------------------------------------------------------
|
---|
177 | wrt_compare_work():
|
---|
178 | From common/libs/func_compare.sh.
|
---|
179 | Description:
|
---|
180 | --------------------------------------------------------------------------
|
---|
181 | wrt_do_ica_work():
|
---|
182 | From common/libs/func_compare.sh.
|
---|
183 | Description:
|
---|
184 | --------------------------------------------------------------------------
|
---|
185 | wrt_do_farce_work():
|
---|
186 | From common/libs/func_compare.sh.
|
---|
187 | Description:
|
---|
188 | --------------------------------------------------------------------------
|
---|
189 | wrt_logs():
|
---|
190 | From common/libs/func_compare.sh.
|
---|
191 | Description:
|
---|
192 | --------------------------------------------------------------------------
|
---|
193 | validate_config():
|
---|
194 | From common/libs/func_validate_configs.sh.
|
---|
195 | Description: Are the config values sane (within reason)
|
---|
196 | --------------------------------------------------------------------------
|
---|
197 | write_error_and_die():
|
---|
198 | From common/libs/func_validate_configs.sh.
|
---|
199 | Description:
|
---|
200 | --------------------------------------------------------------------------
|
---|
201 | validate_file():
|
---|
202 | From common/libs/func_validate_configs.sh.
|
---|
203 | Description:
|
---|
204 | --------------------------------------------------------------------------
|
---|
205 | validate_dir():
|
---|
206 | From common/libs/func_validate_configs.sh.
|
---|
207 | Description:
|
---|
208 | --------------------------------------------------------------------------
|
---|
209 | get_book():
|
---|
210 | From common/libs/func_book_parser.
|
---|
211 | Description:
|
---|
212 | --------------------------------------------------------------------------
|
---|
213 | extract_commands():
|
---|
214 | From common/libs/func_book_parser.
|
---|
215 | Description:
|
---|
216 | --------------------------------------------------------------------------
|
---|
217 | create_package_list():
|
---|
218 | From common/libs/func_book_parser.
|
---|
219 | Description:
|
---|
220 | --------------------------------------------------------------------------
|
---|
221 | check_version():
|
---|
222 | From common/libs/func_check_version.sh.
|
---|
223 | Description:
|
---|
224 | --------------------------------------------------------------------------
|
---|
225 | write_error_and_die():
|
---|
226 | From common/libs/func_check_version.sh.
|
---|
227 | Description:
|
---|
228 | --------------------------------------------------------------------------
|
---|
229 | check_prerequisites():
|
---|
230 | From common/libs/func_check_version.sh.
|
---|
231 | Description:
|
---|
232 | --------------------------------------------------------------------------
|
---|
233 | write_or_exit():
|
---|
234 | From common/progress_bar.sh.
|
---|
235 | Description:
|
---|
236 | --------------------------------------------------------------------------
|
---|
237 | no_empty_builddir():
|
---|
238 | From common/common-functions.
|
---|
239 | Description:
|
---|
240 | --------------------------------------------------------------------------
|
---|
241 | run_make():
|
---|
242 | From common/common-functions.
|
---|
243 | Description:
|
---|
244 | --------------------------------------------------------------------------
|
---|
245 | clean_builddir():
|
---|
246 | From common/common-functions.
|
---|
247 | Description:
|
---|
248 | --------------------------------------------------------------------------
|
---|
249 | function dohelp():
|
---|
250 | From extras/farce.
|
---|
251 | Description:
|
---|
252 | --------------------------------------------------------------------------
|
---|
253 | function emessage():
|
---|
254 | From extras/farce.
|
---|
255 | Description:
|
---|
256 | --------------------------------------------------------------------------
|
---|
257 | function expected():
|
---|
258 | From extras/farce.
|
---|
259 | Description:
|
---|
260 | --------------------------------------------------------------------------
|
---|
261 | function failure():
|
---|
262 | From extras/farce.
|
---|
263 | Description:
|
---|
264 | --------------------------------------------------------------------------
|
---|
265 | extras/farce: emessage "internal error in failure() for TYPE $TYPE"
|
---|
266 | function fatal():
|
---|
267 | From extras/farce.
|
---|
268 | Description:
|
---|
269 | --------------------------------------------------------------------------
|
---|
270 | function filetype():
|
---|
271 | From extras/farce.
|
---|
272 | Description:
|
---|
273 | --------------------------------------------------------------------------
|
---|
274 | function message():
|
---|
275 | From extras/farce.
|
---|
276 | Description:
|
---|
277 | --------------------------------------------------------------------------
|
---|
278 | function onlyone():
|
---|
279 | From extras/farce.
|
---|
280 | Description:
|
---|
281 | --------------------------------------------------------------------------
|
---|
282 | function testar():
|
---|
283 | From extras/farce.
|
---|
284 | Description:
|
---|
285 | --------------------------------------------------------------------------
|
---|
286 | function testgzip():
|
---|
287 | From extras/farce.
|
---|
288 | Description:
|
---|
289 | --------------------------------------------------------------------------
|
---|
290 | function testso():
|
---|
291 | From extras/farce.
|
---|
292 | Description:
|
---|
293 | --------------------------------------------------------------------------
|
---|
294 | function tokenize():
|
---|
295 | From extras/farce.
|
---|
296 | Description:
|
---|
297 | --------------------------------------------------------------------------
|
---|
298 | function tokenizeanddiff():
|
---|
299 | From extras/farce.
|
---|
300 | Description:
|
---|
301 | --------------------------------------------------------------------------
|
---|
302 | function validateargs():
|
---|
303 | From extras/farce.
|
---|
304 | Description:
|
---|
305 | --------------------------------------------------------------------------
|
---|
306 | process_toolchain():
|
---|
307 | From HLFS/master.sh.
|
---|
308 | Description: embryo,cocoon and butterfly need special handling
|
---|
309 | --------------------------------------------------------------------------
|
---|
310 | chapter3_Makefiles():
|
---|
311 | From HLFS/master.sh.
|
---|
312 | Description: Initialization of the system
|
---|
313 | --------------------------------------------------------------------------
|
---|
314 | chapter5_Makefiles():
|
---|
315 | From HLFS/master.sh.
|
---|
316 | Description: Bootstrap or temptools phase
|
---|
317 | --------------------------------------------------------------------------
|
---|
318 | chapter6_Makefiles():
|
---|
319 | From HLFS/master.sh.
|
---|
320 | Description: sysroot or chroot build phase
|
---|
321 | --------------------------------------------------------------------------
|
---|
322 | chapter7_Makefiles():
|
---|
323 | From HLFS/master.sh.
|
---|
324 | Description: Create a bootable system.. kernel, bootscripts..etc
|
---|
325 | --------------------------------------------------------------------------
|
---|
326 | build_Makefile():
|
---|
327 | From HLFS/master.sh.
|
---|
328 | Description: Construct a Makefile from the book scripts
|
---|
329 | --------------------------------------------------------------------------
|
---|
330 | simple_error():
|
---|
331 | From jhalfs.
|
---|
332 | Description: Basic error trap.... JUST DIE
|
---|
333 | --------------------------------------------------------------------------
|
---|
334 | see_ya():
|
---|
335 | From jhalfs.
|
---|
336 | Description:
|
---|
337 | --------------------------------------------------------------------------
|
---|
338 | jhalfs: # Tidy and Unzip version are harcoded also in wrt_blfs_tool_targets()
|
---|
339 | jhalfs: # Create $BUILDDIR/sources even though it could be created by get_sources()
|
---|
340 | chapter4_Makefiles():
|
---|
341 | From LFS/master.sh.
|
---|
342 | Description:
|
---|
343 | --------------------------------------------------------------------------
|
---|
344 | chapter5_Makefiles():
|
---|
345 | From LFS/master.sh.
|
---|
346 | Description:
|
---|
347 | --------------------------------------------------------------------------
|
---|
348 | chapter6_Makefiles():
|
---|
349 | From LFS/master.sh.
|
---|
350 | Description:
|
---|
351 | --------------------------------------------------------------------------
|
---|
352 | chapter78_Makefiles():
|
---|
353 | From LFS/master.sh.
|
---|
354 | Description:
|
---|
355 | --------------------------------------------------------------------------
|
---|
356 | build_Makefile():
|
---|
357 | From LFS/master.sh.
|
---|
358 | Description:
|
---|
359 | --------------------------------------------------------------------------
|
---|
360 | validate_opt_settings():
|
---|
361 | From optimize/optimize_functions.
|
---|
362 | Description: Show optimize setting and wait user agreement
|
---|
363 | --------------------------------------------------------------------------
|
---|
364 | wrt_optimize():
|
---|
365 | From optimize/optimize_functions.
|
---|
366 | Description: Apply pkg specific opt's to build
|
---|
367 | --------------------------------------------------------------------------
|
---|
368 | wrt_makeflags():
|
---|
369 | From optimize/optimize_functions.
|
---|
370 | Description: Apply MAKEFLAGS to build
|
---|
371 | --------------------------------------------------------------------------
|
---|