summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
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: