summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9010836)
raw | patch | inline | side by side (parent: 9010836)
author | Nishanth Menon <nm@ti.com> | |
Sat, 18 May 2019 12:19:29 +0000 (07:19 -0500) | ||
committer | Andreas Dannenberg <dannenberg@ti.com> | |
Mon, 10 Jun 2019 16:42:04 +0000 (11:42 -0500) |
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>
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>
Makefile | patch | blob | history | |
README.md | patch | blob | history | |
gen_its.sh | patch | blob | history |
diff --git a/Makefile b/Makefile
index a91daadd77256c554b017bbb29a6c964bc176f7e..405c8a370cbad85779ca32ea6210b0c7794a06a6 100644 (file)
--- a/Makefile
+++ b/Makefile
endif
$(ITS): soc_objs $(SOC_BINS)
endif
$(ITS): soc_objs $(SOC_BINS)
- ./gen_its.sh $(SOC_BIN_NAMES) > $@
+ ./gen_its.sh $(SOC) $(CONFIG) $(SOC_BIN_NAMES) > $@
$(ITB): $(ITS)
$(MKIMAGE) -f $< -r $@
$(ITB): $(ITS)
$(MKIMAGE) -f $< -r $@
diff --git a/README.md b/README.md
index 9d45cb5b844b39e65031ad3f3530d9d100d4b36b..81a18afc013ac87e81773f8d665c8f055ba98813 100644 (file)
--- a/README.md
+++ b/README.md
$ make sysfw_version
SYSFW Version: v2018.08a (Curious Crow)
$ make sysfw_version
SYSFW Version: v2018.08a (Curious Crow)
+To extract the 'creator' information from the final generated
+**sysfw-{soc}-{configuration}.itb** image tree blob...
+
+ $ fdtget sysfw-am65x-evm.itb / creator
+ SIG am65x/evm-ti2019.01-14-g47b8d
+
The workspace can be cleaned up by doing...
$ make clean
The workspace can be cleaned up by doing...
$ make clean
diff --git a/gen_its.sh b/gen_its.sh
index 3f7d57642e8d1fecb0030853ae3fb389858e5e86..f9b3b588e15e0fb4df82a063d3c6b9f45bf22db0 100755 (executable)
--- a/gen_its.sh
+++ b/gen_its.sh
# multiple domain-specific fragments in binary format all specified via
# command line.
#
# multiple domain-specific fragments in binary format all specified via
# command line.
#
-# Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
+# Copyright (C) 2018-2019 Texas Instruments Incorporated - http://www.ti.com/
# Andreas Dannenberg <dannenberg@ti.com>
#
# Redistribution and use in source and binary forms, with or without
# Andreas Dannenberg <dannenberg@ti.com>
#
# Redistribution and use in source and binary forms, with or without
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-# usage: $0 <bin_name> [<bin_name> [<bin_name] ...]
+# usage: $0 <soc_name> <config_name> <bin_name> [<bin_name> [<bin_name] ...]
#
#
+SOC=$1
+shift
+
+CONFIG=$1
+shift
+
+SYSFW_IMG_GEN_REV=`git describe --tags --abbrev=5 --dirty`
+
cat << __HEADER_EOF
/dts-v1/;
cat << __HEADER_EOF
/dts-v1/;
description = "SYSFW and Config Fragments";
#address-cells = <1>;
description = "SYSFW and Config Fragments";
#address-cells = <1>;
+ creator = "SIG $SOC/$CONFIG-$SYSFW_IMG_GEN_REV";
+
images {
__HEADER_EOF
images {
__HEADER_EOF