From d6990423d2ce2264042416a9aaf09d2d9cf8572e Mon Sep 17 00:00:00 2001 From: raddup <44987943+raddup@users.noreply.github.com> Date: Sun, 20 Feb 2022 05:47:41 -0500 Subject: [PATCH] more explanations on build instructions (#117) --- android-builder-docker/README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/android-builder-docker/README.md b/android-builder-docker/README.md index 96bc022..7dc1ea8 100644 --- a/android-builder-docker/README.md +++ b/android-builder-docker/README.md @@ -1,5 +1,11 @@ # Build ReDroid with docker +### Hardware requirements :fa-folder-open-o: + +- At least 250GB of free disk space to check out the code and an extra 150 GB to build it. If you conduct multiple builds, you need additional space. +- At least 16 GB of available RAM is required, but Google recommends 64 GB. + + ## Sync Code ReDroid manifest include several branches / tags: - `redroid-12.0.0` / `refs/tags/redroid-12.0.0_rxxxxxx` @@ -14,18 +20,37 @@ ReDroid manifest include several branches / tags: mkdir ~/redroid && cd ~/redroid repo init -u https://github.com/remote-android/platform_manifests.git -b --depth=1 repo sync -c --no-tags + +#### If repo is not foud + +sudo apt-get install repo + + +# if is not working go manually +mkdir -p ~/.bin +PATH="${HOME}/.bin:${PATH}" +curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo +chmod a+rx ~/.bin/repo + +#/usr/bin/env: ‘python’: No such file or directory +#python3 need to be installed and added to path, for unbuntu 20.04 you can go away with this +sudo apt-get install python-is-python3 ``` + + + ## Build ```bash # create builder docker image (ubuntu 20.04) # adjust apt.conf and source.list if needed +# if root delete (``N groupadd -g $groupid $userid ...```) docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t redroid-builder . # OR ubuntu 14.04 (old mesa3d release) docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t redroid-builder -f Dockerfile.1404 . -# start builder +# start docker run -it --rm --hostname redroid-builder --name redroid-builder -v :/src redroid-builder # *inside* builder container @@ -40,7 +65,8 @@ lunch redroid_x86_64-userdebug m -# create redroid docker image in *HOST* +# create redroid docker image in *HOST* (you need to exit the container) +# example path of "" - redroid/out/target/product/redroid_x86_64 cd sudo mount system.img system -o ro sudo mount vendor.img vendor -o ro @@ -93,3 +119,4 @@ project prebuilts/clang/host/linux-x86/ (*** NO BRANCH ***) -m clang-r353983c/lib64/clang/9.0.3/lib/linux/libclang_rt.scudo_minimal-x86_64-android.a ``` +#