Skip to content

Instantly share code, notes, and snippets.

@dmitvitalii
Last active August 8, 2020 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitvitalii/f66d87b3b49729b7b07732c66aedbfce to your computer and use it in GitHub Desktop.
Save dmitvitalii/f66d87b3b49729b7b07732c66aedbfce to your computer and use it in GitHub Desktop.
Setup AOSP 7-10 build environment on Fedora 32
sudo dnf update -y
sudo dnf install -y zip curl flex bison gperf xz-lzma-compat \
glibc-devel.{x86_64,i686} zlib-devel.{x86_64,i686} \
ncurses-devel.i686 libX11-devel.i686 libstdc++.i686 \
readline-devel.i686 libXrender.i686 libXrandr.i686 \
perl-Digest-MD5-File python-markdown git schedtool \
mesa-libGL-devel.i686 pngcrush ncurses-compat-libs \
ImageMagick-devel.x86_64 ImageMagick-c++-devel.x86_64 \
gcc gcc-c++ \ # not needed for Android 8+ (TODO: make sure this is correct)
java-1.8.0-openjdk-devel # not needed for Android 10+
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
mkdir $HOME/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > $HOME/bin/repo && chmod +x $HOME/bin/repo
# Can't get the sources w/o settings these configs
git config --global user.email "your@email.address"
git config --global user.name "Your Name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment