diff options
author | Jan Beulich <JBeulich@suse.com> | 2013-05-29 13:18:56 +0100 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2013-06-28 00:48:16 +0200 |
commit | bd70134396622ea50b14e34dae0810879884d553 (patch) | |
tree | 639fb9a6555d1a301c62c99163e144085b06b749 /scripts/mod/Makefile | |
parent | f82935ebd6adf554787c273cdc91d2d6ef1eaf51 (diff) | |
download | op-kernel-dev-bd70134396622ea50b14e34dae0810879884d553.zip op-kernel-dev-bd70134396622ea50b14e34dae0810879884d553.tar.gz |
improve modalias building
For one, there's no point in the respective pieces to be rebuilt
unconditionally on each and every rebuild.
Second there's no need to invent a custom rule for generating the .s
file from the .c source - we can simply use the generic rule here.
And finally, $(obj) should be used to refer to files in the build tree
(rather than spelling out the subdirectory).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/mod/Makefile')
-rw-r--r-- | scripts/mod/Makefile | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index ae21b89..c11212f 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile @@ -29,15 +29,10 @@ define cmd_offsets echo "#endif" ) > $@ endef -# We use internal kbuild rules to avoid the "is up to date" message from make -scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE - $(Q)mkdir -p $(dir $@) - $(call if_changed_dep,cc_s_c) +$(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s + $(call if_changed,offsets) -$(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s - $(call cmd,offsets) - -targets += $(devicetable-offsets-file) +targets += $(devicetable-offsets-file) devicetable-offsets.s # dependencies on generated files need to be listed explicitly |