aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNishanth Menon2019-05-18 07:19:29 -0500
committerAndreas Dannenberg2019-06-10 11:42:04 -0500
commit5671047ceeac760212e44d9338d5863b0e4ce7d0 (patch)
tree846d0d7409f2f2bf51c0d280f8b5faf53945aff2 /gen_its.sh
parent9010836c4af5408597c44c26547c066b08bff465 (diff)
downloadk3-image-gen-5671047ceeac760212e44d9338d5863b0e4ce7d0.tar.gz
k3-image-gen-5671047ceeac760212e44d9338d5863b0e4ce7d0.tar.xz
k3-image-gen-5671047ceeac760212e44d9338d5863b0e4ce7d0.zip
gen_its.sh: Add SIG version and build info into the generated itb
Introduce the version of System Firmware Image Generator (SIG) as well as the SOC variant and used CONFIG back into the generated image tree blob so we can track those important aspects after deployment. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'gen_its.sh')
-rwxr-xr-xgen_its.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/gen_its.sh b/gen_its.sh
index 3f7d57642..f9b3b588e 100755
--- a/gen_its.sh
+++ b/gen_its.sh
@@ -5,7 +5,7 @@
5# multiple domain-specific fragments in binary format all specified via 5# multiple domain-specific fragments in binary format all specified via
6# command line. 6# command line.
7# 7#
8# Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ 8# Copyright (C) 2018-2019 Texas Instruments Incorporated - http://www.ti.com/
9# Andreas Dannenberg <dannenberg@ti.com> 9# Andreas Dannenberg <dannenberg@ti.com>
10# 10#
11# Redistribution and use in source and binary forms, with or without 11# Redistribution and use in source and binary forms, with or without
@@ -36,9 +36,17 @@
36# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38# 38#
39# usage: $0 <bin_name> [<bin_name> [<bin_name] ...] 39# usage: $0 <soc_name> <config_name> <bin_name> [<bin_name> [<bin_name] ...]
40# 40#
41 41
42SOC=$1
43shift
44
45CONFIG=$1
46shift
47
48SYSFW_IMG_GEN_REV=`git describe --tags --abbrev=5 --dirty`
49
42cat << __HEADER_EOF 50cat << __HEADER_EOF
43/dts-v1/; 51/dts-v1/;
44 52
@@ -46,6 +54,8 @@ cat << __HEADER_EOF
46 description = "SYSFW and Config Fragments"; 54 description = "SYSFW and Config Fragments";
47 #address-cells = <1>; 55 #address-cells = <1>;
48 56
57 creator = "SIG $SOC/$CONFIG-$SYSFW_IMG_GEN_REV";
58
49 images { 59 images {
50__HEADER_EOF 60__HEADER_EOF
51 61