summaryrefslogtreecommitdiff
path: root/tools/net/ynl/ynl-regen.sh
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-11-29 11:36:22 -0800
committerJakub Kicinski <kuba@kernel.org>2023-11-29 16:07:00 -0800
commita115b9279f4897b8afdfbc30035b1382c047fc26 (patch)
tree9270fe94b20e60693f5a1cb5fc86f7de8ce65830 /tools/net/ynl/ynl-regen.sh
parent9cf9b57082411ad42d6d12c7b857e60add673877 (diff)
tools: ynl: don't skip regeneration from make targets
Commit 2b7ac0c87d98 ("tools: ynl-gen: don't touch the output file if content is the same") is working too well. It was added so that ynl-regen -f doesn't make us rebuild half of the kernel, if there are no actual changes in any generated code. When ynl-gen-c is called by make, however, we're better off trusting make's tracking and overwrite the file. Otherwise if output is identical we won't update file timestamps and make will retry code gen on every invocation. Link: https://lore.kernel.org/r/20231129193622.2912353-5-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl/ynl-regen.sh')
-rwxr-xr-xtools/net/ynl/ynl-regen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/net/ynl/ynl-regen.sh b/tools/net/ynl/ynl-regen.sh
index bdba24066cf1..a37304dcc88e 100755
--- a/tools/net/ynl/ynl-regen.sh
+++ b/tools/net/ynl/ynl-regen.sh
@@ -30,8 +30,8 @@ for f in $files; do
fi
echo -e "\tGEN ${params[2]}\t$f"
- $TOOL --mode ${params[2]} --${params[3]} --spec $KDIR/${params[0]} \
- $args -o $f
+ $TOOL --cmp-out --mode ${params[2]} --${params[3]} \
+ --spec $KDIR/${params[0]} $args -o $f
done
popd >>/dev/null