diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2018-01-07 23:23:24 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2018-01-07 23:24:58 +0100 |
commit | 0d794c0c06570decf030fae7e42993bc53c5ab57 (patch) | |
tree | 80b980bbb2f369b703117e128fbd99c3546f55bc /utils | |
parent | 896c828152f758f569426db1013a59d4854bc291 (diff) | |
download | rockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.tar.gz rockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.zip |
sonynwz: Add NVP information for NWZ-A810
Change-Id: I37671ddf15ee1a4b469f97fe06ec86249ff9ce60
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nwztools/database/nvp/nwz-a810.txt | 35 | ||||
-rwxr-xr-x | utils/nwztools/database/nvp/parse_all_nvp_headers.sh | 20 |
2 files changed, 53 insertions, 2 deletions
diff --git a/utils/nwztools/database/nvp/nwz-a810.txt b/utils/nwztools/database/nvp/nwz-a810.txt new file mode 100644 index 0000000000..53e02ab77f --- /dev/null +++ b/utils/nwztools/database/nvp/nwz-a810.txt | |||
@@ -0,0 +1,35 @@ | |||
1 | app,0 | ||
2 | bti,1 | ||
3 | hdi,2 | ||
4 | cng,3 | ||
5 | ser,4 | ||
6 | dg0,5 | ||
7 | dg1,6 | ||
8 | dcc,7 | ||
9 | mdl,8 | ||
10 | fup,9 | ||
11 | bok,10 | ||
12 | shp,11 | ||
13 | dba,12 | ||
14 | dbv,13 | ||
15 | tr0,14 | ||
16 | tr1,15 | ||
17 | mid,16 | ||
18 | tst,17 | ||
19 | gty,18 | ||
20 | fui,19 | ||
21 | lbi,20 | ||
22 | dor,21 | ||
23 | edw,22 | ||
24 | ubp,23 | ||
25 | syi,24 | ||
26 | var,25 | ||
27 | pcd,26 | ||
28 | dbs,27 | ||
29 | rnd,28 | ||
30 | ufn,29 | ||
31 | sdp,30 | ||
32 | ncp,31 | ||
33 | kas,32 | ||
34 | pnc,33 | ||
35 | rtc,34 | ||
diff --git a/utils/nwztools/database/nvp/parse_all_nvp_headers.sh b/utils/nwztools/database/nvp/parse_all_nvp_headers.sh index 331016b045..2af5e83cdc 100755 --- a/utils/nwztools/database/nvp/parse_all_nvp_headers.sh +++ b/utils/nwztools/database/nvp/parse_all_nvp_headers.sh | |||
@@ -7,9 +7,20 @@ | |||
7 | # where <kernel> must be of the form | 7 | # where <kernel> must be of the form |
8 | # linux-kernel-*.tgz | 8 | # linux-kernel-*.tgz |
9 | # | 9 | # |
10 | if [ "$#" -lt 1 ]; then | 10 | function usage |
11 | >&2 echo "usage: parse_all_nvp_header.sh /path/to/directory" | 11 | { |
12 | >&2 echo "usage: parse_all_nvp_header.sh [--new-only] /path/to/directory" | ||
12 | exit 1 | 13 | exit 1 |
14 | } | ||
15 | |||
16 | if [ "$#" -lt 1 ]; then | ||
17 | usage | ||
18 | fi | ||
19 | |||
20 | new_only="no" | ||
21 | if [ "$1" = "--new-only" ]; then | ||
22 | shift | ||
23 | new_only="yes" | ||
13 | fi | 24 | fi |
14 | 25 | ||
15 | # list interesting directories | 26 | # list interesting directories |
@@ -22,6 +33,11 @@ do | |||
22 | #echo "$codename: not linux based" | 33 | #echo "$codename: not linux based" |
23 | continue | 34 | continue |
24 | fi | 35 | fi |
36 | # skip if not new | ||
37 | if [ $new_only = "yes" ] && [ -e $codename.txt ]; then | ||
38 | echo "Skip $codename: already exists" | ||
39 | continue | ||
40 | fi | ||
25 | # check if we can find a kernel | 41 | # check if we can find a kernel |
26 | kernel_tgz=`find "$dir" -maxdepth 1 -name "linux-kernel-*.tgz"` | 42 | kernel_tgz=`find "$dir" -maxdepth 1 -name "linux-kernel-*.tgz"` |
27 | if [ "$kernel_tgz" == "" ]; then | 43 | if [ "$kernel_tgz" == "" ]; then |