diff options
Diffstat (limited to 'old-sdk-12.0.0_r19')
| -rw-r--r-- | old-sdk-12.0.0_r19/README.md | 42 | ||||
| -rwxr-xr-x | old-sdk-12.0.0_r19/build.sh | 33 | ||||
| -rwxr-xr-x | old-sdk-12.0.0_r19/dependencies.sh | 28 | ||||
| -rwxr-xr-x | old-sdk-12.0.0_r19/download.sh | 14 | ||||
| -rwxr-xr-x | old-sdk-12.0.0_r19/patch.sh | 35 |
5 files changed, 0 insertions, 152 deletions
diff --git a/old-sdk-12.0.0_r19/README.md b/old-sdk-12.0.0_r19/README.md deleted file mode 100644 index cf6dd8e..0000000 --- a/old-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/old-sdk-12.0.0_r19/build.sh b/old-sdk-12.0.0_r19/build.sh deleted file mode 100755 index 5a370e7..0000000 --- a/old-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/old-sdk-12.0.0_r19/dependencies.sh b/old-sdk-12.0.0_r19/dependencies.sh deleted file mode 100755 index 2d2d1d8..0000000 --- a/old-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/old-sdk-12.0.0_r19/download.sh b/old-sdk-12.0.0_r19/download.sh deleted file mode 100755 index 422d3fb..0000000 --- a/old-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/old-sdk-12.0.0_r19/patch.sh b/old-sdk-12.0.0_r19/patch.sh deleted file mode 100755 index d16b2d5..0000000 --- a/old-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 - - |
