Last active
February 1, 2019 20:44
-
-
Save Thespartann/3b6e3d0725f5e5386755fb8b25329f17 to your computer and use it in GitHub Desktop.
Import of rom.sh, adapted for whyred :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script for building AOSDP Pie for Whyred | |
sudo apt update | |
sudo apt upgrade -y | |
# Install tools required for building | |
sudo apt-get install openjdk-8-jdk -y | |
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip -y | |
sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev -y | |
sudo apt install ninja-build python -y | |
# Android repo tool | |
mkdir -p ~/bin | |
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo | |
chmod a+x ~/bin/repo | |
export PATH=~/bin:$PATH | |
# Config git | |
git config --global user.email "danilastefan69@yahoo.ro" | |
git config --global user.name "Thespartann" | |
# Create Rom folder | |
mkdir AOSDP && cd AOSDP | |
# Download Rom source | |
repo init -u git://github.com/AOSDP/manifest -b 9.0 | |
repo sync -f --force-sync --no-tags --no-clone-bundle -j$(nproc --all) --optimized-fetch --prune | |
# Download the device files | |
git clone https://github.com/AOSDP-Devices/android_device_xiaomi_whyred -b 9.0 device/xiaomi/whyred | |
git clone https://github.com/AOSDP-Devices/android_kernel_xiaomi_whyred -b 9.0 kernel/xiaomi/whyred | |
git clone https://github.com/GuaiYiHu/android_vendor_xiaomi_whyred -b mkp vendor/xiaomi/whyred | |
# Add Wireguard | |
git clone https://git.zx2c4.com/android_kernel_wireguard -b master kernel/wireguard | |
# Initialize build environment | |
. build/envsetup.sh | |
# Start building | |
lunch aosdp_whyred-userdebug | |
mka dark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment