From 03c20751589d6e773a7228a9ca95a979fc31d524 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 30 Dec 2023 16:04:10 +0100 Subject: WIP Hack for efficiency prepend old to sdk, which have a new minor version --- old-sdk-12.0.0_r19/README.md | 42 ++++++++++++++++++++++++ old-sdk-12.0.0_r19/build.sh | 33 +++++++++++++++++++ old-sdk-12.0.0_r19/dependencies.sh | 28 ++++++++++++++++ old-sdk-12.0.0_r19/download.sh | 14 ++++++++ old-sdk-12.0.0_r19/patch.sh | 35 ++++++++++++++++++++ old-sdk-13.0.0_r10/README.md | 65 ++++++++++++++++++++++++++++++++++++++ old-sdk-13.0.0_r10/build.sh | 38 ++++++++++++++++++++++ old-sdk-13.0.0_r10/dependencies.sh | 28 ++++++++++++++++ old-sdk-13.0.0_r10/download.sh | 14 ++++++++ sdk-12.0.0_r19/README.md | 42 ------------------------ sdk-12.0.0_r19/build.sh | 33 ------------------- sdk-12.0.0_r19/dependencies.sh | 28 ---------------- sdk-12.0.0_r19/download.sh | 14 -------- sdk-12.0.0_r19/patch.sh | 35 -------------------- sdk-13.0.0_r10/README.md | 65 -------------------------------------- sdk-13.0.0_r10/build.sh | 38 ---------------------- sdk-13.0.0_r10/dependencies.sh | 28 ---------------- sdk-13.0.0_r10/download.sh | 14 -------- 18 files changed, 297 insertions(+), 297 deletions(-) create mode 100644 old-sdk-12.0.0_r19/README.md create mode 100755 old-sdk-12.0.0_r19/build.sh create mode 100755 old-sdk-12.0.0_r19/dependencies.sh create mode 100755 old-sdk-12.0.0_r19/download.sh create mode 100755 old-sdk-12.0.0_r19/patch.sh create mode 100644 old-sdk-13.0.0_r10/README.md create mode 100644 old-sdk-13.0.0_r10/build.sh create mode 100644 old-sdk-13.0.0_r10/dependencies.sh create mode 100644 old-sdk-13.0.0_r10/download.sh delete mode 100644 sdk-12.0.0_r19/README.md delete mode 100755 sdk-12.0.0_r19/build.sh delete mode 100755 sdk-12.0.0_r19/dependencies.sh delete mode 100755 sdk-12.0.0_r19/download.sh delete mode 100755 sdk-12.0.0_r19/patch.sh delete mode 100644 sdk-13.0.0_r10/README.md delete mode 100644 sdk-13.0.0_r10/build.sh delete mode 100644 sdk-13.0.0_r10/dependencies.sh delete mode 100644 sdk-13.0.0_r10/download.sh diff --git a/old-sdk-12.0.0_r19/README.md b/old-sdk-12.0.0_r19/README.md new file mode 100644 index 0000000..cf6dd8e --- /dev/null +++ b/old-sdk-12.0.0_r19/README.md @@ -0,0 +1,42 @@ +VERSION='12.0.0_r19' +==================== + +Notes +----- + +- patch.sh is necessary to fix outdated syntax in a py script file. Without that, the build will break at the very end. +- simultaneous builds of Windows and linux sdk may fail. Default is linux only. If desired, edit build.sh and change the settings. + +All commands need to be executed from the sdk folder! + +Build receipe +------------- + +Make all the .sh scripts in this directory executable: + + chmod +x *.sh + +Install dependencies (you will be asked for root password to install packages): + + ./dependencies.sh + +Download the source code: + + ./download.sh + +Apply patches to the source tree to make the build work: + + ./patch.sh + +Compile the sdk: + + ./build.sh + +When the build finishes sucessfully, you get a list of the important generated sdk files. + +Have fun! + +Footnote +-------- + +Microsoft Windows is a trademark of the Microsoft group of companies. Android is a trademark of Google LLC. diff --git a/old-sdk-12.0.0_r19/build.sh b/old-sdk-12.0.0_r19/build.sh new file mode 100755 index 0000000..5a370e7 --- /dev/null +++ b/old-sdk-12.0.0_r19/build.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Caution: VERSION needs to be identical in all scripts in this directory, +# otherwise the build will not work. +VERSION='12.0.0_r19' +BUILD_VARIANT='eng' +export USER=$(whoami) +export BUILD_NUMBER="${BUILD_VARIANT}.${VERSION}" +. build/envsetup.sh +lunch sdk-${BUILD_VARIANT} +make -j$(nproc) sdk dist sdk_repo +# make -j$(nproc) win_sdk dist sdk_repo + +# list the result files +# --------------------- +# +# optional, the windows sdk, disabled by default (see above) +# ls -lah /out/dist/android-sdk_${BUILD_NUMBER}_windows.zip + +# the sdk + +ls -lah out/dist/android-sdk_${BUILD_NUMBER}_linux-x86.zip + +# the parts of the sdk + +ls -lah out/dist/sdk-repo*.zip +ls -lah out/dist/sdk-symbols-${BUILD_NUMBER}.zip +ls -lah out/dist/repo*.xml + +mkdir ../artifacts/${VERSION} +mv out/dist ../artifacts/${VERSION}/ + +echo "Moved SDK to artifact folder" diff --git a/old-sdk-12.0.0_r19/dependencies.sh b/old-sdk-12.0.0_r19/dependencies.sh new file mode 100755 index 0000000..2d2d1d8 --- /dev/null +++ b/old-sdk-12.0.0_r19/dependencies.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Installs necessary packages. Some of them might be obsolete for new builds. +# + +# Notes: +# - the master branch of AOSP comes with a brebuilt version of OpenJDK, so +# no need to install it with apt. +# +# Notes about the repo tool: +# +# - The repo tool is available from debian repos. Although you may get warned +# that a new version of repo is available when starting sync later, this +# usually can be safely ignored. +# +# - should you really need the latest repo version of if your distro does +# not have it, you can get the repo tool from here: +# https://android.googlesource.com/tools/repo +# It is a single script filem, no compiling is necessary. +# +# - repo needs the python-is-python3 symlink package installed to work or a +# manual symlink that 'python' is 'python3'. Without it, repo will not +# work! + +sudo apt install git gnupg flex bison gperf build-essential zip curl \ +zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5-dev \ +libncurses5 libx11-dev lib32z1-dev libgl1-mesa-dev \ +libxml2-utils xsltproc unzip rsync python3 python-is-python3 tofrodos repo diff --git a/old-sdk-12.0.0_r19/download.sh b/old-sdk-12.0.0_r19/download.sh new file mode 100755 index 0000000..422d3fb --- /dev/null +++ b/old-sdk-12.0.0_r19/download.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# You can go to https://android.googlesource.com/platform/manifest/+refs and +# to check for the latest version/revision. +# +# Usually, different revisions (e.g._r19) work more or less out of the box +# without the need to change the build skripts. +# +# Caution: VERSION needs to be identical in all scripts in this directory, +# otherwise the build will not work. + +VERSION='12.0.0_r19' +repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto +repo sync --current-branch -j4 diff --git a/old-sdk-12.0.0_r19/patch.sh b/old-sdk-12.0.0_r19/patch.sh new file mode 100755 index 0000000..d16b2d5 --- /dev/null +++ b/old-sdk-12.0.0_r19/patch.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# need to patch a py script using outdated syntax not compatible with python3 + +if [ ! -f "development/build/tools/mk_sources_zip.py.bak" ]; then + cp development/build/tools/mk_sources_zip.py development/build/tools/mk_sources_zip.py.bak +fi + +sed -i '77 s/"""/ print/' development/build/tools/mk_sources_zip.py +sed -i '94 s/except /except (/' development/build/tools/mk_sources_zip.py +sed -i '94 s/:/):/' development/build/tools/mk_sources_zip.py + +sed -i '250 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '251 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '252 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '253 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '254 c\# removed' development/build/tools/mk_sources_zip.py + +sed -i '62 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '63 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '64 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '65 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '66 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '67 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '68 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '69 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '70 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '71 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '72 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '73 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '74 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '75 c\# removed' development/build/tools/mk_sources_zip.py +sed -i '76 c\# removed' development/build/tools/mk_sources_zip.py + + diff --git a/old-sdk-13.0.0_r10/README.md b/old-sdk-13.0.0_r10/README.md new file mode 100644 index 0000000..63d3356 --- /dev/null +++ b/old-sdk-13.0.0_r10/README.md @@ -0,0 +1,65 @@ +VERSION='13.0.0_r10' +==================== + +IMPORTANT +--------- +The Android(tm) 13 sdk (api level 33), contrary to previous versions, does NOT include +a system image anymore. + +You will notice a significantly reduced source tree, a smaller output sdk-zip-file +and will experience a much shorter build time. This is, because the build receipe +does not generate a system image. + +This is ok, because you do not really need it (unless you use a VM instead of a +real device) for development. + +But do not worry, you still can build it! But not from the sdk source tree! + +Simply follow the instructions here to create a system image: +https://source.android.com/docs/setup/create/gsi#building-gsis + +You need to pull a different source tree. + +For the most up-to-date Android 13, the branch to use is "android13-gsi". + +I have tested building it with the same build environent like for the sdk, and +it works without any issues! + + +Notes +----- + +- simultaneous builds of Windows and linux sdk may fail. Default is linux only. If desired, edit build.sh and change the settings. +- the build.sh differs significantly to previous versions, because building +conscrypt will run in multiple issues and result in (unrecoverable) errors unless +some additional modules are built from source. + +All commands need to be executed from the sdk folder! + +Build receipe +------------- + +Make all the .sh scripts in this directory executable: + + chmod +x *.sh + +Install dependencies (you will be asked for root password to install packages): + + ./dependencies.sh + +Download the source code: + + ./download.sh + +Compile the sdk: + + ./build.sh + +When the build finishes sucessfully, you get a list of the important generated sdk files. + +Have fun! + +Footnote +-------- + +Microsoft Windows is a trademark of the Microsoft group of companies. Android is a trademark of Google LLC. diff --git a/old-sdk-13.0.0_r10/build.sh b/old-sdk-13.0.0_r10/build.sh new file mode 100644 index 0000000..d2779cf --- /dev/null +++ b/old-sdk-13.0.0_r10/build.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Caution: VERSION needs to be identical in all scripts in this directory, +# otherwise the build will not work. +VERSION='13.0.0_r10' +BUILD_VARIANT='eng' +export USER=$(whoami) +export BUILD_NUMBER="${BUILD_VARIANT}.${VERSION}" +# needed, because otherwise conscrypt build will fail. ART and some other +# dependencies need to be built from source. +export ART_MODULE_BUILD_FROM_SOURCE=true +export MODULE_BUILD_FROM_SOURCE=true + +. build/envsetup.sh +lunch sdk-${BUILD_VARIANT} +make -j$(nproc) sdk dist sdk_repo +# make -j$(nproc) win_sdk dist sdk_repo + +# list the result files +# --------------------- +# +# optional, the windows sdk, disabled by default (see above) +# ls -lah /out/dist/android-sdk_${BUILD_NUMBER}_windows.zip + +# the sdk + +ls -lah out/dist/android-sdk_${BUILD_NUMBER}_linux-x86.zip + +# the parts of the sdk + +ls -lah out/dist/sdk-repo*.zip +ls -lah out/dist/sdk-symbols-${BUILD_NUMBER}.zip +ls -lah out/dist/repo*.xml + +mkdir ../artifacts/${VERSION} +mv out/dist ../artifacts/${VERSION}/ + +echo "Moved SDK to artifact folder" diff --git a/old-sdk-13.0.0_r10/dependencies.sh b/old-sdk-13.0.0_r10/dependencies.sh new file mode 100644 index 0000000..2d2d1d8 --- /dev/null +++ b/old-sdk-13.0.0_r10/dependencies.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Installs necessary packages. Some of them might be obsolete for new builds. +# + +# Notes: +# - the master branch of AOSP comes with a brebuilt version of OpenJDK, so +# no need to install it with apt. +# +# Notes about the repo tool: +# +# - The repo tool is available from debian repos. Although you may get warned +# that a new version of repo is available when starting sync later, this +# usually can be safely ignored. +# +# - should you really need the latest repo version of if your distro does +# not have it, you can get the repo tool from here: +# https://android.googlesource.com/tools/repo +# It is a single script filem, no compiling is necessary. +# +# - repo needs the python-is-python3 symlink package installed to work or a +# manual symlink that 'python' is 'python3'. Without it, repo will not +# work! + +sudo apt install git gnupg flex bison gperf build-essential zip curl \ +zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5-dev \ +libncurses5 libx11-dev lib32z1-dev libgl1-mesa-dev \ +libxml2-utils xsltproc unzip rsync python3 python-is-python3 tofrodos repo diff --git a/old-sdk-13.0.0_r10/download.sh b/old-sdk-13.0.0_r10/download.sh new file mode 100644 index 0000000..a49a8d9 --- /dev/null +++ b/old-sdk-13.0.0_r10/download.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# You can go to https://android.googlesource.com/platform/manifest/+refs and +# to check for the latest version/revision. +# +# Usually, different revisions (e.g._r19) work more or less out of the box +# without the need to change the build skripts. +# +# Caution: VERSION needs to be identical in all scripts in this directory, +# otherwise the build will not work. + +VERSION='13.0.0_r10' +repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto +repo sync --current-branch -j4 diff --git a/sdk-12.0.0_r19/README.md b/sdk-12.0.0_r19/README.md deleted file mode 100644 index cf6dd8e..0000000 --- a/sdk-12.0.0_r19/README.md +++ /dev/null @@ -1,42 +0,0 @@ -VERSION='12.0.0_r19' -==================== - -Notes ------ - -- patch.sh is necessary to fix outdated syntax in a py script file. Without that, the build will break at the very end. -- simultaneous builds of Windows and linux sdk may fail. Default is linux only. If desired, edit build.sh and change the settings. - -All commands need to be executed from the sdk folder! - -Build receipe -------------- - -Make all the .sh scripts in this directory executable: - - chmod +x *.sh - -Install dependencies (you will be asked for root password to install packages): - - ./dependencies.sh - -Download the source code: - - ./download.sh - -Apply patches to the source tree to make the build work: - - ./patch.sh - -Compile the sdk: - - ./build.sh - -When the build finishes sucessfully, you get a list of the important generated sdk files. - -Have fun! - -Footnote --------- - -Microsoft Windows is a trademark of the Microsoft group of companies. Android is a trademark of Google LLC. diff --git a/sdk-12.0.0_r19/build.sh b/sdk-12.0.0_r19/build.sh deleted file mode 100755 index 5a370e7..0000000 --- a/sdk-12.0.0_r19/build.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -# Caution: VERSION needs to be identical in all scripts in this directory, -# otherwise the build will not work. -VERSION='12.0.0_r19' -BUILD_VARIANT='eng' -export USER=$(whoami) -export BUILD_NUMBER="${BUILD_VARIANT}.${VERSION}" -. build/envsetup.sh -lunch sdk-${BUILD_VARIANT} -make -j$(nproc) sdk dist sdk_repo -# make -j$(nproc) win_sdk dist sdk_repo - -# list the result files -# --------------------- -# -# optional, the windows sdk, disabled by default (see above) -# ls -lah /out/dist/android-sdk_${BUILD_NUMBER}_windows.zip - -# the sdk - -ls -lah out/dist/android-sdk_${BUILD_NUMBER}_linux-x86.zip - -# the parts of the sdk - -ls -lah out/dist/sdk-repo*.zip -ls -lah out/dist/sdk-symbols-${BUILD_NUMBER}.zip -ls -lah out/dist/repo*.xml - -mkdir ../artifacts/${VERSION} -mv out/dist ../artifacts/${VERSION}/ - -echo "Moved SDK to artifact folder" diff --git a/sdk-12.0.0_r19/dependencies.sh b/sdk-12.0.0_r19/dependencies.sh deleted file mode 100755 index 2d2d1d8..0000000 --- a/sdk-12.0.0_r19/dependencies.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Installs necessary packages. Some of them might be obsolete for new builds. -# - -# Notes: -# - the master branch of AOSP comes with a brebuilt version of OpenJDK, so -# no need to install it with apt. -# -# Notes about the repo tool: -# -# - The repo tool is available from debian repos. Although you may get warned -# that a new version of repo is available when starting sync later, this -# usually can be safely ignored. -# -# - should you really need the latest repo version of if your distro does -# not have it, you can get the repo tool from here: -# https://android.googlesource.com/tools/repo -# It is a single script filem, no compiling is necessary. -# -# - repo needs the python-is-python3 symlink package installed to work or a -# manual symlink that 'python' is 'python3'. Without it, repo will not -# work! - -sudo apt install git gnupg flex bison gperf build-essential zip curl \ -zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5-dev \ -libncurses5 libx11-dev lib32z1-dev libgl1-mesa-dev \ -libxml2-utils xsltproc unzip rsync python3 python-is-python3 tofrodos repo diff --git a/sdk-12.0.0_r19/download.sh b/sdk-12.0.0_r19/download.sh deleted file mode 100755 index 422d3fb..0000000 --- a/sdk-12.0.0_r19/download.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# You can go to https://android.googlesource.com/platform/manifest/+refs and -# to check for the latest version/revision. -# -# Usually, different revisions (e.g._r19) work more or less out of the box -# without the need to change the build skripts. -# -# Caution: VERSION needs to be identical in all scripts in this directory, -# otherwise the build will not work. - -VERSION='12.0.0_r19' -repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto -repo sync --current-branch -j4 diff --git a/sdk-12.0.0_r19/patch.sh b/sdk-12.0.0_r19/patch.sh deleted file mode 100755 index d16b2d5..0000000 --- a/sdk-12.0.0_r19/patch.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# need to patch a py script using outdated syntax not compatible with python3 - -if [ ! -f "development/build/tools/mk_sources_zip.py.bak" ]; then - cp development/build/tools/mk_sources_zip.py development/build/tools/mk_sources_zip.py.bak -fi - -sed -i '77 s/"""/ print/' development/build/tools/mk_sources_zip.py -sed -i '94 s/except /except (/' development/build/tools/mk_sources_zip.py -sed -i '94 s/:/):/' development/build/tools/mk_sources_zip.py - -sed -i '250 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '251 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '252 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '253 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '254 c\# removed' development/build/tools/mk_sources_zip.py - -sed -i '62 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '63 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '64 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '65 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '66 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '67 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '68 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '69 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '70 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '71 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '72 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '73 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '74 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '75 c\# removed' development/build/tools/mk_sources_zip.py -sed -i '76 c\# removed' development/build/tools/mk_sources_zip.py - - diff --git a/sdk-13.0.0_r10/README.md b/sdk-13.0.0_r10/README.md deleted file mode 100644 index 63d3356..0000000 --- a/sdk-13.0.0_r10/README.md +++ /dev/null @@ -1,65 +0,0 @@ -VERSION='13.0.0_r10' -==================== - -IMPORTANT ---------- -The Android(tm) 13 sdk (api level 33), contrary to previous versions, does NOT include -a system image anymore. - -You will notice a significantly reduced source tree, a smaller output sdk-zip-file -and will experience a much shorter build time. This is, because the build receipe -does not generate a system image. - -This is ok, because you do not really need it (unless you use a VM instead of a -real device) for development. - -But do not worry, you still can build it! But not from the sdk source tree! - -Simply follow the instructions here to create a system image: -https://source.android.com/docs/setup/create/gsi#building-gsis - -You need to pull a different source tree. - -For the most up-to-date Android 13, the branch to use is "android13-gsi". - -I have tested building it with the same build environent like for the sdk, and -it works without any issues! - - -Notes ------ - -- simultaneous builds of Windows and linux sdk may fail. Default is linux only. If desired, edit build.sh and change the settings. -- the build.sh differs significantly to previous versions, because building -conscrypt will run in multiple issues and result in (unrecoverable) errors unless -some additional modules are built from source. - -All commands need to be executed from the sdk folder! - -Build receipe -------------- - -Make all the .sh scripts in this directory executable: - - chmod +x *.sh - -Install dependencies (you will be asked for root password to install packages): - - ./dependencies.sh - -Download the source code: - - ./download.sh - -Compile the sdk: - - ./build.sh - -When the build finishes sucessfully, you get a list of the important generated sdk files. - -Have fun! - -Footnote --------- - -Microsoft Windows is a trademark of the Microsoft group of companies. Android is a trademark of Google LLC. diff --git a/sdk-13.0.0_r10/build.sh b/sdk-13.0.0_r10/build.sh deleted file mode 100644 index d2779cf..0000000 --- a/sdk-13.0.0_r10/build.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -# Caution: VERSION needs to be identical in all scripts in this directory, -# otherwise the build will not work. -VERSION='13.0.0_r10' -BUILD_VARIANT='eng' -export USER=$(whoami) -export BUILD_NUMBER="${BUILD_VARIANT}.${VERSION}" -# needed, because otherwise conscrypt build will fail. ART and some other -# dependencies need to be built from source. -export ART_MODULE_BUILD_FROM_SOURCE=true -export MODULE_BUILD_FROM_SOURCE=true - -. build/envsetup.sh -lunch sdk-${BUILD_VARIANT} -make -j$(nproc) sdk dist sdk_repo -# make -j$(nproc) win_sdk dist sdk_repo - -# list the result files -# --------------------- -# -# optional, the windows sdk, disabled by default (see above) -# ls -lah /out/dist/android-sdk_${BUILD_NUMBER}_windows.zip - -# the sdk - -ls -lah out/dist/android-sdk_${BUILD_NUMBER}_linux-x86.zip - -# the parts of the sdk - -ls -lah out/dist/sdk-repo*.zip -ls -lah out/dist/sdk-symbols-${BUILD_NUMBER}.zip -ls -lah out/dist/repo*.xml - -mkdir ../artifacts/${VERSION} -mv out/dist ../artifacts/${VERSION}/ - -echo "Moved SDK to artifact folder" diff --git a/sdk-13.0.0_r10/dependencies.sh b/sdk-13.0.0_r10/dependencies.sh deleted file mode 100644 index 2d2d1d8..0000000 --- a/sdk-13.0.0_r10/dependencies.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Installs necessary packages. Some of them might be obsolete for new builds. -# - -# Notes: -# - the master branch of AOSP comes with a brebuilt version of OpenJDK, so -# no need to install it with apt. -# -# Notes about the repo tool: -# -# - The repo tool is available from debian repos. Although you may get warned -# that a new version of repo is available when starting sync later, this -# usually can be safely ignored. -# -# - should you really need the latest repo version of if your distro does -# not have it, you can get the repo tool from here: -# https://android.googlesource.com/tools/repo -# It is a single script filem, no compiling is necessary. -# -# - repo needs the python-is-python3 symlink package installed to work or a -# manual symlink that 'python' is 'python3'. Without it, repo will not -# work! - -sudo apt install git gnupg flex bison gperf build-essential zip curl \ -zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5-dev \ -libncurses5 libx11-dev lib32z1-dev libgl1-mesa-dev \ -libxml2-utils xsltproc unzip rsync python3 python-is-python3 tofrodos repo diff --git a/sdk-13.0.0_r10/download.sh b/sdk-13.0.0_r10/download.sh deleted file mode 100644 index a49a8d9..0000000 --- a/sdk-13.0.0_r10/download.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# You can go to https://android.googlesource.com/platform/manifest/+refs and -# to check for the latest version/revision. -# -# Usually, different revisions (e.g._r19) work more or less out of the box -# without the need to change the build skripts. -# -# Caution: VERSION needs to be identical in all scripts in this directory, -# otherwise the build will not work. - -VERSION='13.0.0_r10' -repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto -repo sync --current-branch -j4 -- cgit v1.2.3