From mboxrd@z Thu Jan 1 00:00:00 1970 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 94A4C6A6F for ; Mon, 29 Feb 2016 09:23:25 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id p65so57378286wmp.1 for ; Mon, 29 Feb 2016 00:23:25 -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=aRa0tGJRiYkLVG53DbSp4YdoOqiGRG40snurQ+BilGs=; b=ZpmoQekpObDMLU34SI0OahUnkQumbT0ueAI7zFZqoeMcYSCe4V/0ZgeRaildx1S5En 2kTH9vPNKbeoqXc4pdZ+egdemRdvlwnjdtZDZ9e/Y+IlZWAowxIM21MTfLtA7LqM9KnW TO3eOS1XVFu89MP7jUKpA+zuQDGqucBucmroWyGxOJzqTdblOjWyg8puF9VMa/G+oh/N +pDMq1pdZNj5wZ6u0paS02aIffdBuShztRr9up4CnIhUdE82roZMXg84qSoxnkO04l6z 5k5bIJ943C7leY0PZp2GnSF4B4vjE68BsJiLMA8ZFBtPpoteoRm65jrDRJVwfM7MVp30 tCuQ== 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=aRa0tGJRiYkLVG53DbSp4YdoOqiGRG40snurQ+BilGs=; b=Dlx5WGwDW3Lfr24isgeCcX0FM1yjbQI7rRoy5Iq+1SifhsGKeFNkmLfnaJPx9Bhxde wN6HwrPldIZHFp/wQnALFZpytRIyJcRILsVTOGl517U19EeWMemEr/Cjk2mUEcxKYM6b /xAy5zqIFl7MSmSK0uHQXLca+hnFZnCXBHR4Jef7AYfRG9Emf1FX1vq+hbB5HF+EBu7O 0BDmyscDHA1pdAz/fxI565X0zsqr8/yGH9OsHdGZR4MdiJ407iUvyUz9ACtqf+xWeJy9 RZpUhZDaJ4xwA4obpF5PNf+O4nzcum0fba1t+r7Pulu8BZgkm6oyVvOu1jps0L6FQXuk yWEw== X-Gm-Message-State: AD7BkJKAXGVMRysO5POKnUrtTIhf6+xJFkGJ50HbGC5ebWKKGyGJ6HmuaB5OLk48Z4DmCpBc X-Received: by 10.28.19.204 with SMTP id 195mr11047421wmt.1.1456734205387; Mon, 29 Feb 2016 00:23:25 -0800 (PST) Received: from xps13.localnet (171.36.101.84.rev.sfr.net. [84.101.36.171]) by smtp.gmail.com with ESMTPSA id k8sm24764306wjr.38.2016.02.29.00.23.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Feb 2016 00:23:24 -0800 (PST) From: Thomas Monjalon To: "Wiles, Keith" Date: Mon, 29 Feb 2016 09:21:50 +0100 Message-ID: <1751683.N1tvm7xWVW@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1455039314-86891-1-git-send-email-keith.wiles@intel.com> <1976319.EWLy02CyDg@xps13> 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: Mon, 29 Feb 2016 08:23:25 -0000 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 autotool > >> 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 good a= pproach. > >The DPDK must provide a pkgconfig interface to be integrated anywher= e. >=20 > I was not trying to add autotools to DPDK. On a number of times I wan= ted to integrate a open source project(s) with DPDK and use DPDK=E2=80=99= s build system, but because the open source project already contained M= akefile files you can not use DPDK build system without modify or movin= g the original Makefile files. Using this method I can just add a expor= ted variable and supply my own Makefile.XXX files. >=20 > One case was building FreeBSD source, but I did not want to modify Fr= eeBSD Makefiles (or reply on previous built Makefiles as they would not= work on Linux anyway) as I was pulling the source down from freebsd.or= g repo. Using a patch to add the Makefiles with a different suffix allo= ws 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 sou= rce code I did not want to modify, but just build within DPDK build sys= tem and adding the support for a different suffix to DPDK provided a cl= ean way. The change does not effect the correct build system and just a= llows someone to define a new suffix for a given subtree in the code. Why would you like to have another project inside the DPDK files tree? If you want to integrate the lib inside an existing project, the soluti= on is pkgconfig.