nwztools/database: misc improvements

* make gen_db.py work on Windows/Python 2

- use hashlib module instead of md5sum, also don't rely on / for file path
matching
- don't use 'file' for a variable name

* fix parse_nvp_header.sh for older kernels

pre-emmc kernel sources use a slightly different #define format; adjust
regexp to catch it.

* add nwz-x1000 series NVP layout (from icx1087_nvp.h)

some new tags have no description, alas the driver doesn't have
them :/

*  minor fixes to nvp/README

fixed typos/wording

Change-Id: I77d8c2704be2f2316e32aadcfd362df7102360d4
This commit is contained in:
Igor Skochinsky 2017-04-03 15:13:46 +02:00 committed by Amaury Pouly
parent f1c8d63a76
commit 03dd4b92be
8 changed files with 550 additions and 264 deletions

View file

@ -0,0 +1,82 @@
app,0
bti,1
hdi,2
cng,3
ser,4
dg0,5
dg1,6
dcc,7
mdl,8
fup,9
bok,10
shp,11
dba,12
dbv,13
tr0,14
tr1,15
mid,16
tst,17
gty,18
fui,19
lbi,20
dor,21
edw,22
ubp,23
syi,24
var,25
pcd,26
dbs,27
rnd,28
ufn,29
sdp,30
ncp,31
kas,32
pnc,33
rtc,34
bpr,35
e00,36
e01,37
e02,38
e03,39
e04,40
e05,41
e06,42
e07,43
e08,44
e09,45
e10,46
e11,47
e12,48
e13,49
e14,50
e15,51
e16,52
e17,53
e18,54
e19,55
e20,56
e21,57
e22,58
e23,59
e24,60
e25,61
e26,62
e27,63
e28,64
e29,65
e30,66
e31,67
clv,68
slp,69
ipt,70
ep0,71
ep1,72
ep2,73
ep3,74
pts,75
skt,76
mac,77
apd,78
blf,79
hld,80
skd,81