update build doc

This commit is contained in:
Ziyang Zhou
2021-11-16 02:36:40 +08:00
parent 5cbf2fd6d5
commit 28c9034a3e

View File

@@ -2,18 +2,16 @@
## Sync Code
ReDroid manifest include several branches:
- `redroid12-gsi`, `redroid-s-beta-3`
- `redroid11-gsi`, `redroid-11.0.0`
- `redroid10-gsi`, `redroid-10.0.0`
- `redroid-9.0.0`, `redroid9-gsi` (experimental)
- `redroid-12.0.0`
- `redroid-11.0.0`
- `redroid-10.0.0`
- `redroid-9.0.0`
- `redroid-8.1.0`
branch with `-gsi` is recommended (fully treble / VNDK enforced).
```bash
# fetch code
mkdir aosp && cd aosp
mkdir ~/redroid && cd ~/redroid
repo init -u https://github.com/remote-android/platform_manifests.git -b <BRANCH> --depth=1
repo sync -c --no-tags
```
@@ -24,12 +22,19 @@ repo sync -c --no-tags
# adjust apt.conf and source.list if needed
docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-trusty .
# start builder
docker run -it -v ~/redroid:/src android-build-trusty
# *inside* builder container
cd /src
. build/envsetup.sh
lunch redroid_x86_64-userdebug
# or lunch redroid_arm64-userdebug
# redroid_arm64-userdebug
# redroid_x86_64_only-userdebug (64 bit only, redroid 12)
# redroid_arm64_only-userdebug (64 bit only, redroid 12)
m
# create redroid docker image in *HOST*