-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfpcrevertpatch.py
More file actions
executable file
·67 lines (57 loc) · 2.37 KB
/
Copy pathfpcrevertpatch.py
File metadata and controls
executable file
·67 lines (57 loc) · 2.37 KB
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
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 2019-03-19
@author: Byng Zeng
"""
import os
import sys
import revertpatch as rp
VERSION = '1.0.0'
AUTHOR = 'Byng.Zeng'
# ===============================================================
# ReverFPCtPatch class
# ===============================================================
class FpcRevertPatch(object):
GITS = { # git : subject of stop.
'device/intel/mixins': 'Audio: FW: Update BXT-P to 9.22.03.3662',
'device/intel/sepolicy': 'recovery: fix sepolicy for access GPU',
'kernel/bxt': 'i915/fb: use kthread replace async',
'kernel/config-lts/v4.9':
'Config: enable ipu4 early device on Gorden peak',
'packages/services/Car':
'Decrease the duration of activity transition.',
'trusty/app/keymaster':
'Revert "[trusty][app] change KEYMASTER_MAX_BUFFER_LENGTH to 68KB"',
'trusty/app/sand': '[crypto]remove log in user build',
'trusty/device/x86/sand': '[device]remove log in user build',
'trusty/platform/sand':
'[platform][sand] bypass retrieval of attkb in manufacturing mode',
'trusty/lk/trusty':
'Revert "[trusty][lk] change IPC_CHAN_MAX_BUF_SIZE to 68KB"',
'vendor/intel/fw/evmm':
'Replace TARGET_PRODUCT with TRUSTY_REF_TARGET',
'vendor/intel/hardware/fingerprint': 'Initial empty repository',
# 'vendor/intel/hardware/storage': '',
}
SRCS = [
'kernel/bxt/drivers/fpc',
'kernel/bxt/include/linux/wakelock.h',
'trusty/app/sand/fingerprint',
'trusty/app/sand/fpcfingerprint',
'vendor/intel/hardware/fingerprint/fingerprint_extension',
'vendor/intel/hardware/fingerprint/fingerprint_hal',
'vendor/intel/hardware/fingerprint/fingerprint_libs',
'vendor/intel/hardware/fingerprint/fingerprint_tac',
'vendor/intel/hardware/fingerprint/Android.bp',
'vendor/intel/hardware/fingerprint/Android.mk']
# ===============================================================
# main entrance
# ===============================================================
if __name__ == '__main__':
if len(sys.argv) >= 2:
root = os.path.abspath(sys.argv[1])
rp.revert_patches(root, FpcRevertPatch.GITS)
rp.remove_src_files(root, FpcRevertPatch.SRCS)
else:
print('Error, input root path of project.')