Use repo to synchronize code based on different manifest. xml

Source: Internet
Author: User

When using the repo to synchronize code, you can use different manifest. xml files to replace them to synchronize different codes. Note the following.


1. Create a 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, the directory contains the repo folder, which contains the repo executable file.


3. initialize the. Repo folder

$./Repo init-u git: // 192.168.1.1/branch/manifest. Git

At this time, the. Repo folder is hidden under the directory. In the. Repo folder, there are the following files and directories:

Drwxr-XR-x 3 Ritter 4096 manifests
Drwxr-XR-x 8 Ritter 4096 manifests. Git
Lrwxrwxrwx 1 Ritter 21 2012-07-23 16:01 manifest. XML-> manifests/Default. xml
Drwxr-XR-x 7 Ritter 4096 Repo

Manifest. XML is a soft link pointing to manifests/Default. xml.


4. Now, add the manifest. xml connector with the source code downloaded to src/. repo/manifests/and add the execution permission:

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

$ Chmod + x src/. repo/manifests/manifest. xml

Note that the XML file name is not manifest. xml.


5. Return to the src/directory and execute:

$./Repo init-M manifest. xml

Use the repo tool to change the default XML file from default. XML to manifest. xml,


6. Now, go to. repo/to view the target of the manifest. xml soft link, and change it to manifests/manifest. xml:

& LS-l src/. repo/

Drwxr-XR-x 3 Ritter 4096 manifests
Drwxr-XR-x 8 Ritter 4096 manifests. Git
Lrwxrwxrwx 1 Ritter 21 2012-07-23 16:01 manifest. XML-> manifests/manifest. xml
Drwxr-XR-x 7 Ritter 4096 Repo

Then, when executing repo sync, the synchronization code is synchronized according to the new copy manifest. xml.


By the way, you can view the chooseproduct in the vendor

Select the compiled version for choosecombo

During compilation,

1. Compile kernel first

Go to the kernel directory and make kernel.

2. Then the system

In the source code root directory, make all-J4

3. uboot

Go to the boot directory and make uboot.


CD kernel/; make all; CD ../; Make-J4; CD boot; make all; CD kernel/; Make telephony;

For more information, 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.