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