DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel
@ 2015-09-23 20:03 Aaron Conole
  2015-09-24 20:05 ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Conole @ 2015-09-23 20:03 UTC (permalink / raw)
  To: dev

The vHost eventlink driver is a kernel module that requires a kernel
source/build directory to build the ko. Convert the fixed kernel build
directory specifier to one which may be user specified on the command-line.

Signed-off-by: Aaron Conole <aconole@redhat.com>
---
 lib/librte_vhost/eventfd_link/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/librte_vhost/eventfd_link/Makefile b/lib/librte_vhost/eventfd_link/Makefile
index fc3927b..3140e8b 100644
--- a/lib/librte_vhost/eventfd_link/Makefile
+++ b/lib/librte_vhost/eventfd_link/Makefile
@@ -29,11 +29,13 @@
 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+RTE_KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+
 obj-m += eventfd_link.o
 
 
 all:
-	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+	make -C $(RTE_KERNELDIR) M=$(PWD) modules
 
 clean:
-	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
+	make -C $(RTE_KERNELDIR) M=$(PWD) clean
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel
  2015-09-23 20:03 [dpdk-dev] [PATCH] librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel Aaron Conole
@ 2015-09-24 20:05 ` Thomas Monjalon
  2015-09-24 22:05   ` Pavel Boldin
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2015-09-24 20:05 UTC (permalink / raw)
  To: Aaron Conole; +Cc: dev

2015-09-23 16:03, Aaron Conole:
> The vHost eventlink driver is a kernel module that requires a kernel
> source/build directory to build the ko. Convert the fixed kernel build
> directory specifier to one which may be user specified on the command-line.
> 
> Signed-off-by: Aaron Conole <aconole@redhat.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel
  2015-09-24 20:05 ` Thomas Monjalon
@ 2015-09-24 22:05   ` Pavel Boldin
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Boldin @ 2015-09-24 22:05 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

Thomas,

Can I please have your attention there as well:
http://dpdk.org/dev/patchwork/project/dpdk/list/?submitter=194

Pavel

On Thu, Sep 24, 2015 at 11:05 PM, Thomas Monjalon <thomas.monjalon@6wind.com
> wrote:

> 2015-09-23 16:03, Aaron Conole:
> > The vHost eventlink driver is a kernel module that requires a kernel
> > source/build directory to build the ko. Convert the fixed kernel build
> > directory specifier to one which may be user specified on the
> command-line.
> >
> > Signed-off-by: Aaron Conole <aconole@redhat.com>
>
> Applied, thanks
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-24 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 20:03 [dpdk-dev] [PATCH] librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel Aaron Conole
2015-09-24 20:05 ` Thomas Monjalon
2015-09-24 22:05   ` Pavel Boldin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).