# Build

AOSP is build using fragmented `Android.bp` files.

Each module will contain one `Android.bp` file, Soong will build all the dependencies linked to one another.

Here are some of the Android soong build commands:

* `m` - Builds the whole source code tree.
* `mma` - Builds all of the modules in the current directory, and their dependencies.
* `mmma` - Builds all of the modules in the supplied directories, and their dependencies.
* `croot` - cd to the top of the tree.
* `clean` - Deletes all of the output and intermediate files for this configuration.
* `soong_ui` - Starts the Soong UI, which allows you to interactively build and debug your Android project.
* `soong_build` - Builds your Android project using the Soong build system.

Mostly, we need 2 different type of `Android.bp` configurations:

1.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.tejpratapsingh.com/_/android-tips/aosp/build.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
