summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIvan Orlov <[email protected]>2024-07-01 15:10:58 +0100
committerAnup Patel <[email protected]>2024-07-04 10:52:37 +0530
commit75ad25ab59fdb7d00cfab6f3646c635e51de07e0 (patch)
tree508166e3ef2a67d298feffcd262451c35efa7e13 /scripts
parentd8608e615fae150ddb54e9b54d0e1fb5f16a9d9c (diff)
scripts/carray.sh: Add comment to generated files
Add a comment about where auto-generated file came from to the carray.sh output. This should help avoiding confusion for the developers looking at the build artifacts and finding .c files there. Signed-off-by: Ivan Orlov <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Signed-off-by: Ben Dooks <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/carray.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/carray.sh b/scripts/carray.sh
index 13f9d360..1fa2366a 100755
--- a/scripts/carray.sh
+++ b/scripts/carray.sh
@@ -61,6 +61,7 @@ if [ -z "${ARRAY_NAME}" ]; then
usage
fi
+printf "// Generated with $(basename $0) from $(basename ${CONFIG_FILE})\n"
printf "#include <%s>\n\n" "${TYPE_HEADER}"
for VAR in ${VAR_LIST}; do