Commit 0fc5b244 authored by beuc's avatar beuc

SDK-9.0.0: clarify build; bump to r21

parent fadc7ef2
#!/bin/bash -ex
~/bin/repo init --quiet -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r18
VERSION='9.0.0_r21'
BUILD_VARIANT='user'
~/bin/repo init --quiet -u https://android.googlesource.com/platform/manifest -b android-$VERSION
~/bin/repo sync --quiet --current-branch -j4
# Still needed?
export USER=$(whoami)
# https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt
export BUILD_NUMBER="${BUILD_VARIANT}.${VERSION}"
# https://source.android.com/setup/build/building#initialize
. build/envsetup.sh
# https://source.android.com/setup/build/building#choose-a-target
lunch sdk-user
lunch sdk-${BUILD_VARIANT}
# https://source.android.com/setup/build/building#build-the-code
make sdk -j$(nproc) showcommands
make win_sdk -j$(nproc) showcommands
# Can't build sdk and win_sdk on the same 'make':
# build/core/main.mk:392: *** The 'sdk' target may not be specified with any other targets. Stop.
# dist: https://groups.google.com/forum/?fromgroups=#!topic/android-building/Y0xduZPWtUs
make sdk -j$(nproc) showcommands dist
make win_sdk -j$(nproc) showcommands dist
ls -lh \
out/host/linux-x86/sdk/sdk/android-sdk_eng.android_linux-x86.zip \
out/host/windows/sdk/sdk/android-sdk_eng.android_windows.zip
out/host/linux-x86/sdk/sdk/android-sdk_${BUILD_NUMBER}_linux-x86.zip \
out/dist/android-sdk_${BUILD_NUMBER}_linux-x86.zip \
out/host/windows/sdk/sdk/android-sdk_${BUILD_NUMBER}_windows.zip \
out/dist/android-sdk_${BUILD_NUMBER}_windows.zip
# useful?
# out/target/product/generic/sdk-symbols-eng.android.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment