From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id E55BD2B96 for ; Thu, 3 Mar 2016 17:41:19 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id l68so43184965wml.0 for ; Thu, 03 Mar 2016 08:41:19 -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; bh=2GmpXNSkQ0w3rYv8Z2p/PqODaIiBj7GxQNgEejCSLqs=; b=hyUFmYTUw4N+G3VM394fSy7ED6st7wguaOPhepIbq+7nU6iSDiFjvfG+Lr7LAOITlA q8kfqc9UxGFQ4vkfkhY1AJVe6HpsFn7u43viBYwYD+90AJKGbfISJJk8YiE1pzLFmzbV s4bUcv48i8zOUf6Bc02Q73YMRB1F0HElWGiKgsjEsFaiIFUKD++rklfbyBxu4dlHp98k OC6sB87eqjw/448tQICUcRFg3Ap/tljHIbTvTBjHYXfBzg/dvDdywhmIuubLI3acv7BN vNV3XBv2LJf18bm6l2SLQzMj2BTl2rcOPRpDgCmENufqWmwee4RJa97PFrmyH168JQTO U7Bg== 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; bh=2GmpXNSkQ0w3rYv8Z2p/PqODaIiBj7GxQNgEejCSLqs=; b=b80Xo8+Ug0Pfr1fc5BuxXir20vSmNjz3NZNY2mFhmiRT1IPbwlafRLpGuGOWECR3e2 q9u0KjXMlpccxtJeYedffpc0qAZ3Wn42VuQJj64DeKw0cyzd3yh7uYrZka7j6GxGW2O9 kBwaq2C2ldHrQyqNGZxDKW8nq2CHD82xhWvZdq5Z6wQ5QD6PSEvXPtVCgjtm3RPt/L+5 WLjQEUnhY3nsDHpoCDJirsgyuvM1fYjAWeQGXPC6cdOspnIGxvz4pPSRibZt7Luy7EXG zNqR/ZOlEHwfADZuWqBrAN1y8BD/h5LJKyYU27YR+sCgMOyxeFcd17adAJd+stl2eixv YrWg== X-Gm-Message-State: AD7BkJIcd/bC2mX354GfDWh42d7eFssY9MInFRHGsK7nerE+HXwBBgNnfI1HZ8jeVuNPBFs2 X-Received: by 10.28.214.11 with SMTP id n11mr4275733wmg.31.1457023279757; Thu, 03 Mar 2016 08:41:19 -0800 (PST) Received: from xps13.localnet (163.20.90.92.rev.sfr.net. [92.90.20.163]) by smtp.gmail.com with ESMTPSA id y62sm9729923wmg.12.2016.03.03.08.41.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2016 08:41:18 -0800 (PST) From: Thomas Monjalon To: "Wiles, Keith" Date: Thu, 03 Mar 2016 17:33:47 +0100 Message-ID: <1963758.vYVLsiL7TI@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <26D5D061-B40F-4A61-B407-4FA6E2CDF83C@intel.com> References: <1455039314-86891-1-git-send-email-keith.wiles@intel.com> <9F76ECAC-A0AA-476F-B0E2-A9A35DB896A7@intel.com> <26D5D061-B40F-4A61-B407-4FA6E2CDF83C@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] mk: add makefile extention support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 16:41:20 -0000 2016-03-03 14:55, Wiles, Keith: > >>2016-02-28 21:47, Wiles, Keith: > >>> >Hi, > >>> > > >>> >2016-02-09 11:35, Keith Wiles: > >>> >> Adding support to the build system to allow for Makefile.XXX > >>> >> extention to a subtree, which already has Makefiles. These > >>> >> Makefiles could be from the autotools and others places. Using= > >>> >> the Makefile extention RTE_MKFILE_SUFFIX in a makefile subtree= > >>> >> using 'export RTE_MKFILE_SUFFIX=3D.XXX' to use Makefile.XXX in= > >>> >> that subtree. > >>> >>=20 > >>> >> The main reason I needed this feature was to integrate a autot= ool > >>> >> open source projects with DPDK and keep the original Makefiles= . > >>> > > >>> >Sorry I fail to understand why it is needed. > >>> >Are you trying to add autotool in DPDK? I don't think it is a go= od approach. > >>> >The DPDK must provide a pkgconfig interface to be integrated any= where. > >>>=20 > >>> I was not trying to add autotools to DPDK. On a number of times I= wanted to integrate a open source project(s) with DPDK and use DPDK=E2= =80=99s build system, but because the open source project already conta= ined Makefile files you can not use DPDK build system without modify or= moving the original Makefile files. Using this method I can just add a= exported variable and supply my own Makefile.XXX files. > >>>=20 > >>> One case was building FreeBSD source, but I did not want to modif= y FreeBSD Makefiles (or reply on previous built Makefiles as they would= not work on Linux anyway) as I was pulling the source down from freebs= d.org repo. Using a patch to add the Makefiles with a different suffix = allows me to build FreeBSD using DPDK, without having to modify or own = the FreeBSD source. I have had this problem a number of times with open= source code I did not want to modify, but just build within DPDK build= system and adding the support for a different suffix to DPDK provided = a clean way. The change does not effect the correct build system and ju= st allows someone to define a new suffix for a given subtree in the cod= e. > >> > >>Why would you like to have another project inside the DPDK files tr= ee? > >>If you want to integrate the lib inside an existing project, the so= lution > >>is pkgconfig. > > > >The goal for me was to use DPDK build system for that project, inste= ad of using autotools or some other makefile system. In the case of Fre= eBSD code, the FreeBSD build system requires FreeBSD tools to be built = as the =E2=80=98make=E2=80=99 and the Makefiles are very different on a= Linux machine. >=20 > Does anyone find this patch useful, I would hate to see this one die = as it does not effect the current builds, but adds support for using DP= DK build system without having to modify or move the existing Makefiles= . I would hate making the build system even more complicated to use it for something which is not its role. It opens the door to feature requests which are clearly out of its scop= e.