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>
This commit is contained in:
Gwendal Grignou 2020-03-06 08:52:32 -08:00 committed by Commit Bot
parent bcce68baec
commit 889d9ad689
1 changed files with 6 additions and 3 deletions

View File

@ -844,10 +844,13 @@ stats: build_boards
$(call cmd_stats,RO)
$(call cmd_stats,RW)
.PHONY: build_cros_ec_commands
build_cros_ec_commands: build/kernel/include/linux/mfd/cros_ec_commands.h
build/kernel/include/linux/mfd/cros_ec_commands.h: include/ec_commands.h
out_cros_ec_commands=build/kernel/include/linux/mfd/cros_ec_commands.h
.PHONY: build_cros_ec_commands
build_cros_ec_commands: $(out_cros_ec_commands)
$(out_cros_ec_commands): include/ec_commands.h util/make_linux_ec_commands_h.sh
util/make_linux_ec_commands_h.sh $< $@
.SECONDARY: