summaryrefslogtreecommitdiff
path: root/hikey-optee
blob: 1b6882203c637cdb289428394f8bdbfa725cfb51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

. $(dirname $0)/functions

PATCHES=0
if [ -n "$1" ]; then
        AOSP="$1"
else
        AOSP="`pwd`"
fi

if ! [ -d "$AOSP" ] && ! [ -d "$AOSP/bionic" ] && [ -d "$AOSP"/build ]; then
        echo "This script must be run from the AOSP source directory"
        echo "or with the AOSP source directory as its first parameter."
        exit 1
fi

##################################################
################ Linaro hack   ###################
##################################################
## patches for optee support based on the AOSP master branch
## https://android-review.linaro.org/#/c/16834/
apply --linaro device/linaro/hikey 16834/3

## Add OP TEE packages, test and TA to system image
## http://android-review.linaro.org/16803
apply --linaro device/linaro/hikey 16803/9

## http://android-review.linaro.org/16789
## Add tee-supplicant to Android services
apply --linaro device/linaro/hikey 16789/2

## OPTEE: add OP TEE 2.0 ARM trusted firmware
## http://android-review.linaro.org/16883
apply --linaro device/linaro/hikey 16883/4