OP-TEE 环境搭建

一: 源码下载


 

mkdir op-tee

 

cd op-tee

repo init -u https://github.com/OP-TEE/manifest.git -m default.xml --repo-url=git://codeaurora.org/tools/repo.git

sed -i "s/\.git//g" .repo/manifest.xml     //需要替换.repo目录下的manifest.xml的所有.git为空。

repo sync

目录:

ls -al
total 60
drwxrwxr-x 15 lizhi lizhi 4096 Dec 29 17:24 .
drwxr-xr-x 21 lizhi lizhi 4096 Dec 29 15:52 ..
drwxrwxr-x 9 lizhi lizhi 4096 Dec 29 17:24 build
drwxrwxr-x 15 lizhi lizhi 4096 Dec 29 17:24 buildroot
drwxrwxr-x 25 lizhi lizhi 4096 Dec 29 17:24 linux
drwxrwxr-x 4 lizhi lizhi 4096 Dec 29 17:24 optee_benchmark
drwxrwxr-x 6 lizhi lizhi 4096 Dec 29 17:24 optee_client
drwxrwxr-x 9 lizhi lizhi 4096 Dec 29 17:24 optee_examples
drwxrwxr-x 11 lizhi lizhi 4096 Dec 29 17:24 optee_os
drwxrwxr-x 8 lizhi lizhi 4096 Dec 29 17:24 optee_test
drwxrwxr-x 46 lizhi lizhi 4096 Dec 29 17:24 qemu
drwxrwxr-x 6 lizhi lizhi 4096 Dec 29 17:24 .repo
drwxrwxr-x 3 lizhi lizhi 4096 Dec 29 17:24 soc_term
drwxrwxr-x 18 lizhi lizhi 4096 Dec 29 17:24 trusted-firmware-a
drwxrwxr-x 25 lizhi lizhi 4096 Dec 29 17:24 u-boot

二: ToolChain 下载


 

$ cd $HOME
$ git clone https://github.com/OP-TEE/build.git
$ cd build
$ make -f toolchain.mk -j2
出现目录~/devel/optee/toolchain

 

make run-only -f qemu.mk。


posted @ 2020-01-07 17:09  JustRelax  阅读(1214)  评论(0编辑  收藏  举报