From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7B45AA0471 for ; Fri, 19 Jul 2019 19:04:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C5FE1B94F; Fri, 19 Jul 2019 19:04:41 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A08C458C6; Fri, 19 Jul 2019 19:04:39 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2019 10:04:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,283,1559545200"; d="scan'208";a="320015855" Received: from silpixa00399499.ir.intel.com (HELO silpixa00399499.ger.corp.intel.com) ([10.237.222.58]) by orsmga004.jf.intel.com with ESMTP; 19 Jul 2019 10:04:36 -0700 From: Herakliusz Lipiec To: Thomas Monjalon Cc: dev@dpdk.org, Herakliusz Lipiec , stable@dpdk.org, bruce.richardson@intel.com Date: Fri, 19 Jul 2019 18:05:43 +0100 Message-Id: <20190719170543.25259-1-herakliusz.lipiec@intel.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190719111116.21659-1-herakliusz.lipiec@intel.com> References: <20190719111116.21659-1-herakliusz.lipiec@intel.com> Subject: [dpdk-dev] [PATCH v3] mk: fix output directory name when compiling with custom kernel header dir X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When building dpdk with differnt kernel headers by specifying RTE_KERNELDIR igb_uio is compiled to directory with a name of the version of kernel thats running on the system instead of the one that dpdk is actually compiled against. Fixed by replacing hardcoded value with value from RTE_KERNELDIR. Fixes: 3967af352aeb ("mk: install kernel modules") Cc: stable@dpdk.org Cc: bruce.richardson@intel.com Signed-off-by: Herakliusz Lipiec --- v2: with corrected corrected alignment. v3: change to more readable version. --- mk/rte.sdkinstall.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 5c4215cd7..32bed5d95 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -27,7 +27,7 @@ ifeq ($(RTE_EXEC_ENV),linuxapp) RTE_EXEC_ENV=linux endif ifeq ($(RTE_EXEC_ENV),linux) -kerneldir ?= /lib/modules/$(shell uname -r)/extra/dpdk +kerneldir ?= $(RTE_KERNELDIR:/build=/extra/dpdk) else kerneldir ?= /boot/modules endif -- 2.17.2