| #!/bin/bash |
| rm -rf ./build/tmp/deploy/images/sdk/downloads |
| rm -rf ./build/tmp/deploy/images/sdk/meta-sdk.tar.gz |
| rm -rf ./build/tmp/deploy/images/sdk/meta |
| rm -rf ./build/tmp/deploy/images/sdk/prebuilt/firmware/trustzone/optee-os |
| TOPDIR=$(pwd) |
| rm -rf ${TOPDIR}/build/tmp/deploy/images/sdk/src/bsp/trustzone/ |
| ln -s ${TOPDIR}/downloads ./build/tmp/deploy/images/sdk/downloads |
| ln -s ${TOPDIR}/meta-sdk/meta-sdk.tar.gz ./build/tmp/deploy/images/sdk/meta-sdk.tar.gz |
| cd ${TOPDIR}/build/tmp/deploy/images/sdk/ |
| [ -d ./src/bsp/trustzone ] || mkdir ./src/bsp/trustzone |
| cp -a ${TOPDIR}/src/bsp/trustzone/optee ./src/bsp/trustzone/ |
| tar -xvf ./meta-sdk.tar.gz |
| |
| echo -e "\n\nTEE_SUPPORT_SRC = \"yes\"" >> ./meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-main.conf |
| sleep 2s |
| chmod 777 env-SDK.sh |
| . ./env-SDK.sh |
| cd ../ |
| chmod 777 make.sh |
| ./make.sh |