]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: remove unnecessary $(subst $(obj)/, , ...) in modname-multi
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 19 Mar 2018 09:01:23 +0000 (18:01 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:01:24 +0000 (02:01 +0900)
commit4a6465c3cac7cb3251bd580322160ab75739eaa9
tree7ef79fcdd86a220f0fa407fba21ca4ceec4aa800
parent63f568146b01b4b144c4bc1ae15d10bf353119c0
kbuild: remove unnecessary $(subst $(obj)/, , ...) in modname-multi

In the context ...

    $(obj)/%.s: $(src)/%.c FORCE
            $(call if_changed_dep,cc_s_c)

    $(obj)/%.i: $(src)/%.c FORCE
            $(call if_changed_dep,cpp_i_c)

    $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE
            $(call cmd,force_checksrc)
            $(call if_changed_rule,cc_o_c)

    $(obj)/%.lst: $(src)/%.c FORCE
            $(call if_changed_dep,cc_lst_c)

'$*' returns the stem of the target (the part of '%'), so $(obj)/ has
already been ripped off.

$(subst $(obj)/,,$*.o) is the same as $*.o

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Cao jin <caoj.fnst@cn.fujitsu.com>
scripts/Makefile.lib