From 03dd4b92be7dcd5c8ab06da3810887060e06abd5 Mon Sep 17 00:00:00 2001 From: Igor Skochinsky Date: Mon, 3 Apr 2017 15:13:46 +0200 Subject: 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 --- utils/nwztools/database/nvp/parse_nvp_nodes.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/nwztools/database/nvp/parse_nvp_nodes.sh') diff --git a/utils/nwztools/database/nvp/parse_nvp_nodes.sh b/utils/nwztools/database/nvp/parse_nvp_nodes.sh index 456a707e5d..8fc4367a8f 100755 --- a/utils/nwztools/database/nvp/parse_nvp_nodes.sh +++ b/utils/nwztools/database/nvp/parse_nvp_nodes.sh @@ -4,6 +4,9 @@ # parse_nodes.sh /path/to/rootfs/dir output_file # parse_nodes.sh /path/to/rootfs.tgz output_file # +if [ -z "$NVP_LOG" ]; then + NVP_LOG=/dev/null +fi if [ "$#" -lt 2 ]; then >&2 echo "usage: parse_header.sh /path/to/icx_nvp.ko|/path/to/rootfs/dir|/path/to/rootfs.tgz output_file" exit 1 @@ -56,4 +59,4 @@ else >&2 echo "Analyzing $FILE" fi -./nvptool -x "$FILE" -o "$OUTPUT" >/dev/null +./nvptool -x "$FILE" -o "$OUTPUT" >"$NVP_LOG" -- cgit v1.2.3