Skip to content

Commit 064f526

Browse files
CyberJalagamtechyminati
authored andcommitted
env: import script
* Add script to install essential packages for compiling AOSP Change-Id: Ib1ed93797b4e97b6d24ab0cc34dcd0f5785f1fe7 Signed-off-by: CyberJalagam <rbinternationalnetwork@gmail.com>
1 parent 0879901 commit 064f526

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎env.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
# (c) CyberJalagam <jaishnavprasad@disroot.org>
4+
5+
import os
6+
import sys
7+
print ("==========================================")
8+
print (" Android ROM Environment setup ")
9+
print ("==========================================")
10+
n=input("Press Y to Continue, N to Exit: ")
11+
if (n == "Y") or (n == "y"):
12+
print("Installing essential packages")
13+
os.system("sudo apt-get instal adb autoconf automake axel bc bison build-essential ccache clang cmake expat fastboot flex g++ g++-multilib gawk gcc gcc-multilib git 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 texinfo unzip w3m xsltproc zip zlib1g-dev lzip libxml-simple-perl apt-utils -y")
14+
print("Installing repo")
15+
os.system('sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo')
16+
os.system('sudo chmod a+rx /usr/local/bin/repo')
17+
print("Build environment is complete!")
18+
else:
19+
print(" Thank you for using this script!, Run again if you wish to.")

0 commit comments

Comments
 (0)