Git Product home page Git Product logo

build_scripts's Introduction

Get started with scripts

These scripts were made to help with building various Android ROMs and Recoveries. I use these on my build server/personal machine so they are tailored specifically to me but you are free to take these and modify them for your own needs. This repository contains some useful bash scripts for fully automated building ROMs or TWRP recovery for your device. These bash based scripts are easy to use and they just needs to be executed in terminal from the root folder of source you want to build from (a ROM or TWRP)

  • Scripts in this repository

    • lpad-twrp.sh - builds TWRP for all Liquid Porting & Development devices using android-5.1 branch
    • build-rom.sh - builds a ROM for one particular device
    • build-twrp.sh | twrp-all.sh - builds TWRP for one particular device
    • twrp-devices.sh - set of device configurations for building TWRP for all our devices
  • Misc. scripts

    • megatools-installer.sh - installs MEGA for uploading builds
    • build-environment.sh - sets up the Linux Ubuntu 16.04 (or later) build environment

Preparing scripts

Now we'll clone them and cd to them by running these commands:

git clone https://github.com/hejsekvojtech/build_scripts.git
cd build_scripts

And then just copy any script you want to the root of a ROM or TWRP source you'll be building from.

Starting scripts

Once your choosen and configured script is placed into the root of required source, execute it by:

bash <script name>.sh <option>

Examples

bash build-rom.sh <device name> --log --clean --ccache
bash build-twrp.sh <device name> --log --clean
bash build-environment.sh <github username> <your email>

Options

  • --log (saves a log file of the current build process) | --nolog (does the opposite)
  • --ccache (enables CCache to speed up building) | --noccache (does the opposite)
  • <device name> (tells the compiler which device we want to build for)
  • --clean (performs a clean build) | --noclean (does the opposite)
  • <github username> (your GitHub username)
  • <your email> (E-mail you used for registering to GitHub)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.