I. Pre-preparationSource code Download:
Use repo to download project source code
$repo init-u https://github.com/OP-TEE/manifest.git-m ${target}.xml [-B ${branch}]
$ repo Sync
We use target of Fvp.xml branch as Master
Use the following command to download the compiler:
Note: The download path is not recommended for modification
Make Toolchains
The author uses this method to download an error occurs:
Fatal:the remote end hung up unexpectedly3 MiB | 279.00 kib/s
fatal:early EOF
fatal:index-pack failed remote:counting objects
Initially identified as Git cache space is insufficient, the first download failed. After restarting, download again this error occurs but does not affect the download. Run platform Download
Use this link to enter the ARM website Download ARMV8 Basic model is our test platform FVP, note that after downloading to/devel/optee directory, if not downloaded and the Foundation_platformpkg folder moved to this directory, compile the error:
MAKEFILE:24: * * */root/devel/optee/build/. /foundation_platformpkg does not exist. Stop.
two. Compiling and testingTo use the command under directory/build:
$make all Run
Compile the Op-tee if the following error occurs:
Sed error:sed:-E expression #1, char 51:unknown option to ' s '
Please refer to this blog solution: http://blog.csdn.net/u010071291/article/details/50774082
After successful compilation, the following interface is automatically ejected
FVP Terminal_0 Interface: LINUX (RICH OS) command line interface
FVP Terminal_1 Interface: Optee__os (SECURE OS) interface
Fast MODELS-CLCD Foundation Platform Interface:
The test process and the results are consistent with the http://blog.csdn.net/u010071291/article/details/50774082.