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
parent9010836c4af5408597c44c26547c066b08bff465 (diff)
downloadsystem-firmware-image-gen-5671047ceeac760212e44d9338d5863b0e4ce7d0.tar.gz
system-firmware-image-gen-5671047ceeac760212e44d9338d5863b0e4ce7d0.tar.xz
system-firmware-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>
-rw-r--r--Makefile2
-rw-r--r--README.md6
-rwxr-xr-xgen_its.sh14
3 files changed, 19 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a91daad..405c8a3 100644
--- a/Makefile
+++ b/Makefile
@@ -155,7 +155,7 @@ $(soc_objroot)/sysfw.bin: $(SYSFW_PATH) sysfw_version
155endif 155endif
156 156
157$(ITS): soc_objs $(SOC_BINS) 157$(ITS): soc_objs $(SOC_BINS)
158 ./gen_its.sh $(SOC_BIN_NAMES) > $@ 158 ./gen_its.sh $(SOC) $(CONFIG) $(SOC_BIN_NAMES) > $@
159 159
160$(ITB): $(ITS) 160$(ITB): $(ITS)
161 $(MKIMAGE) -f $< -r $@ 161 $(MKIMAGE) -f $< -r $@
diff --git a/README.md b/README.md
index 9d45cb5..81a18af 100644
--- a/README.md
+++ b/README.md
@@ -88,6 +88,12 @@ To extract and show the release version of the SYSFW image being used...
88 $ make sysfw_version 88 $ make sysfw_version
89 SYSFW Version: v2018.08a (Curious Crow) 89 SYSFW Version: v2018.08a (Curious Crow)
90 90
91To extract the 'creator' information from the final generated
92**sysfw-{soc}-{configuration}.itb** image tree blob...
93
94 $ fdtget sysfw-am65x-evm.itb / creator
95 SIG am65x/evm-ti2019.01-14-g47b8d
96
91The workspace can be cleaned up by doing... 97The workspace can be cleaned up by doing...
92 98
93 $ make clean 99 $ make clean
diff --git a/gen_its.sh b/gen_its.sh
index 3f7d576..f9b3b58 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