mk: pass CROSS_COMPILE when compiling kernel modules
authorAaro Koskinen <aaro.koskinen@nsn.com>
Fri, 7 Feb 2014 16:44:18 +0000 (18:44 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 17 Apr 2014 12:00:21 +0000 (14:00 +0200)
commit6383201503e168459c422749461b51b8745b1b73
tree9303f4ae314da5d12fefc73be53579e12f320092
parent396b69e56a3462ff80537deccebcdecb2771d8ca
mk: pass CROSS_COMPILE when compiling kernel modules

Pass CROSS_COMPILE to the kernel build system when compiling kernel
modules. Although we export CC etc. the top level kernel Makefile will
override the environment. As a result it will end up using wrong tools
if cross-compilation is desired but CROSS_COMPILE is not set.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
mk/rte.module.mk