Hello
I am looking at the instructions on https://github.com/linaro-swg/optee_android_manifest. Given that OPTEE now has support for Hikey 960, I wanted to ask if the following steps would work for building Android + OPTEE for Hikey 960:
-
Repo init:
repo init -u https://android-git.linaro.org/git/platform/manifest.git -b android-8.1.0_r7 -g “default,-non-default,-device,hikey” -
Overlay:
cd .repo
git clone https://android-git.linaro.org/git/platform/manifest.git -b linaro-oreo local_manifests
cd local_manifests
rm -f swg.xml
wget https://raw.githubusercontent.com/linaro-swg/optee_android_manifest/lcr-ref-hikey-o/swg.xml
cd …/…/ -
Sync: repo sync -j24
-
repo manifest -r -o pinned-manifest.xml
-
AOSP Patches:
wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz
tar xzf arm-hikey960-OPR-cf4e0c80.tgz
./extract-arm-hikey960.sh -
OPTEE patches:
./android-patchsets/hikey-o-workarounds
./android-patchsets/get-hikey-blobs
./android-patchsets/O-RLCR-PATCHSET
./android-patchsets/hikey-optee-o
./android-patchsets/hikey-optee-4.9
./android-patchsets/OREO-BOOTTIME-OPTIMIZATIONS-HIKEY
./android-patchsets/optee-master-workarounds
./android-patchsets/swg-mods-o -
source ./build/envsetup.sh
-
lunch hikey960-userdebug
-
Run AOSP Build:
setprop sys.usb.configfs 1
make TARGET_BUILD_KERNEL=true TARGET_BOOTIMAGE_USE_FAT=true
CFG_SECURE_DATA_PATH=y CFG_SECSTOR_TA_MGMT_PTA=y TARGET_TEE_IS_OPTEE=true
TARGET_BUILD_UEFI=true
Thanks