summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-03-06 08:52:32 -0800
committerCommit Bot <commit-bot@chromium.org>2020-03-09 23:39:43 +0000
commit889d9ad68947c3f6eee2e4ea491987d7477f4ac8 (patch)
tree3af03f4d5d3f1a0edfd0989efeb5eb75d48a2d99 /Makefile.rules
parentbcce68baec74578d49d0ef899088d466ae91dcbb (diff)
downloadchrome-ec-889d9ad68947c3f6eee2e4ea491987d7477f4ac8.tar.gz
Makefile: recompile cros_ec_commands.sh on script change
Add the script that generates cros_ec_commands.sh to the rule. BUG=none BRANCH=none TEST=Check cros_ec_commands.h is re-generated by 'make build_cros_ec_commands' when make_linux_ec_commands_h.sh changes. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: Ieb0fbc0a7340e618d2c75df674d33365c36c944f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2092494 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index cf4d80c495..a94611d3b1 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -844,10 +844,13 @@ stats: build_boards
$(call cmd_stats,RO)
$(call cmd_stats,RW)
+
+out_cros_ec_commands=build/kernel/include/linux/mfd/cros_ec_commands.h
.PHONY: build_cros_ec_commands
-build_cros_ec_commands: build/kernel/include/linux/mfd/cros_ec_commands.h
+build_cros_ec_commands: $(out_cros_ec_commands)
+
-build/kernel/include/linux/mfd/cros_ec_commands.h: include/ec_commands.h
+$(out_cros_ec_commands): include/ec_commands.h util/make_linux_ec_commands_h.sh
util/make_linux_ec_commands_h.sh $< $@
.SECONDARY: