Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup: android_build_env: Support Debain 12 #198

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions setup/android_build_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@
# Script to setup an AOSP Build environment on Ubuntu and Linux Mint

LATEST_MAKE_VERSION="4.3"
UBUNTU_16_PACKAGES="libesd0-dev"
UBUNTU_20_PACKAGES="libncurses5 curl python-is-python3"
DEBIAN_10_PACKAGES="libncurses5"
DEBIAN_11_PACKAGES="libncurses5"
UBUNTU_16_PACKAGES="adb fastboot libesd0-dev python2.7 python-all-dev lsb-core"
UBUNTU_20_PACKAGES="adb fastboot libncurses5 curl python-is-python3 python2.7 python-all-dev lsb-core"
DEBIAN_10_PACKAGES="libncurses5 python2.7 python-all-dev lsb-core google-android-platform-tools-installer"
DEBIAN_11_PACKAGES="libncurses5 python2.7 python-all-dev lsb-core google-android-platform-tools-installer"
DEBIAN_12_PACKAGES="libncurses5 python-is-python3 lsb-base google-android-platform-tools-installer"
PACKAGES=""

sudo apt install software-properties-common -y
sudo apt update

# Install lsb-core packages
sudo apt install lsb-core -y

LSB_RELEASE="$(lsb_release -d | cut -d ':' -f 2 | sed -e 's/^[[:space:]]*//')"

if [[ ${LSB_RELEASE} =~ "Mint 18" || ${LSB_RELEASE} =~ "Ubuntu 16" ]]; then
Expand All @@ -29,18 +27,20 @@ elif [[ ${LSB_RELEASE} =~ "Debian GNU/Linux 10" ]]; then
PACKAGES="${DEBIAN_10_PACKAGES}"
elif [[ ${LSB_RELEASE} =~ "Debian GNU/Linux 11" ]]; then
PACKAGES="${DEBIAN_11_PACKAGES}"
elif [[ ${LSB_RELEASE} =~ "Debian GNU/Linux 12" ]]; then
PACKAGES="${DEBIAN_12_PACKAGES}"
fi

sudo DEBIAN_FRONTEND=noninteractive \
apt install \
adb autoconf automake axel bc bison build-essential \
ccache clang cmake curl expat fastboot flex g++ \
autoconf automake axel bc bison build-essential \
ccache clang cmake curl expat flex g++ \
g++-multilib gawk gcc gcc-multilib git git-lfs gnupg gperf \
htop imagemagick lib32ncurses5-dev lib32z1-dev libtinfo5 libc6-dev libcap-dev \
libexpat1-dev libgmp-dev '^liblz4-.*' '^liblzma.*' libmpc-dev libmpfr-dev libncurses5-dev \
libsdl1.2-dev libssl-dev libtool libxml2 libxml2-utils '^lzma.*' lzop \
maven ncftp ncurses-dev patch patchelf pkg-config pngcrush \
pngquant python2.7 python-all-dev re2c schedtool squashfs-tools subversion \
pngquant re2c schedtool squashfs-tools subversion \
texinfo unzip w3m xsltproc zip zlib1g-dev lzip \
libxml-simple-perl libswitch-perl apt-utils \
${PACKAGES} -y
Expand Down
Loading