From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 71D30A04B1;
	Mon,  5 Oct 2020 18:18:49 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 30C581B755;
	Mon,  5 Oct 2020 18:18:48 +0200 (CEST)
Received: from mga12.intel.com (mga12.intel.com [192.55.52.136])
 by dpdk.org (Postfix) with ESMTP id 5FA17E07
 for <dev@dpdk.org>; Mon,  5 Oct 2020 18:18:45 +0200 (CEST)
IronPort-SDR: hSAVlw8Ms84Q3OJzl8TEjBawIbPi+11QL7Jz1bDJDjnsZXwIWETOiAaMRwT7FvY5/8FYE23+Ni
 eAm2V4XlxOXw==
X-IronPort-AV: E=McAfee;i="6000,8403,9764"; a="143135029"
X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="143135029"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga003.jf.intel.com ([10.7.209.27])
 by fmsmga106.fm.intel.com with ESMTP; 05 Oct 2020 09:18:33 -0700
IronPort-SDR: efqu5Tjxuzk8v33yOC2AyUEO8vMVh+gVbk26/iuxokdr9yknu5uJgfLuIseV9GCsj+i/GZ/Gxa
 EUd2VrPCCH/A==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="310055370"
Received: from silpixa00393944.ir.intel.com ([10.237.213.150])
 by orsmga003.jf.intel.com with ESMTP; 05 Oct 2020 09:18:32 -0700
From: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com>
To: dev@dpdk.org
Cc: ferruh.yigit@intel.com,
 Hariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Date: Mon,  5 Oct 2020 17:18:28 +0100
Message-Id: <1601914708-27552-1-git-send-email-hariprasad.govindharajan@intel.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1601909255-26251-1-git-send-email-hariprasad.govindharajan@intel.com>
References: <1601909255-26251-1-git-send-email-hariprasad.govindharajan@intel.com>
Subject: [dpdk-dev] [PATCH v2] linux/igb_uio: add Makefile to build the
	kernel module
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

With DPDK 20.11 release, the igb_uio module is no more part of DPDK.
There are use cases where this module is required, for example while
testing the virtual ports in OvS, the virtual ports are bound to
igb_uio module inside a VM. So, this patch provides a Makefile
which can be used to build this module and use as needed.

Before building this module, the user is expected to build the
DPDK using meson build system and make sure that the required
libraries are installed in the path /usr/local

The source code for igb_uio module is available in this git repository
https://git.dpdk.org/dpdk-kmods/. Once this repository is cloned, the
module can be built using this Makefile

Signed-off-by: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com>
---
 linux/igb_uio/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 linux/igb_uio/Makefile

diff --git a/linux/igb_uio/Makefile b/linux/igb_uio/Makefile
new file mode 100644
index 0000000..fc5cefc
--- /dev/null
+++ b/linux/igb_uio/Makefile
@@ -0,0 +1,8 @@
+DPDK_HEADERS ?= /usr/local/include
+RTE_KERNELDIR ?= `uname -r`
+
+all:
+		make EXTRA_CFLAGS="-I $(DPDK_HEADERS)" -C /lib/modules/$(RTE_KERNELDIR)/build/ M=$(PWD)
+
+clean:
+	    make -C /lib/modules/$(RTE_KERNELDIR)/build M=$(PWD) clean
-- 
2.7.4