Use repo synchronization code according to different manifest.xml

Source: Internet
Author: User
Tags git clone

With repo synchronization code, you can use a different manifest.xml file replacement to achieve synchronization of different code purposes, here's a note first.


1. First, create a new directory to store the source code and enter:

$ mkdir SRC

$ CD SRC


2. Download the repo tool from the server:

$ git clone git://192.168.1.1/tools/repo.git

At this point, there is a repo folder in the directory, there are repo executable files


3. Initialize the. Repo folder

$./repo/repo Init-u Git://192.168.1.1/branch/manifest.git

At this point, the directory under the hidden. Repo folder, in the. Repo folder, there are several files and directories:

Drwxr-xr-x 3 Ritter Ritter 4096 2012-07-23 15:59 manifests
Drwxr-xr-x 8 Ritter Ritter 4096 2012-07-23 15:34 Manifests.git
lrwxrwxrwx 1 Ritter Ritter 2012-07-23 16:01 manifest.xml-> manifests/default.xml
Drwxr-xr-x 7 Ritter Ritter 4096 2012-07-23 15:38 Repo

Where manifest.xml is a soft link, pointing to Manifests/default.xml


4. Now, manifest.xml the download source information into the src/.repo/manifests/, and add Execute permission:

$ CP manifest.xml src/.repo/manifests/

$ chmod +x Src/.repo/manifests/manifest.xml

Note here that it is possible if the XML filename is not manifest.xml.


5. Then go back to the src/directory and execute:

$./repo/repo init-m Manifest.xml

Using the Repo tool, change the default XML file from Default.xml to Manifest.xml,


6. At this point, and then to the. repo/to see the manifest.xml soft link target, has been replaced by Manifests/manifest.xml:

& Ls-l src/.repo/

Drwxr-xr-x 3 Ritter Ritter 4096 2012-07-23 15:59 manifests
Drwxr-xr-x 8 Ritter Ritter 4096 2012-07-23 15:34 Manifests.git
lrwxrwxrwx 1 Ritter Ritter 2012-07-23 16:01 manifest.xml-> manifests/manifest.xml
Drwxr-xr-x 7 Ritter Ritter 4096 2012-07-23 15:38 Repo

Then, when performing repo sync, the synchronized code is synchronized according to the new copy of Manifest.xml.


By the way, when chooseproduct, you can go to the vendor to view

Choosecombo Select compiled version

At compile time,

1. Compile kernel First

Enter the kernel directory, make kernel.

2. Then the system

In the source root directory, make All-j4

3. Finally, Uboot

Enter the boot directory, make Uboot


CD kernel/; Make all; Cd.. /; Make-j4; CD Boot; Make all; CD kernel/; make telephony;

I need to see makefile.


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.