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.