Updated Building With Android Build System (markdown)
@@ -1 +1,39 @@
|
|||||||
soon!
|
This guide is for integrating the [PMT Renovated](https://github.com/ShawkTeam/pmt-renovated) project into the Android build system.
|
||||||
|
|
||||||
|
## 1. Downloading or Cloning the Source
|
||||||
|
|
||||||
|
You can add the project in two ways:
|
||||||
|
|
||||||
|
- **Place in external directory:**
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/ShawkTeam/pmt-renovated external/pmt
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Place in the device tree:**
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/ShawkTeam/pmt-renovated device/<vendor>/<device>/pmt
|
||||||
|
```
|
||||||
|
If added to the device tree, add the following line in your **device.mk**:
|
||||||
|
```make
|
||||||
|
PRODUCT_SOONG_NAMESPACES += $(DEVICE_PATH)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2. Including in Recovery
|
||||||
|
|
||||||
|
To include the project in the recovery image, add the following to `device.mk`:
|
||||||
|
|
||||||
|
```make
|
||||||
|
PRODUCT_PACKAGES += pmt.recovery
|
||||||
|
```
|
||||||
|
|
||||||
|
## 3. Including in Normal ROM or System Image
|
||||||
|
|
||||||
|
To include the project in the normal ROM or system image, add the following to `device.mk`:
|
||||||
|
|
||||||
|
```make
|
||||||
|
PRODUCT_PACKAGES += pmt
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Now, the PMT Renovated project will be part of your selected build target.
|
||||||
|
|||||||
Reference in New Issue
Block a user