[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 | --------------------------------------------------------------------------
|
---|
[e576789] | 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
|
---|
[7072e1f] | 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'
|
---|
[2e1c1c3] | 42 | and `CUSTOM_TOOLS' is `y' respectively.
|
---|
[7072e1f] | 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.
|
---|
[2e1c1c3] | 71 | Called by: various functions in master.sh
|
---|
[7072e1f] | 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.
|
---|
[2e1c1c3] | 131 | Description:
|
---|
[7072e1f] | 132 | --------------------------------------------------------------------------
|
---|
| 133 | LUSER_wrt_CopyFstab():
|
---|
| 134 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 135 | Description:
|
---|
[7072e1f] | 136 | --------------------------------------------------------------------------
|
---|
| 137 | CHROOT_wrt_CopyFstab():
|
---|
| 138 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 139 | Description:
|
---|
[7072e1f] | 140 | --------------------------------------------------------------------------
|
---|
| 141 | LUSER_wrt_TouchTimestamp():
|
---|
| 142 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 143 | Description:
|
---|
[7072e1f] | 144 | --------------------------------------------------------------------------
|
---|
| 145 | CHROOT_wrt_TouchTimestamp():
|
---|
| 146 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 147 | Description:
|
---|
[7072e1f] | 148 | --------------------------------------------------------------------------
|
---|
| 149 | LUSER_wrt_LogNewFiles():
|
---|
| 150 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 151 | Description:
|
---|
[7072e1f] | 152 | --------------------------------------------------------------------------
|
---|
| 153 | CHROOT_wrt_LogNewFiles():
|
---|
| 154 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 155 | Description:
|
---|
[7072e1f] | 156 | --------------------------------------------------------------------------
|
---|
| 157 | LUSER_RemoveBuildDirs():
|
---|
| 158 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 159 | Description:
|
---|
[7072e1f] | 160 | --------------------------------------------------------------------------
|
---|
| 161 | CHROOT_wrt_RemoveBuildDirs():
|
---|
| 162 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 163 | Description:
|
---|
[7072e1f] | 164 | --------------------------------------------------------------------------
|
---|
| 165 | wrt_touch():
|
---|
| 166 | From common/libs/func_wrt_Makefile.
|
---|
[2e1c1c3] | 167 | Description:
|
---|
[7072e1f] | 168 | --------------------------------------------------------------------------
|
---|
| 169 | wrt_compare_targets():
|
---|
| 170 | From common/libs/func_compare.sh.
|
---|
[2e1c1c3] | 171 | Description:
|
---|
[7072e1f] | 172 | --------------------------------------------------------------------------
|
---|
| 173 | wrt_system_build():
|
---|
| 174 | From common/libs/func_compare.sh.
|
---|
[2e1c1c3] | 175 | Description:
|
---|
[7072e1f] | 176 | --------------------------------------------------------------------------
|
---|
| 177 | wrt_compare_work():
|
---|
| 178 | From common/libs/func_compare.sh.
|
---|
[2e1c1c3] | 179 | Description:
|
---|
[7072e1f] | 180 | --------------------------------------------------------------------------
|
---|
| 181 | wrt_do_ica_work():
|
---|
| 182 | From common/libs/func_compare.sh.
|
---|
[2e1c1c3] | 183 | Description:
|
---|
[7072e1f] | 184 | --------------------------------------------------------------------------
|
---|
| 185 | wrt_do_farce_work():
|
---|
| 186 | From common/libs/func_compare.sh.
|
---|
[2e1c1c3] | 187 | Description:
|
---|
[7072e1f] | 188 | --------------------------------------------------------------------------
|
---|
| 189 | wrt_logs():
|
---|
| 190 | From common/libs/func_compare.sh.
|
---|
[2e1c1c3] | 191 | Description:
|
---|
[7072e1f] | 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.
|
---|
[2e1c1c3] | 199 | Description:
|
---|
[7072e1f] | 200 | --------------------------------------------------------------------------
|
---|
| 201 | validate_file():
|
---|
| 202 | From common/libs/func_validate_configs.sh.
|
---|
[2e1c1c3] | 203 | Description:
|
---|
[7072e1f] | 204 | --------------------------------------------------------------------------
|
---|
| 205 | validate_dir():
|
---|
| 206 | From common/libs/func_validate_configs.sh.
|
---|
[2e1c1c3] | 207 | Description:
|
---|
[7072e1f] | 208 | --------------------------------------------------------------------------
|
---|
| 209 | get_book():
|
---|
| 210 | From common/libs/func_book_parser.
|
---|
[2e1c1c3] | 211 | Description:
|
---|
[7072e1f] | 212 | --------------------------------------------------------------------------
|
---|
| 213 | extract_commands():
|
---|
| 214 | From common/libs/func_book_parser.
|
---|
[2e1c1c3] | 215 | Description:
|
---|
[7072e1f] | 216 | --------------------------------------------------------------------------
|
---|
| 217 | create_package_list():
|
---|
| 218 | From common/libs/func_book_parser.
|
---|
[2e1c1c3] | 219 | Description:
|
---|
[7072e1f] | 220 | --------------------------------------------------------------------------
|
---|
| 221 | check_version():
|
---|
| 222 | From common/libs/func_check_version.sh.
|
---|
[2e1c1c3] | 223 | Description:
|
---|
[7072e1f] | 224 | --------------------------------------------------------------------------
|
---|
| 225 | write_error_and_die():
|
---|
| 226 | From common/libs/func_check_version.sh.
|
---|
[2e1c1c3] | 227 | Description:
|
---|
[7072e1f] | 228 | --------------------------------------------------------------------------
|
---|
| 229 | check_prerequisites():
|
---|
| 230 | From common/libs/func_check_version.sh.
|
---|
[2e1c1c3] | 231 | Description:
|
---|
[7072e1f] | 232 | --------------------------------------------------------------------------
|
---|
| 233 | write_or_exit():
|
---|
| 234 | From common/progress_bar.sh.
|
---|
[2e1c1c3] | 235 | Description:
|
---|
[7072e1f] | 236 | --------------------------------------------------------------------------
|
---|
| 237 | no_empty_builddir():
|
---|
| 238 | From common/common-functions.
|
---|
[2e1c1c3] | 239 | Description:
|
---|
[7072e1f] | 240 | --------------------------------------------------------------------------
|
---|
| 241 | run_make():
|
---|
| 242 | From common/common-functions.
|
---|
[2e1c1c3] | 243 | Description:
|
---|
[7072e1f] | 244 | --------------------------------------------------------------------------
|
---|
| 245 | clean_builddir():
|
---|
| 246 | From common/common-functions.
|
---|
[2e1c1c3] | 247 | Description:
|
---|
[7072e1f] | 248 | --------------------------------------------------------------------------
|
---|
| 249 | function dohelp():
|
---|
| 250 | From extras/farce.
|
---|
[2e1c1c3] | 251 | Description:
|
---|
[7072e1f] | 252 | --------------------------------------------------------------------------
|
---|
| 253 | function emessage():
|
---|
| 254 | From extras/farce.
|
---|
[2e1c1c3] | 255 | Description:
|
---|
[7072e1f] | 256 | --------------------------------------------------------------------------
|
---|
| 257 | function expected():
|
---|
| 258 | From extras/farce.
|
---|
[2e1c1c3] | 259 | Description:
|
---|
[7072e1f] | 260 | --------------------------------------------------------------------------
|
---|
| 261 | function failure():
|
---|
| 262 | From extras/farce.
|
---|
[2e1c1c3] | 263 | Description:
|
---|
[7072e1f] | 264 | --------------------------------------------------------------------------
|
---|
| 265 | function fatal():
|
---|
| 266 | From extras/farce.
|
---|
[2e1c1c3] | 267 | Description:
|
---|
[7072e1f] | 268 | --------------------------------------------------------------------------
|
---|
| 269 | function filetype():
|
---|
| 270 | From extras/farce.
|
---|
[2e1c1c3] | 271 | Description:
|
---|
[7072e1f] | 272 | --------------------------------------------------------------------------
|
---|
| 273 | function message():
|
---|
| 274 | From extras/farce.
|
---|
[2e1c1c3] | 275 | Description:
|
---|
[7072e1f] | 276 | --------------------------------------------------------------------------
|
---|
| 277 | function onlyone():
|
---|
| 278 | From extras/farce.
|
---|
[2e1c1c3] | 279 | Description:
|
---|
[7072e1f] | 280 | --------------------------------------------------------------------------
|
---|
| 281 | function testar():
|
---|
| 282 | From extras/farce.
|
---|
[2e1c1c3] | 283 | Description:
|
---|
[7072e1f] | 284 | --------------------------------------------------------------------------
|
---|
| 285 | function testgzip():
|
---|
| 286 | From extras/farce.
|
---|
[2e1c1c3] | 287 | Description:
|
---|
[7072e1f] | 288 | --------------------------------------------------------------------------
|
---|
| 289 | function testso():
|
---|
| 290 | From extras/farce.
|
---|
[2e1c1c3] | 291 | Description:
|
---|
[7072e1f] | 292 | --------------------------------------------------------------------------
|
---|
| 293 | function tokenize():
|
---|
| 294 | From extras/farce.
|
---|
[2e1c1c3] | 295 | Description:
|
---|
[7072e1f] | 296 | --------------------------------------------------------------------------
|
---|
| 297 | function tokenizeanddiff():
|
---|
| 298 | From extras/farce.
|
---|
[2e1c1c3] | 299 | Description:
|
---|
[7072e1f] | 300 | --------------------------------------------------------------------------
|
---|
| 301 | function validateargs():
|
---|
| 302 | From extras/farce.
|
---|
[2e1c1c3] | 303 | Description:
|
---|
[7072e1f] | 304 | --------------------------------------------------------------------------
|
---|
| 305 | process_toolchain():
|
---|
| 306 | From HLFS/master.sh.
|
---|
| 307 | Description: embryo,cocoon and butterfly need special handling
|
---|
| 308 | --------------------------------------------------------------------------
|
---|
| 309 | chapter3_Makefiles():
|
---|
| 310 | From HLFS/master.sh.
|
---|
| 311 | Description: Initialization of the system
|
---|
| 312 | --------------------------------------------------------------------------
|
---|
| 313 | chapter5_Makefiles():
|
---|
| 314 | From HLFS/master.sh.
|
---|
| 315 | Description: Bootstrap or temptools phase
|
---|
| 316 | --------------------------------------------------------------------------
|
---|
| 317 | chapter6_Makefiles():
|
---|
| 318 | From HLFS/master.sh.
|
---|
| 319 | Description: sysroot or chroot build phase
|
---|
| 320 | --------------------------------------------------------------------------
|
---|
| 321 | chapter7_Makefiles():
|
---|
| 322 | From HLFS/master.sh.
|
---|
| 323 | Description: Create a bootable system.. kernel, bootscripts..etc
|
---|
| 324 | --------------------------------------------------------------------------
|
---|
| 325 | build_Makefile():
|
---|
| 326 | From HLFS/master.sh.
|
---|
| 327 | Description: Construct a Makefile from the book scripts
|
---|
| 328 | --------------------------------------------------------------------------
|
---|
| 329 | simple_error():
|
---|
| 330 | From jhalfs.
|
---|
| 331 | Description: Basic error trap.... JUST DIE
|
---|
| 332 | --------------------------------------------------------------------------
|
---|
| 333 | see_ya():
|
---|
| 334 | From jhalfs.
|
---|
[2e1c1c3] | 335 | Description:
|
---|
[7072e1f] | 336 | --------------------------------------------------------------------------
|
---|
| 337 | chapter4_Makefiles():
|
---|
| 338 | From LFS/master.sh.
|
---|
[2e1c1c3] | 339 | Description:
|
---|
[7072e1f] | 340 | --------------------------------------------------------------------------
|
---|
| 341 | chapter5_Makefiles():
|
---|
| 342 | From LFS/master.sh.
|
---|
[2e1c1c3] | 343 | Description:
|
---|
[7072e1f] | 344 | --------------------------------------------------------------------------
|
---|
| 345 | chapter6_Makefiles():
|
---|
| 346 | From LFS/master.sh.
|
---|
[2e1c1c3] | 347 | Description:
|
---|
[7072e1f] | 348 | --------------------------------------------------------------------------
|
---|
| 349 | chapter78_Makefiles():
|
---|
| 350 | From LFS/master.sh.
|
---|
[2e1c1c3] | 351 | Description:
|
---|
[7072e1f] | 352 | --------------------------------------------------------------------------
|
---|
| 353 | build_Makefile():
|
---|
| 354 | From LFS/master.sh.
|
---|
[2e1c1c3] | 355 | Description:
|
---|
[7072e1f] | 356 | --------------------------------------------------------------------------
|
---|
| 357 | validate_opt_settings():
|
---|
| 358 | From optimize/optimize_functions.
|
---|
| 359 | Description: Show optimize setting and wait user agreement
|
---|
| 360 | --------------------------------------------------------------------------
|
---|
| 361 | wrt_optimize():
|
---|
| 362 | From optimize/optimize_functions.
|
---|
| 363 | Description: Apply pkg specific opt's to build
|
---|
| 364 | --------------------------------------------------------------------------
|
---|
| 365 | wrt_makeflags():
|
---|
| 366 | From optimize/optimize_functions.
|
---|
| 367 | Description: Apply MAKEFLAGS to build
|
---|
| 368 | --------------------------------------------------------------------------
|
---|