manifest_pb/README.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2018-04-06 07:15:30 -07:00
Getting Started
======
2018-10-10 06:49:24 -07:00
To get started with PitchBlack Recovery, you'll need to get
familiar with [Git and Repo](https://source.android.com/source/using-repo.html).
2018-10-10 06:52:32 -07:00
To initialize your local repository using the minimal-manifest-twrp omni trees to build PBRP, use a command like this:
2018-04-01 22:22:43 -07:00
```bash
2018-10-10 06:51:02 -07:00
$ repo init -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b PBRP
2018-04-01 22:22:43 -07:00
```
2018-07-25 03:41:00 -07:00
For Initial Low RAM Devices or older MTK Devices:
2018-04-01 22:22:43 -07:00
```bash
2018-10-10 06:51:02 -07:00
$ repo init -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b twrp-6.0
2018-04-01 22:22:43 -07:00
```
2017-12-19 05:14:48 -08:00
To initialize a shallow clone, which will save even more space, use a command like this:
2018-04-01 22:22:43 -07:00
```bash
2018-10-10 06:51:02 -07:00
$ repo init --depth=1 -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b PBRP
2018-04-01 22:22:43 -07:00
```
2018-04-01 22:20:29 -07:00
For Initial Low RAM Devices:
2018-04-01 22:22:43 -07:00
```bash
2018-10-10 06:51:02 -07:00
$ repo init --depth=1 -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b twrp-6.0
2018-04-01 22:22:43 -07:00
```
Then to sync up:
2018-04-06 07:15:30 -07:00
```bash
2018-10-10 06:51:02 -07:00
$ repo sync
2018-04-06 07:15:30 -07:00
```
Then to build:
2018-04-06 07:15:30 -07:00
```bash
2018-10-10 06:49:24 -07:00
2018-10-10 06:51:02 -07:00
$ cd <source-dir>
2018-10-10 06:49:24 -07:00
2018-10-10 06:51:02 -07:00
$ export ALLOW_MISSING_DEPENDENCIES=true
2018-10-10 06:49:24 -07:00
2018-10-10 06:51:02 -07:00
$ . build/envsetup.sh
2018-10-10 06:49:24 -07:00
2018-10-10 06:51:02 -07:00
$ lunch omni_<device>-eng
2018-10-10 06:49:24 -07:00
2018-10-10 06:51:02 -07:00
$ mka recoveryimage
2018-04-06 07:15:30 -07:00
```