summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/database/nvp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2018-01-07 23:23:24 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2018-01-07 23:24:58 +0100
commit0d794c0c06570decf030fae7e42993bc53c5ab57 (patch)
tree80b980bbb2f369b703117e128fbd99c3546f55bc /utils/nwztools/database/nvp
parent896c828152f758f569426db1013a59d4854bc291 (diff)
downloadrockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.tar.gz
rockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.tar.bz2
rockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.zip
sonynwz: Add NVP information for NWZ-A810
Change-Id: I37671ddf15ee1a4b469f97fe06ec86249ff9ce60
Diffstat (limited to 'utils/nwztools/database/nvp')
-rw-r--r--utils/nwztools/database/nvp/nwz-a810.txt35
-rwxr-xr-xutils/nwztools/database/nvp/parse_all_nvp_headers.sh20
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 @@
+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
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 @@
# where <kernel> must be of the form
# linux-kernel-*.tgz
#
-if [ "$#" -lt 1 ]; then
- >&2 echo "usage: parse_all_nvp_header.sh /path/to/directory"
+function usage
+{
+ >&2 echo "usage: parse_all_nvp_header.sh [--new-only] /path/to/directory"
exit 1
+}
+
+if [ "$#" -lt 1 ]; then
+ usage
+fi
+
+new_only="no"
+if [ "$1" = "--new-only" ]; then
+ shift
+ new_only="yes"
fi
# list interesting directories
@@ -22,6 +33,11 @@ do
#echo "$codename: not linux based"
continue
fi
+ # skip if not new
+ if [ $new_only = "yes" ] && [ -e $codename.txt ]; then
+ echo "Skip $codename: already exists"
+ continue
+ fi
# check if we can find a kernel
kernel_tgz=`find "$dir" -maxdepth 1 -name "linux-kernel-*.tgz"`
if [ "$kernel_tgz" == "" ]; then