From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 06/10] mk: install kernel modules Date: Wed, 02 Dec 2015 11:09:08 +0100 Message-ID: <4814772.NpeSVJBR48@xps13> References: <1449028676-19232-1-git-send-email-thomas.monjalon@6wind.com> <1449028676-19232-7-git-send-email-thomas.monjalon@6wind.com> <565EBFAD.80508@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Panu Matilainen Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 9BA7C8E59 for ; Wed, 2 Dec 2015 11:10:17 +0100 (CET) Received: by wmww144 with SMTP id w144so207914324wmw.1 for ; Wed, 02 Dec 2015 02:10:17 -0800 (PST) In-Reply-To: <565EBFAD.80508@redhat.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-12-02 11:53, Panu Matilainen: > On 12/02/2015 05:57 AM, Thomas Monjalon wrote: > > Add kernel modules to "make install". > > Nothing is done if there is no kernel module compiled. > > > > On native Linux, this path is suggested: > > kerneldir=/lib/modules/$(uname -r)/extra/dpdk [...] > > +kerneldir ?= $(exec_prefix)/kmod > > This by default installs the modules to /usr/local/kmod/ with no kernel > version etc. That's so broken that it'd be better not to install them at > all. > > So either get the kerneldir right (the correct path is known on Linux > and surely BSD too) or dont install them at all unless kerneldir is > manually specified. For Linux, it should default to > /lib/modules//extra/dpdk on Linux, where is the > version those modules were built against (which might or might not have > anything to do with uname -r output). Yes. That's what Mario did. I wanted to keep the same default as with the old T= command. But both are do-able by using "ifdef T".