Skip to content

Commit

Permalink
Cleanup Android
Browse files Browse the repository at this point in the history
  • Loading branch information
nutcasev15 committed Oct 14, 2020
1 parent 95bf087 commit bf4afe1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 100 deletions.
6 changes: 3 additions & 3 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Custom-TC
This branch contains the configurations required to build TCs.
This is a private-ish branch.
# Misc
This repo contains various random code, scripts and snippets.
This is a private-ish repo.
92 changes: 4 additions & 88 deletions bashrcbck
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -115,99 +115,15 @@ if ! shopt -oq posix; then
. /etc/bash_completion
fi
fi
if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then source /etc/profile.d/vte.sh; fi # Ubuntu Budgie END

# Custom Commands
ccache -F 0 && ccache -M 15
export USE_CCACHE=1
export CCACHE_DIR=~/.ccache
export I_WANT_A_QUAIL_STAR=true
export USE_NINJA=false
export CUSTOM_HOME="/mnt/d/Pixel/Dev/projects"
export LC_ALL=C
export ANDROID_JACK_VM_ARGS="-Xmx4608m -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
export SERVER_NB_COMPILE=4
export ARCH=x86_64
export CROSS_COMPILE_I=x86_64-linux-
export CROSS_COMPILE=$CROSS_COMPILE_I
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=/usr/lib/ccache:~/Stuff/TC/bin:$JAVA_HOME/bin:$PATH
source ~/Stuff/guides/git_wrapper
export PATH=~/bin:$PATH
source $CUSTOM_HOME/Misc/git_wrapper
cd $CUSTOM_HOME
history -wc
rm -f ~/.bash_history
eval "$(ssh-agent -s)"

# Custom Functions
build_rom() {
if [[ -z "$1" ]]
then
printf "\nNo Target Device\n\n"
else
rm -rf out
if [[ "$(ls ~ | grep -qc "ftp")" == "0" ]]
then
mkdir ~/ftp
fi
while true
do
if [[ -z "$1" ]]
then
break
else
export D=$1
. build/envsetup.sh
breakfast $D
mka bacon -j24
mv out/target/product/$D/lineage*UNOFFICIAL*.zip ~/ftp
make clean
./prebuilts/sdk/tools/jack-admin stop-server
unset D
shift 1
fi
done
fi
return
}

build_IAZ() {
if [[ -z "$1" ]]
then
printf "\nNo Target Device For Apps\n\n"
else
rm -rf out
mkdir out
echo 1 > out/syncsave
if [[ "$(ls ~ | grep -qc "ftp")" == "0" ]]
then
mkdir ~/ftp
fi
. build/envsetup.sh
breakfast $1
./tools/IAZ/IAZ
./tools/IAZ/IAZ MLA
./prebuilts/sdk/tools/jack-admin stop-server
fi
return
}

upload_rom() {
if [[ "$(ls ~ | grep -qc "ftp")" != "0" ]]
then
export CUR=$PWD
mkdir -p ~/ftp
cd ~/ftp
if [[ -z "$1" ]]
then
mv ~/*.zip ./
wput ftp://nutcasev15:[email protected] *
fi
if [[ "$1" == "--clean" ]]
then
rm -rf *.zip
fi
cd $CUR
unset CUR
fi
return
}

clear
12 changes: 3 additions & 9 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
# Important Commands to execute:
# a).bashrc setup
# b) don't forget to install amd64 versions of 32 bit libs
#Then do these:
# Then do these:
#
#Build prerequisites:
# Setup CLI Software:
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install git subversion libmpc-dev libmpfr-dev libgmp-dev python-dev texinfo libisl-dev repo \
automake perl git gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev libtool autogen pigz \
lib32ncurses5-dev x11proto-core-dev libx11-dev ccache liblz4-tool \
libgl1-mesa-dev libxml2-utils xsltproc unzip openjdk-8-jre openjdk-8-jdk openjdk-8-jre-headless \
openjdk-8-jdk-headless pigz gdb pngcrush schedtool squashfs-tools readline-common lib32z1-dev \
android-headers yasm
sudo apt-get -y install git python-dev gnupg zip curl unzip pigz libxml2-utils
if [[ -e bashrcbck ]];
then
echo "Setting .bashrc"
Expand Down

0 comments on commit bf4afe1

Please sign in to comment.