diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2024-10-18 23:36:26 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-18 13:41:38 +0000 |
| commit | 2abc5dd0287c12c16fa72e6aa341ebf09a15aef1 (patch) | |
| tree | de806c3ade922aa75012b6c688de940aaa6a137d /bitbake/doc | |
| parent | b9b59b5a8bdfa2666477018e7175c5036376807c (diff) | |
| download | poky-2abc5dd0287c12c16fa72e6aa341ebf09a15aef1.tar.gz | |
bitbake: doc/user-manual: Refresh help output
In commit 9257c48c3e36 ("Group and reorder options in bitbake help"),
help output was changed, update the doc to match the new output.
(Bitbake rev: 7ef357f1c6fcd50c9d22190ba39d1cfd82070c79)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc')
| -rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.rst | 174 |
1 files changed, 100 insertions, 74 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.rst index 35ffb88b02..539bb62d81 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.rst +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.rst | |||
| @@ -349,40 +349,84 @@ Usage and syntax | |||
| 349 | Following is the usage and syntax for BitBake:: | 349 | Following is the usage and syntax for BitBake:: |
| 350 | 350 | ||
| 351 | $ bitbake -h | 351 | $ bitbake -h |
| 352 | Usage: bitbake [options] [recipename/target recipe:do_task ...] | 352 | usage: bitbake [-s] [-e] [-g] [-u UI] [--version] [-h] [-f] [-c CMD] |
| 353 | 353 | [-C INVALIDATE_STAMP] [--runall RUNALL] [--runonly RUNONLY] | |
| 354 | Executes the specified task (default is 'build') for a given set of target recipes (.bb files). | 354 | [--no-setscene] [--skip-setscene] [--setscene-only] [-n] [-p] |
| 355 | It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which | 355 | [-k] [-P] [-S SIGNATURE_HANDLER] [--revisions-changed] |
| 356 | will provide the layer, BBFILES and other configuration information. | 356 | [-b BUILDFILE] [-D] [-l DEBUG_DOMAINS] [-v] [-q] |
| 357 | [-w WRITEEVENTLOG] [-B BIND] [-T SERVER_TIMEOUT] | ||
| 358 | [--remote-server REMOTE_SERVER] [-m] [--token XMLRPCTOKEN] | ||
| 359 | [--observe-only] [--status-only] [--server-only] [-r PREFILE] | ||
| 360 | [-R POSTFILE] [-I EXTRA_ASSUME_PROVIDED] | ||
| 361 | [recipename/target ...] | ||
| 362 | |||
| 363 | It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH | ||
| 364 | which will provide the layer, BBFILES and other configuration information. | ||
| 365 | |||
| 366 | General options: | ||
| 367 | recipename/target Execute the specified task (default is 'build') for | ||
| 368 | these target recipes (.bb files). | ||
| 369 | -s, --show-versions Show current and preferred versions of all recipes. | ||
| 370 | -e, --environment Show the global or per-recipe environment complete | ||
| 371 | with information about where variables were | ||
| 372 | set/changed. | ||
| 373 | -g, --graphviz Save dependency tree information for the specified | ||
| 374 | targets in the dot syntax. | ||
| 375 | -u UI, --ui UI The user interface to use (knotty, ncurses, taskexp, | ||
| 376 | taskexp_ncurses or teamcity - default knotty). | ||
| 377 | --version Show programs version and exit. | ||
| 378 | -h, --help Show this help message and exit. | ||
| 357 | 379 | ||
| 358 | Options: | 380 | Task control options: |
| 359 | --version show program's version number and exit | ||
| 360 | -h, --help show this help message and exit | ||
| 361 | -b BUILDFILE, --buildfile=BUILDFILE | ||
| 362 | Execute tasks from a specific .bb recipe directly. | ||
| 363 | WARNING: Does not handle any dependencies from other | ||
| 364 | recipes. | ||
| 365 | -k, --continue Continue as much as possible after an error. While the | ||
| 366 | target that failed and anything depending on it cannot | ||
| 367 | be built, as much as possible will be built before | ||
| 368 | stopping. | ||
| 369 | -f, --force Force the specified targets/task to run (invalidating | 381 | -f, --force Force the specified targets/task to run (invalidating |
| 370 | any existing stamp file). | 382 | any existing stamp file). |
| 371 | -c CMD, --cmd=CMD Specify the task to execute. The exact options | 383 | -c CMD, --cmd CMD Specify the task to execute. The exact options |
| 372 | available depend on the metadata. Some examples might | 384 | available depend on the metadata. Some examples might |
| 373 | be 'compile' or 'populate_sysroot' or 'listtasks' may | 385 | be 'compile' or 'populate_sysroot' or 'listtasks' may |
| 374 | give a list of the tasks available. | 386 | give a list of the tasks available. |
| 375 | -C INVALIDATE_STAMP, --clear-stamp=INVALIDATE_STAMP | 387 | -C INVALIDATE_STAMP, --clear-stamp INVALIDATE_STAMP |
| 376 | Invalidate the stamp for the specified task such as | 388 | Invalidate the stamp for the specified task such as |
| 377 | 'compile' and then run the default task for the | 389 | 'compile' and then run the default task for the |
| 378 | specified target(s). | 390 | specified target(s). |
| 379 | -r PREFILE, --read=PREFILE | 391 | --runall RUNALL Run the specified task for any recipe in the taskgraph |
| 380 | Read the specified file before bitbake.conf. | 392 | of the specified target (even if it wouldn't otherwise |
| 381 | -R POSTFILE, --postread=POSTFILE | 393 | have run). |
| 382 | Read the specified file after bitbake.conf. | 394 | --runonly RUNONLY Run only the specified task within the taskgraph of |
| 383 | -v, --verbose Enable tracing of shell tasks (with 'set -x'). Also | 395 | the specified targets (and any task dependencies those |
| 384 | print bb.note(...) messages to stdout (in addition to | 396 | tasks may have). |
| 385 | writing them to ${T}/log.do_<task>). | 397 | --no-setscene Do not run any setscene tasks. sstate will be ignored |
| 398 | and everything needed, built. | ||
| 399 | --skip-setscene Skip setscene tasks if they would be executed. Tasks | ||
| 400 | previously restored from sstate will be kept, unlike | ||
| 401 | --no-setscene. | ||
| 402 | --setscene-only Only run setscene tasks, don't run any real tasks. | ||
| 403 | |||
| 404 | Execution control options: | ||
| 405 | -n, --dry-run Don't execute, just go through the motions. | ||
| 406 | -p, --parse-only Quit after parsing the BB recipes. | ||
| 407 | -k, --continue Continue as much as possible after an error. While the | ||
| 408 | target that failed and anything depending on it cannot | ||
| 409 | be built, as much as possible will be built before | ||
| 410 | stopping. | ||
| 411 | -P, --profile Profile the command and save reports. | ||
| 412 | -S SIGNATURE_HANDLER, --dump-signatures SIGNATURE_HANDLER | ||
| 413 | Dump out the signature construction information, with | ||
| 414 | no task execution. The SIGNATURE_HANDLER parameter is | ||
| 415 | passed to the handler. Two common values are none and | ||
| 416 | printdiff but the handler may define more/less. none | ||
| 417 | means only dump the signature, printdiff means | ||
| 418 | recursively compare the dumped signature with the most | ||
| 419 | recent one in a local build or sstate cache (can be | ||
| 420 | used to find out why tasks re-run when that is not | ||
| 421 | expected) | ||
| 422 | --revisions-changed Set the exit code depending on whether upstream | ||
| 423 | floating revisions have changed or not. | ||
| 424 | -b BUILDFILE, --buildfile BUILDFILE | ||
| 425 | Execute tasks from a specific .bb recipe directly. | ||
| 426 | WARNING: Does not handle any dependencies from other | ||
| 427 | recipes. | ||
| 428 | |||
| 429 | Logging/output control options: | ||
| 386 | -D, --debug Increase the debug level. You can specify this more | 430 | -D, --debug Increase the debug level. You can specify this more |
| 387 | than once. -D sets the debug level to 1, where only | 431 | than once. -D sets the debug level to 1, where only |
| 388 | bb.debug(1, ...) messages are printed to stdout; -DD | 432 | bb.debug(1, ...) messages are printed to stdout; -DD |
| @@ -392,65 +436,47 @@ Following is the usage and syntax for BitBake:: | |||
| 392 | -D only affects output to stdout. All debug messages | 436 | -D only affects output to stdout. All debug messages |
| 393 | are written to ${T}/log.do_taskname, regardless of the | 437 | are written to ${T}/log.do_taskname, regardless of the |
| 394 | debug level. | 438 | debug level. |
| 439 | -l DEBUG_DOMAINS, --log-domains DEBUG_DOMAINS | ||
| 440 | Show debug logging for the specified logging domains. | ||
| 441 | -v, --verbose Enable tracing of shell tasks (with 'set -x'). Also | ||
| 442 | print bb.note(...) messages to stdout (in addition to | ||
| 443 | writing them to ${T}/log.do_<task>). | ||
| 395 | -q, --quiet Output less log message data to the terminal. You can | 444 | -q, --quiet Output less log message data to the terminal. You can |
| 396 | specify this more than once. | 445 | specify this more than once. |
| 397 | -n, --dry-run Don't execute, just go through the motions. | 446 | -w WRITEEVENTLOG, --write-log WRITEEVENTLOG |
| 398 | -S SIGNATURE_HANDLER, --dump-signatures=SIGNATURE_HANDLER | 447 | Writes the event log of the build to a bitbake event |
| 399 | Dump out the signature construction information, with | 448 | json file. Use '' (empty string) to assign the name |
| 400 | no task execution. The SIGNATURE_HANDLER parameter is | 449 | automatically. |
| 401 | passed to the handler. Two common values are none and | 450 | |
| 402 | printdiff but the handler may define more/less. none | 451 | Server options: |
| 403 | means only dump the signature, printdiff means compare | 452 | -B BIND, --bind BIND The name/address for the bitbake xmlrpc server to bind |
| 404 | the dumped signature with the cached one. | ||
| 405 | -p, --parse-only Quit after parsing the BB recipes. | ||
| 406 | -s, --show-versions Show current and preferred versions of all recipes. | ||
| 407 | -e, --environment Show the global or per-recipe environment complete | ||
| 408 | with information about where variables were | ||
| 409 | set/changed. | ||
| 410 | -g, --graphviz Save dependency tree information for the specified | ||
| 411 | targets in the dot syntax. | ||
| 412 | -I EXTRA_ASSUME_PROVIDED, --ignore-deps=EXTRA_ASSUME_PROVIDED | ||
| 413 | Assume these dependencies don't exist and are already | ||
| 414 | provided (equivalent to ASSUME_PROVIDED). Useful to | ||
| 415 | make dependency graphs more appealing | ||
| 416 | -l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS | ||
| 417 | Show debug logging for the specified logging domains | ||
| 418 | -P, --profile Profile the command and save reports. | ||
| 419 | -u UI, --ui=UI The user interface to use (knotty, ncurses, taskexp or | ||
| 420 | teamcity - default knotty). | ||
| 421 | --token=XMLRPCTOKEN Specify the connection token to be used when | ||
| 422 | connecting to a remote server. | ||
| 423 | --revisions-changed Set the exit code depending on whether upstream | ||
| 424 | floating revisions have changed or not. | ||
| 425 | --server-only Run bitbake without a UI, only starting a server | ||
| 426 | (cooker) process. | ||
| 427 | -B BIND, --bind=BIND The name/address for the bitbake xmlrpc server to bind | ||
| 428 | to. | 453 | to. |
| 429 | -T SERVER_TIMEOUT, --idle-timeout=SERVER_TIMEOUT | 454 | -T SERVER_TIMEOUT, --idle-timeout SERVER_TIMEOUT |
| 430 | Set timeout to unload bitbake server due to | 455 | Set timeout to unload bitbake server due to |
| 431 | inactivity, set to -1 means no unload, default: | 456 | inactivity, set to -1 means no unload, default: |
| 432 | Environment variable BB_SERVER_TIMEOUT. | 457 | Environment variable BB_SERVER_TIMEOUT. |
| 433 | --no-setscene Do not run any setscene tasks. sstate will be ignored | 458 | --remote-server REMOTE_SERVER |
| 434 | and everything needed, built. | ||
| 435 | --skip-setscene Skip setscene tasks if they would be executed. Tasks | ||
| 436 | previously restored from sstate will be kept, unlike | ||
| 437 | --no-setscene | ||
| 438 | --setscene-only Only run setscene tasks, don't run any real tasks. | ||
| 439 | --remote-server=REMOTE_SERVER | ||
| 440 | Connect to the specified server. | 459 | Connect to the specified server. |
| 441 | -m, --kill-server Terminate any running bitbake server. | 460 | -m, --kill-server Terminate any running bitbake server. |
| 461 | --token XMLRPCTOKEN Specify the connection token to be used when | ||
| 462 | connecting to a remote server. | ||
| 442 | --observe-only Connect to a server as an observing-only client. | 463 | --observe-only Connect to a server as an observing-only client. |
| 443 | --status-only Check the status of the remote bitbake server. | 464 | --status-only Check the status of the remote bitbake server. |
| 444 | -w WRITEEVENTLOG, --write-log=WRITEEVENTLOG | 465 | --server-only Run bitbake without a UI, only starting a server |
| 445 | Writes the event log of the build to a bitbake event | 466 | (cooker) process. |
| 446 | json file. Use '' (empty string) to assign the name | 467 | |
| 447 | automatically. | 468 | Configuration options: |
| 448 | --runall=RUNALL Run the specified task for any recipe in the taskgraph | 469 | -r PREFILE, --read PREFILE |
| 449 | of the specified target (even if it wouldn't otherwise | 470 | Read the specified file before bitbake.conf. |
| 450 | have run). | 471 | -R POSTFILE, --postread POSTFILE |
| 451 | --runonly=RUNONLY Run only the specified task within the taskgraph of | 472 | Read the specified file after bitbake.conf. |
| 452 | the specified targets (and any task dependencies those | 473 | -I EXTRA_ASSUME_PROVIDED, --ignore-deps EXTRA_ASSUME_PROVIDED |
| 453 | tasks may have). | 474 | Assume these dependencies don't exist and are already |
| 475 | provided (equivalent to ASSUME_PROVIDED). Useful to | ||
| 476 | make dependency graphs more appealing. | ||
| 477 | |||
| 478 | .. | ||
| 479 | Bitbake help output generated with "stty columns 80; bin/bitbake -h" | ||
| 454 | 480 | ||
| 455 | .. _bitbake-examples: | 481 | .. _bitbake-examples: |
| 456 | 482 | ||
