diff options
Diffstat (limited to 'scripts/mod/Makefile')
| -rw-r--r-- | scripts/mod/Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 75d59fcd48b8..c11212ff3510 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile | |||
| @@ -15,8 +15,8 @@ endef | |||
| 15 | quiet_cmd_offsets = GEN $@ | 15 | quiet_cmd_offsets = GEN $@ |
| 16 | define cmd_offsets | 16 | define cmd_offsets |
| 17 | (set -e; \ | 17 | (set -e; \ |
| 18 | echo "#ifndef __DEVICEVTABLE_OFFSETS_H__"; \ | 18 | echo "#ifndef __DEVICETABLE_OFFSETS_H__"; \ |
| 19 | echo "#define __DEVICEVTABLE_OFFSETS_H__"; \ | 19 | echo "#define __DEVICETABLE_OFFSETS_H__"; \ |
| 20 | echo "/*"; \ | 20 | echo "/*"; \ |
| 21 | echo " * DO NOT MODIFY."; \ | 21 | echo " * DO NOT MODIFY."; \ |
| 22 | echo " *"; \ | 22 | echo " *"; \ |
| @@ -29,15 +29,10 @@ define cmd_offsets | |||
| 29 | echo "#endif" ) > $@ | 29 | echo "#endif" ) > $@ |
| 30 | endef | 30 | endef |
| 31 | 31 | ||
| 32 | # We use internal kbuild rules to avoid the "is up to date" message from make | 32 | $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s |
| 33 | scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE | 33 | $(call if_changed,offsets) |
| 34 | $(Q)mkdir -p $(dir $@) | ||
| 35 | $(call if_changed_dep,cc_s_c) | ||
| 36 | 34 | ||
| 37 | $(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s | 35 | targets += $(devicetable-offsets-file) devicetable-offsets.s |
| 38 | $(call cmd,offsets) | ||
| 39 | |||
| 40 | targets += $(devicetable-offsets-file) | ||
| 41 | 36 | ||
| 42 | # dependencies on generated files need to be listed explicitly | 37 | # dependencies on generated files need to be listed explicitly |
| 43 | 38 | ||
