Skip to content

Commit

Permalink
README: document the use of CQFD_EXTRA_RUN_ARGS and docker_run_args
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed May 23, 2023
1 parent 5253d24 commit cb76a5d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,19 @@ installing anything else than Docker and `repo` on your development machine.
NOTE: We recommend using this method as it greatly simplifies the build
configuration management process.

=== Yocto SSTATE and Download cache

Yocto provides a way to share build artifacts between multiple workspaces and
developers through the DL_DIR and SSTATE_DIR environment variables.
To use them with cqfd, add to your .bashrc:

export CQFD_EXTRA_RUN_ARGS="-v <your_dldir_path>:/mnt/dl -e DL_DIR=/mnt/dl -v <your_sstate_path>:/mnt/sstate -e SSTATE_DIR=/mnt/sstate"

You could also do this configuration in .cqfdrc with docker_run_args under build
section:

docker_run_args='-v <your_dldir_path>:/mnt/dl -e DL_DIR=/mnt/dl -v <your_sstate_path>:/mnt/sstate -e SSTATE_DIR=/mnt/sstate'

=== Prerequisites

==== Docker installation
Expand Down

0 comments on commit cb76a5d

Please sign in to comment.