目录 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
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
...
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.
...