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