Skip to content

Commit

Permalink
Add support for providing a local manifest git path
Browse files Browse the repository at this point in the history
  • Loading branch information
monthadar committed Mar 13, 2019
1 parent 0906ec1 commit dded3fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -117,6 +117,8 @@ Here is a rundown of all the variables that you can set.
| **`BASE_DIR`** | Directory where host volume with LineageOS was mounted | *optional* | `/home/$USER` |
| **`LINEAGEOS_REPO`** | LineageOS repository | *optional* | `https://github.com/LineageOS/android.git` |
| **`LINEAGEOS_BRANCH`** | LineageOS Branch. | *optional* | `cm-14.1` |
| **`LINEAGEOS_LOCAL_MANIFEST_REPO`** | LineageOS local manifest repository. | *optional* | |
| **`LINEAGEOS_LOCAL_MANIFEST_BRANCH`** | LineageOS local manifest branch. | *optional* | |
| **`PROPRIETARY_BLOBS_REPO`** | Repo with the [device's proprietary blobs](https://wiki.lineageos.org/devices/klte/build#extract-proprietary-blobs). <br>*Example*: `https://github.com/TheMuppets/proprietary_vendor_samsung` |  *optional* | |
| **`PROPRIETARY_BLOBS_DIR`** | Directory to where the repo with the device's blobs will be cloned to. <br>*Example*: `$BASE_DIR/vendor/samsung` | *optional* | |
| **`USE_CCACHE`** | Turn on caching to speed up build (see [more](https://wiki.lineageos.org/devices/klte/build#turn-on-caching-to-speed-up-build)) | *optional* | `1` |
Expand Down
4 changes: 4 additions & 0 deletions default.env
Expand Up @@ -14,6 +14,10 @@ BASE_DIR=/home/$USER
LINEAGEOS_REPO=https://github.com/LineageOS/android.git
LINEAGEOS_BRANCH=cm-14.1

# Repo and branch for local manifest (if defined)
LINEAGEOS_LOCAL_MANIFEST_REPO=
LINEAGEOS_LOCAL_MANIFEST_BRANCH=

# All devices listed here
# https://wiki.lineageos.org/devices/
DEVICE_CODENAME=
Expand Down
7 changes: 7 additions & 0 deletions lineageos
Expand Up @@ -116,6 +116,13 @@ function init {
echo "[INFO] Initializing repository."
# forces yes to the anoying color output prompt
yes | repo init -u $LINEAGEOS_REPO -b $LINEAGEOS_BRANCH

# Update tree with the local manifest (if provided)
if [[ ! -z $LINEAGEOS_LOCAL_MANIFEST_REPO ]]; then
echo "[INFO] Updating Lineage with local manifest repositories."
git clone $LINEAGEOS_LOCAL_MANIFEST_REPO .repo/local_manifests -b $LINEAGEOS_LOCAL_MANIFEST_BRANCH
fi

# download repo
repo sync -c -j $(nproc --all)

Expand Down

0 comments on commit dded3fb

Please sign in to comment.