xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/tools/iq_check/script/dump_template.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh -e
2
3# Enable this to save spaces
4# DUMP_OPTS="--unformat"
5
6# Generate template JSON
7./dump --template $DUMP_OPTS > .j2s_template.json
8
9# Generate template JSON C header
10xxd -iu .j2s_template.json .j2s_template_json.h
11{
12	echo "#if 0 // Template JSON:"
13	cat .j2s_template.json
14	echo "#endif"
15	echo
16
17	cat .j2s_template_json.h
18} > $1
19