refine build instructions
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
# Build ReDroid with docker
|
||||
# Build redroid with docker
|
||||
|
||||
## Sync Code
|
||||
ReDroid manifest include several branches / snapshots:
|
||||
- `redroid-13.0.0`
|
||||
- `redroid-12.0.0`
|
||||
- `redroid-11.0.0`
|
||||
- `redroid-10.0.0`
|
||||
- `redroid-9.0.0`
|
||||
- `redroid-8.1.0`
|
||||
- `snapshots/XXX` in `snapshot` branch
|
||||
|
||||
```bash
|
||||
# fetch code
|
||||
mkdir ~/redroid && cd ~/redroid
|
||||
repo init -u https://github.com/remote-android/platform_manifests.git -b <REV> --depth=1
|
||||
|
||||
repo init -u https://github.com/remote-android/platform_manifests.git -b redroid-11.0.0 --depth=1 --git-lfs
|
||||
# check @remote-android/platform_manifests for supported branch / manifest
|
||||
|
||||
repo sync -c
|
||||
```
|
||||
|
||||
@@ -23,7 +16,7 @@ repo sync -c
|
||||
docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t redroid-builder .
|
||||
|
||||
# start builder
|
||||
docker run -it --rm --hostname redroid-builder --name redroid-builder -v <AOSP-SRC>:/src redroid-builder
|
||||
docker run -it --rm --hostname redroid-builder --name redroid-builder -v ~/redroid:/src redroid-builder
|
||||
|
||||
# *inside* builder container
|
||||
cd /src
|
||||
@@ -35,16 +28,20 @@ lunch redroid_x86_64-userdebug
|
||||
# redroid_x86_64_only-userdebug (64 bit only, redroid 12+)
|
||||
# redroid_arm64_only-userdebug (64 bit only, redroid 12+)
|
||||
|
||||
# start to build
|
||||
m
|
||||
|
||||
# create redroid docker image in *HOST*
|
||||
cd <BUILD-OUT-DIR>
|
||||
# out/target/product/redroid...
|
||||
|
||||
sudo mount system.img system -o ro
|
||||
sudo mount vendor.img vendor -o ro
|
||||
sudo tar --xattrs -c vendor -C system --exclude="vendor" . | docker import -c 'ENTRYPOINT ["/init", "qemu=1", "androidboot.hardware=redroid"]' - redroid
|
||||
sudo tar --xattrs -c vendor -C system --exclude="vendor" . | docker import -c 'ENTRYPOINT ["/init", "androidboot.hardware=redroid"]' - redroid
|
||||
sudo umount system vendor
|
||||
|
||||
# create rootfs only image for develop purpose
|
||||
tar --xattrs -c -C root . | docker import -c 'ENTRYPOINT ["/init", "qemu=1", "androidboot.hardware=redroid"]' - redroid-dev
|
||||
tar --xattrs -c -C root . | docker import -c 'ENTRYPOINT ["/init", "androidboot.hardware=redroid"]' - redroid-dev
|
||||
```
|
||||
|
||||
## Build with GApps
|
||||
|
||||
Reference in New Issue
Block a user