From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42])
 by dpdk.org (Postfix) with ESMTP id 03FD67E23
 for <dev@dpdk.org>; Thu, 17 Dec 2015 12:19:47 +0100 (CET)
Received: by mail-wm0-f42.google.com with SMTP id p187so16321161wmp.1
 for <dev@dpdk.org>; Thu, 17 Dec 2015 03:19:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:organization:user-agent
 :in-reply-to:references:mime-version:content-transfer-encoding
 :content-type; bh=gGqZ4Q0qC1pxeYVQaysrq4GVTOO2R3FHxTMVhod15sY=;
 b=zkNxthojy6Ig6P8PMJSkqOCLhaBKUbPq/6FStFTw09zWm3rUKOqh7vix9MrV6SNSXZ
 1wLaxgzLAiY7e98DXAmoW/7g4li80OzTtJ5VOEuZawtRqlDnbtLnIkU0XhhV5C10tsTz
 TWnA8tPwjVNHHVgI2LHiqEQtW4JUY6HKaHTXssYd+Og2v+pHnzeTOhcGNxQAZzt93ahS
 G/NH0W2Zg9dI3R81MlsfPXiyJi4MH50WFsR0IlqJluNOCO3eg2ZtELzOOVRBWUTLZEmk
 xSC5x6FZheZjRQK2MrZs//od9G/+pTBA4gKMXNmF9qG5Dhm/lkPkvlnTqgmKPXroeHzp
 SEqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:organization
 :user-agent:in-reply-to:references:mime-version
 :content-transfer-encoding:content-type;
 bh=gGqZ4Q0qC1pxeYVQaysrq4GVTOO2R3FHxTMVhod15sY=;
 b=C/lRev/O/U7ABQU0MIhRv7b/jbKBs+Ax1uyHPYGNviu/rHeiirM64l+jiT5oSJC6nR
 96yHBAt8DbFnTUdz+Jm5/p86fVHbWDs/1USPpiDIRfumVBVj7/ymdiqttF8EhCV2szrp
 swwKldll7B0FuOI9Wkd3D7AlJbGZOtcsH6nbOT/i/ltKjllxFsDxanE3hCZKJ8yEiPC1
 /w/FpQJoFiehdHoadvGQwMx4JWYoys1zt8f9scYFM+UiTvulDUcFyGY7CdW3pgwVDB/E
 1Fjgr35mMnPzq3Wa2JmFM83PYt42OwxewkaxvqbxP3VlH4uIHne09mhhVvH3MxH8Kodm
 VnEg==
X-Gm-Message-State: ALoCoQmjmaCrOOu1TG5MG8+8JEDR13I5n17Ns9w1ZnEbltorNyxtL9gQFrLMSth39K4iA+Xmoa/gXNq2uFelFfb30vC1MbMl3A==
X-Received: by 10.28.55.13 with SMTP id e13mr3295056wma.83.1450351186884;
 Thu, 17 Dec 2015 03:19:46 -0800 (PST)
Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net.
 [82.239.227.177])
 by smtp.gmail.com with ESMTPSA id m67sm1865903wmf.16.2015.12.17.03.19.46
 (version=TLSv1/SSLv3 cipher=OTHER);
 Thu, 17 Dec 2015 03:19:46 -0800 (PST)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Piotr Bartosiewicz <piotr.bartosiewicz@atendesoftware.pl>
Date: Thu, 17 Dec 2015 12:18:30 +0100
Message-ID: <2000237.kJ38smCVSk@xps13>
Organization: 6WIND
User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; )
In-Reply-To: <5672984C.5030504@atendesoftware.pl>
References: <567171AD.1090207@atendesoftware.pl> <12409253.rEPUkvBaQv@xps13>
 <5672984C.5030504@atendesoftware.pl>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] make install and RTE_KERNELDIR in dpdk 2.2
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Dec 2015 11:19:47 -0000

2015-12-17 12:11, Piotr Bartosiewicz:
> W dniu 17.12.2015 o 00:26, Thomas Monjalon pisze:
> > 2015-12-16 15:14, Piotr Bartosiewicz:
> >> A new 'make install' wrongly assumes that the output module name is
> >> always 'uname -r' even if RTE_KERNELDIR is passed.
> > No it does not assume anything, it is just a default value.
> > How can you find the directory based on RTE_KERNELDIR?
> >
> > You can set kerneldir=something-else on the "make install" command line.
> 
> OK, I understand kerneldir in general can't be guessed from RTE_KERNELDIR,
> but maybe there should be some hint in docs to pass kerneldir when 
> RTE_KERNELDIR is used.

Yes you are right, it can be better documented.

> In my case the working command is:
> make install T=... DESTDIR=... 
> RTE_KERNELDIR=/lib/modules/3.16.0-4-amd64/build 
> kerneldir=/lib/modules/3.16.0-4-amd64/extra/dpdk

Please, feel free to update the doc.
Thanks