kbuild: handle C=... and M=... after entering into build directory
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 9 Sep 2014 11:02:24 +0000 (20:02 +0900)
committerMichal Marek <mmarek@suse.cz>
Wed, 1 Oct 2014 20:44:21 +0000 (22:44 +0200)
commitaa55c8e2f7a395dfc9e67fc6637321e19ce9bfe1
tree23fc4ca0d100904325701042b95ec406802e7daa
parent745a254322c898dadf019342cd7140f7867d2d0f
kbuild: handle C=... and M=... after entering into build directory

This commit avoids processing C=... and M=... twice
when O=... is also given.

Besides, we can also remove KBUILD_EXTMOD="$(KBUILD_EXTMOD)"
in the sub-make target.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile