From 75ad25ab59fdb7d00cfab6f3646c635e51de07e0 Mon Sep 17 00:00:00 2001 From: Ivan Orlov Date: Mon, 1 Jul 2024 15:10:58 +0100 Subject: [PATCH] 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 Reviewed-by: Andrew Jones Signed-off-by: Ben Dooks Reviewed-by: Anup Patel --- scripts/carray.sh | 1 + 1 file changed, 1 insertion(+) 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