Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # My Script :D
- # Prepare output customization commands
- red=$(tput setaf 1) # red
- grn=$(tput setaf 2) # green
- blu=$(tput setaf 4) # blue
- cya=$(tput setaf 6) # cyan
- txtbld=$(tput bold) # Bold
- bldred=${txtbld}$(tput setaf 1) # red
- bldgrn=${txtbld}$(tput setaf 2) # green
- bldblu=${txtbld}$(tput setaf 4) # blue
- bldcya=${txtbld}$(tput setaf 6) # cyan
- txtrst=$(tput sgr0) # Reset
- # Remove Roomservice
- rm -rf .repo/local_manifests/room*.xml
- # Repo Sync
- repo sync -j8
- # Import command line parameters
- ROM="$1"
- DEVICE="$2"
- export ROM=$ROM
- export DEVICE=$DEVICE
- echo -e "${bldred}Compiling Custom ROMs ($ROM) for $DEVICE ${txtrst}";
- echo -e "${bldgrn}Start time: $(date) ${txtrst}"
- # CCACHE
- export USE_CCACHE=1
- export CCACHE_DIR=/home/jenkins/vfs/drive_ccache
- prebuilts/misc/linux-x86/ccache/ccache -M 100G
- # Build
- . build/envsetup.sh
- lunch "$ROM"_$DEVICE-userdebug
- make bacon -j8
- mkdir /home/jenkins/vfs/user_common/builds/$ROM/
- cp out/target/product/$DEVICE/$ROM-*.zip /home/jenkins/vfs/user_common/builds/$ROM/
Advertisement
Add Comment
Please, Sign In to add comment