blob: 07a2d2275ab7b7da46a8609feea42f317cc4fe98 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/bin/bash
set -e
. $(dirname $0)/functions
curl_am_optee(){
local repository=$1
local patch_id=$2
local patch_project="$3"
local user=$4
local patch_url="https://github.com/${user}/${repository}/commit/${patch_id}.patch"
curl_am ${patch_url} ${patch_project}
}
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
#######################################################
## Patches for SWG use cases different than r-lcr #####
#######################################################
## init.rc: add inet group to console service
## https://android-review.linaro.org/#/c/platform/system/core/+/20241
apply --linaro system/core 20241/1
## Add optee_examples CA and TA
## http://android-review.linaro.org/17912
apply --linaro device/linaro/hikey 17912/4
## Allow extra flags for optee_os builds
## http://android-review.linaro.org/17632
apply --linaro device/linaro/hikey 17632/1
## uefi-tools: Use debug build and log level
## http://android-review.linaro.org/18328
apply --linaro device/linaro/hikey 18328/1
## KM mods - keymaster/gatekeeper patches
## http://android-review.linaro.org/20121
apply --linaro device/linaro/hikey 20121/4
## sepolicy/file_contexts: add entry for keymaster..
## http://android-review.linaro.org/20057
apply --linaro device/linaro/hikey 20057/10
## add configs and settings to support rpmb in tee
## http://android-review.linaro.org/20122
apply --linaro device/linaro/hikey 20122/2
|