Mac OS x Download method for Android kernel

Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px"></span> in the previous log <span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px">, I summed up the methods you provide to download the Android source Code. Here is a brief summary of the kernel download method. </span></p></p><p><p>Here is the introduction: http://source.android.com/source/building-kernels.html#downloading-sources<span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px"> , download the kernel source code is relatively simple very much. I download it here altogether 1G More. In Terminal input:</span></p></p><p><p></p></p><pre code_snippet_id="425004" snippet_file_name="blog_20140712_1_3574410" name="code" class="plain"><pre code_snippet_id="425004" snippet_file_name="blog_20140712_1_3574410" name="code" class="plain">$ git clone https://android.googlesource.com/kernel/common.git</pre></pre><br><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px"><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px">If you do not specify a directory name, clone directly into the common directory. Into this directory. The LS command does not see any code, in fact it is very easy to enter:</span></span><br><p><p></p></p><p><p><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px"></span></p></p><pre code_snippet_id="425004" snippet_file_name="blog_20140712_2_5623751" name="code" class="plain"><pre code_snippet_id="425004" snippet_file_name="blog_20140712_2_5623751" name="code" class="plain">$ git branch-a</pre></pre><br><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px"><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px">can see the names of all branch, and the name of the branch now in Place. Let's pick a branch, like I'm typing here:</span></span><br><p><p></p></p><p><p></p></p><pre code_snippet_id="425004" snippet_file_name="blog_20140712_3_8338966" name="code" class="plain"><pre code_snippet_id="425004" snippet_file_name="blog_20140712_3_8338966" name="code" class="plain">$ git checkout-b android-2.6.39 origin/android-2.6.39</pre></pre><br><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px"><span style="color:rgb(55,55,55); font-family:‘Helvetica Neue‘,Helvetica,Arial,sans-serif; font-size:15px; line-height:24.375px">after the execution is Complete. We now have a lot of source code in the directory, and then enter the previous command, you can see the current under 2.6.39. In addition, If you need source code and kernel the same time to download, can refer to the Netizen in the last method of the Log:</span></span>http://blog.csdn.net/sakulafly/article/details/8466702<p><p></p></p> <p style="font-size:12px;"><p style="font-size:12px;">Copyright Notice: This article Bo master original Article. blog, not reproduced without Consent.</p></p> <p><p>Mac OS x Download method for Android kernel</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.