]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: de-duplicate fixdep usage
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 17 Feb 2016 20:50:06 +0000 (15:50 -0500)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 29 Mar 2016 20:30:56 +0000 (16:30 -0400)
commit6b9aa50e038650cf5c80b4b359cf7f35f3061f42
treea915e80b0f5b6e5c8f71600b5d9258cf17d9a920
parent9c2171092bf19ac702c71eb35e1e1c2924a26d01
kbuild: de-duplicate fixdep usage

The generation and postprocessing of automatic dependency rules is
duplicated in rule_cc_o_c, rule_as_o_S and if_changed_dep. Since
this is not a trivial one-liner action, it is now abstracted under
cmd_and_fixdep to simplify things and make future changes in this area
easier.

In the rule_cc_o_c and rule_as_o_S cases that means the order of some
commands has been altered, namely fixdep and related file manipulations
are executed earlier, but they didn't depend on those commands that now
execute later.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
scripts/Kbuild.include
scripts/Makefile.build