diff options
author | Nishanth Menon | 2019-05-18 07:19:29 -0500 |
---|---|---|
committer | Andreas Dannenberg | 2019-06-10 11:42:04 -0500 |
commit | 5671047ceeac760212e44d9338d5863b0e4ce7d0 (patch) | |
tree | 846d0d7409f2f2bf51c0d280f8b5faf53945aff2 | |
parent | 9010836c4af5408597c44c26547c066b08bff465 (diff) | |
download | system-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-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | gen_its.sh | 14 |
3 files changed, 19 insertions, 3 deletions
@@ -155,7 +155,7 @@ $(soc_objroot)/sysfw.bin: $(SYSFW_PATH) sysfw_version | |||
155 | endif | 155 | endif |
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 $@ |
@@ -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 | ||
91 | To 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 | |||
91 | The workspace can be cleaned up by doing... | 97 | The workspace can be cleaned up by doing... |
92 | 98 | ||
93 | $ make clean | 99 | $ make clean |
@@ -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 | ||
42 | SOC=$1 | ||
43 | shift | ||
44 | |||
45 | CONFIG=$1 | ||
46 | shift | ||
47 | |||
48 | SYSFW_IMG_GEN_REV=`git describe --tags --abbrev=5 --dirty` | ||
49 | |||
42 | cat << __HEADER_EOF | 50 | cat << __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 | ||