]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Support cross compilation
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 4 Jul 2012 13:18:57 +0000 (23:18 +1000)
committerPekka Enberg <penberg@kernel.org>
Wed, 4 Jul 2012 14:12:20 +0000 (17:12 +0300)
commit9f4754d0cbb0e7c1db165212840a80494d7448de
tree85869a2ac11a5ac1e00a3928f59cc5b9e3a3db46
parentb8c2684943c29c25bb791b4643bdf86c85506cea
kvm tools: Support cross compilation

Allow CROSS_COMPILE to be used to prefix CC as is done in the kernel
Makefile. If CROSS_COMPILE is unset it has no effect, and still allows
CC to be overridden.

We need to fix a few places to use ARCH instead of uname_M directly, so
that the overridden setting of ARCH takes effect.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile