From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from demumfd001.nsn-inter.net (demumfd001.nsn-inter.net [93.183.12.32]) by dpdk.org (Postfix) with ESMTP id 168D9DE3 for ; Fri, 7 Feb 2014 17:43:52 +0100 (CET) Received: from demuprx017.emea.nsn-intra.net ([10.150.129.56]) by demumfd001.nsn-inter.net (8.12.11.20060308/8.12.11) with ESMTP id s17GjEI6008696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 7 Feb 2014 17:45:14 +0100 Received: from ak-desktop.emea.nsn-net.net ([10.144.36.74]) by demuprx017.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id s17GjD1B009777; Fri, 7 Feb 2014 17:45:13 +0100 From: Aaro Koskinen To: dev@dpdk.org Date: Fri, 7 Feb 2014 18:44:18 +0200 Message-Id: <1391791458-17601-1-git-send-email-aaro.koskinen@nsn.com> X-Mailer: git-send-email 1.8.5.1 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 958 X-purgate-ID: 151667::1391791514-000025D0-344DA5B6/0-0/0-0 Subject: [dpdk-dev] [PATCH] mk: pass CROSS_COMPILE when compiling kernel modules X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Feb 2014 16:43:52 -0000 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 --- mk/rte.module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.module.mk b/mk/rte.module.mk index b3a630e..5d66d90 100644 --- a/mk/rte.module.mk +++ b/mk/rte.module.mk @@ -77,7 +77,7 @@ build: _postbuild # build module $(MODULE).ko: $(SRCS_LINKS) @if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi - @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR) + @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR) CROSS_COMPILE=$(CROSS) # install module in $(RTE_OUTPUT)/kmod $(RTE_OUTPUT)/kmod/$(MODULE).ko: $(MODULE).ko -- 1.8.5.1