summaryrefslogtreecommitdiff
path: root/optee-230-workarounds
blob: 062487baef52f1041af37afb1706d3dcac82662f (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
#!/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

## fix android build error on optee-test project
## https://github.com/OP-TEE/optee_test/commit/b208e1d7ae757a610ed0fc13cfa3895cf4904488
if [ -d "${AOSP}/external/optee_test" ]; then
   cherrypick external/optee_test b208e1d7ae757a610ed0fc13cfa3895cf4904488
fi

## fix x1008 failure on xtest
## https://github.com/OP-TEE/optee_client/commit/5477e9ebf093ba3ac5296409a690944db6c0014c
if [ -d "${AOSP}/external/optee_client" ]; then
   cherrypick external/optee_client 5477e9ebf093ba3ac5296409a690944db6c0014c
fi