summaryrefslogtreecommitdiff
path: root/upstream-layers/bitbake/packaging-pypi/bitbake-setup/README.md
blob: aaa70278383621b155737b4d367adfc9d5a70b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# bitbake-setup

This package provides the `bitbake-setup` command and the Python modules
required to support BitBake setup and configuration.

## Usage

Instructions on uses of bitbake-setup can be found in
[Setting Up the Environment With bitbake-setup](https://docs.yoctoproject.org/bitbake/dev/bitbake-user-manual/bitbake-user-manual-environment-setup.html) from the Yocto Project manual.

List the available configurations;
```bash
bitbake-setup list
```

Show the help for the bitbake-setup init subcommand:
```bash
bitbake-setup init --help
usage: bitbake-setup init [-h] [--non-interactive] [--source-overrides SOURCE_OVERRIDES] [--setup-dir-name SETUP_DIR_NAME] [--skip-selection SKIP_SELECTION] [-L SOURCE_NAME PATH]
                          [config ...]

positional arguments:
  config                path/URL/id to a configuration file (use 'list' command to get available ids), followed by configuration options. Bitbake-setup will ask to choose from available
                        choices if command line doesn't completely specify them.

options:
  -h, --help            show this help message and exit
  --non-interactive     Do not ask to interactively choose from available options; if bitbake-setup cannot make a decision it will stop with a failure.
  --source-overrides SOURCE_OVERRIDES
                        Override sources information (repositories/revisions) with values from a local json file.
  --setup-dir-name SETUP_DIR_NAME
                        A custom setup directory name under the top directory.
  --skip-selection SKIP_SELECTION
                        Do not select and set an option/fragment from available choices; the resulting bitbake configuration may be incomplete.
  -L SOURCE_NAME PATH, --use-local-source SOURCE_NAME PATH
                        Symlink local source into a build, instead of getting it as prescribed by a configuration (useful for local development).
```

To initialize a workspace for the Poky reference distro using the development branch (ie. "master") of OpenEmbedded:
```bash
bitbake-setup init poky-master
```