Skip to content

Conversation

@Asquator
Copy link

@Asquator Asquator commented Oct 13, 2025

Enhanced cvdr documentation, made it more ad-hoc to newcomers:

  • Added common use case - local AOSP build
  • Clear separation between Debian and non-Debian cases
  • Documented the env vars
  • General flow refactor

As a newcomer, it was pretty difficult to get along with the command without reading the code. I think the env vars were not documented at all. Created this PR to make it easier for other people.

@google-cla
Copy link

google-cla bot commented Oct 13, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Asquator Asquator marked this pull request as ready for review October 13, 2025 22:09
Copy link
Member

@jemoreira jemoreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! The documentation is certainly more useful now.

I left some minor comments, we can merge the PR once you have addressed them and signed the Google CLA (see comment from the review bot).



```bash
CVDR_USER_CONFIG_PATH=/path/to/cvdr.toml ./cvdr --help
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also make cvdr try to read config files from the default locations when the variables are not defined.

export ANDROID_BUILD_TOP=/path/to/your/AOSP/sources/root
export ANDROID_PRODUCT_OUT="${ANDROID_BUILD_TOP}/out/target/product/your_target"
```
Replace the latter with the your `OUT_DIR` if you override it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo "the your"

Comment on lines +72 to +73
export ANDROID_BUILD_TOP=/path/to/your/AOSP/sources/root
export ANDROID_PRODUCT_OUT="${ANDROID_BUILD_TOP}/out/target/product/your_target"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't define these variables yourself, but let the android build system define them for you by running lunch $MY_BUILD_TARGET


<br>

To automatically fetch the [required images](https://cs.android.com/android/platform/superproject/+/master:device/google/cuttlefish/required_images) from your AOSP root and create an instance, please run:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We typically use "fetch" when referring to images built in a build server remotely. For this case, please rewrite it as "To create an instance using the [build artifacts](link here) from your local AOSP repo, please run"

Added expected result output for successful build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants