Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae6df9e0 authored by Steve Kondik's avatar Steve Kondik
Browse files

build: Add cafremote command to envsetup

 * So lazy!

Change-Id: I99a988180abb4fb486d4ebbb842bb9eda03bf1bc
parent 9c384333
Loading
Loading
Loading
Loading
+19 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
- cmgerrit: A Git wrapper that fetches/pushes patch from/to CM Gerrit Review.
- cmgerrit: A Git wrapper that fetches/pushes patch from/to CM Gerrit Review.
- cmrebase: Rebase a Gerrit change and push it again.
- cmrebase: Rebase a Gerrit change and push it again.
- aospremote: Add git remote for matching AOSP repository.
- aospremote: Add git remote for matching AOSP repository.
- cafremote: Add git remote for matching CodeAurora repository.
- mka:      Builds using SCHED_BATCH on all processors.
- mka:      Builds using SCHED_BATCH on all processors.
- mkap:     Builds the module(s) using mka and pushes them to the device.
- mkap:     Builds the module(s) using mka and pushes them to the device.
- cmka:     Cleans and builds using mka.
- cmka:     Cleans and builds using mka.
@@ -1449,6 +1450,24 @@ function aospremote()
}
}
export -f aospremote
export -f aospremote


function cafremote()
{
    git remote rm caf 2> /dev/null
    if [ ! -d .git ]
    then
        echo .git directory not found. Please run this from the root directory of the Android repository you wish to set up.
    fi
    PROJECT=`pwd | sed s#$ANDROID_BUILD_TOP/##g`
    if (echo $PROJECT | grep -qv "^device")
    then
        PFX="platform/"
    fi
    git remote add caf git://codeaurora.org/$PFX$PROJECT
    echo "Remote 'caf' created"
}
export -f cafremote


function installboot()
function installboot()
{
{
    if [ ! -e "$OUT/recovery/root/etc/recovery.fstab" ];
    if [ ! -e "$OUT/recovery/root/etc/recovery.fstab" ];