|
|
@@ -48,25 +48,27 @@ me fix it because I was found out!" message.
|
|
|
## Getting Started ##
|
|
|
---------------
|
|
|
|
|
|
-To get started with OMNI sources to build TWRP, you'll need to get familiar
|
|
|
+To get started with AOSP sources to build TWRP, you'll need to get familiar
|
|
|
with [Git and Repo](https://source.android.com/source/using-repo.html).
|
|
|
|
|
|
-To initialize your local repository using the OMNIROM trees to build TWRP, use a command like this:
|
|
|
+To initialize your local repository using the AOSP trees to build TWRP, use a command like this:
|
|
|
|
|
|
repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
|
|
|
|
|
|
To initialize a shallow clone, which will save even more space, use a command like this:
|
|
|
|
|
|
- repo init --depth=1 --partial-clone --clone-filter=blob:limit=10M -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
|
|
|
+ repo init --depth=1 -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11
|
|
|
|
|
|
Then to sync up:
|
|
|
|
|
|
repo sync
|
|
|
|
|
|
+NOTE: Device makefile in the device tree and dependencies file should use the "twrp" prefix.
|
|
|
+
|
|
|
Then to build for a device with recovery partition:
|
|
|
|
|
|
- cd <source-dir>; export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch omni_<device>-eng; mka recoveryimage
|
|
|
+ cd <source-dir>; export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch twrp_<device>-eng; mka recoveryimage
|
|
|
|
|
|
Then to build for a device without recovery partition:
|
|
|
|
|
|
- cd <source-dir>; export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch omni_<device>-eng; mka bootimage
|
|
|
+ cd <source-dir>; export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch twrp_<device>-eng; mka bootimage
|