• Checking Out a Branch
  • Android Platform Developer's Guide




    Download 1.28 Mb.
    bet10/95
    Sana22.12.2019
    Hajmi1.28 Mb.
    #4580
    1   ...   6   7   8   9   10   11   12   13   ...   95

    Building the Android Kernel


    This section describes how to build Android's default kernel. Once you are comfortable with a generic build, then you can begin to modify Android drivers for your own target device.

    To build the kernel base, switch to the device directory (/home/joe/android/device) in order to establish variables and run:

    % . build/envsetup.sh

    % partner_setup generic

    Then switch to the kernel directory /home/joe/android/kernel.

    Checking Out a Branch


    The default branch is always android. To check out a different branch, execute the following:

    % git checkout --track -b android-mydevice origin/android-mydevice

    //Branch android-mydevice set up to track remote branch

    % refs/remotes/origin/android-mydevice.

    //Switched to a new branch "android-mydevice"

    To simplify code management, give your local branch the same name as the remote branch it is tracking (as illustrated in the snippet above). Switch between branches by executing % git checkout .



    Download 1.28 Mb.
    1   ...   6   7   8   9   10   11   12   13   ...   95




    Download 1.28 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Android Platform Developer's Guide

    Download 1.28 Mb.