OP-TEE QEMU下载 编译 运行等环境搭建流程
本文基于《手机安全和可信应用开发指南:TrustZone与OP-TEE技术详解》描述的环境搭建流程,并且在ubuntu1804上实际搭建成功使用。
1.安装开发工具
sudo apt-get install android-tools-adb android-tools-fastboot autoconf \
automake bc bison build-essential cscope curl device-tree-compiler \
expect flex ftp-upload gdisk iasl libattr1-dev libc6:i386 libcap-dev \
libfdt-dev libftdi-dev libglib2.0-dev libhidapi-dev libncurses5-dev \
libpixman-1-dev libssl-dev libstdc++6:i386 libtool libz1:i386 make \
mtools netcat python-crypto python-serial python-wand unzip uuid-dev \
xdg-utils xterm xz-utils zlib1g-dev \
qemu
2.建立git环境
repo init -u https://github.com/OP-TEE/manifest.git -m default.xml --repo-url=git://codeaurora.org/tools/repo.git -b 2.6.0
sed -i “s/.git//g” .repo/manifest.xml
然后同步代码
repo sync -j16
repo sync基本都会出错很多次,可以用类似12345;while [ $? != 0 ];do sleep 1;repo sync -j16;done