版本比较

密钥

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。
目录
minLevel1
maxLevel3
outlinefalse
typelist
printablefalse

...

To compile the AOSP source code, it is recommended to have a multi-core X86 host with a minimum requirement of 16GB of RAM and at least 512GB of disk space. It is highly recommended to prioritize using a solid-state drive (SSD) for better compilation speed. However, you can also use a traditional hard disk drive (HDD), but the compilation process may be slower.

...

代码块
sudo ln -sf /usr/bin/python3 /usr/bin/python
  • Set the repo_url environment variable for future repo updates, you can use the following command:

代码块
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
  • Add repo_url to the bash environment variable

代码块
echo export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' >> ~/.bashrc

1.4 Install Dependencies

...

  • Download the manifests repository

代码块
repo init -u https://giteegithub.com/openfde/manifests -b 1.0.6fde_w --git-lfs

This step will initialize the Android source code tree directory structure according to the FDE manifests repository. The -u flag specifies the URL from which to retrieve the manifest repository, and the -b flag specifies the code version. The current OpenFDE code version is 1.0.6.branch. fde_w is our developing branch.

When executing this command repo init, it is possible to encounter Testing colorized output (for 'repo diff', 'repo status'): black red green yellow blue magenta cyan white bold dim ul reverse Enable color display in this user account (y/N)? . At this point, simply input 'y' to proceed with the execution.

...

user@target: refers to an ARMv8 environment for compiling Linux programs, where 'user' represents the account name and 'target' represents the IP address of the machine. Make sure to include the colon ':' at the end!

2. Compile Linux Programs

...

To compile Linux programs, it is necessary to perform the compilation on a host machine with ARMv8 architecture. You need to select a project directory to compile and install Linux-related programs. All the subsequent steps should be performed within the project directory, such as openfde-linux/. If it is not the first time compiling, please ensure that the code for all the dependent libraries is synchronized and updated to the latest version.

Below, we will provide detailed instructions on how to compile Linux programs on different operating systems.

2.2 Compile Linux Programs on

...

ubuntu24.04

2.2.1 Quick Compilation

You can execute the following command to compile Linux programs with a single command.

...