From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f172.google.com (mail-wj0-f172.google.com [209.85.210.172]) by dpdk.org (Postfix) with ESMTP id D6E22282 for ; Tue, 31 Jan 2017 15:16:21 +0100 (CET) Received: by mail-wj0-f172.google.com with SMTP id b20so14592055wjs.2 for ; Tue, 31 Jan 2017 06:16:21 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=kcpxgSd8i/t2g/Ltyh3l8Ai6aJBHoe6P9llZiMIX3oQ=; b=aWmCjztG0CU/tZD7rdFEGOyF/qLNlNf/6scUKdCl1sro1dHu4R5iAcbpePBr5c8jqR eyEo0NNzjG76HbAE3e/HO5k5wKX0vyxwza8Aqkfq/R1FZKJj9LnhSM9+mF+MVfbVKpQb 09YnsadZUugmVhzdWYU2ha696nYAiGk4uhGY9iqeZmvh/gDHDKi9ZkfPEINVLs6oovBE 0/OCh9HgwU1H3Ch3PEv4yuwZaEZh/FiTpnIPTsH/u0cVj1DYiKYVUM6vsTtKd5hO6Fq5 UoU7W7wIFxhtJB1BDsdS56HcA5CotmiPe93cqJY4JM6+9eU/oqvT0zQIZQ9Tw5GaEb+j wpHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=kcpxgSd8i/t2g/Ltyh3l8Ai6aJBHoe6P9llZiMIX3oQ=; b=osFlLdP9NGzYUwp11s3ftlK4ubPr3Ct3Zk+w4LFcMklqQUMB6KessYq6fXHpXvAx2K /kFyRaC3VIdKn3Jma7DZDnKjxNGowbNSe6RTdAla3J1uZ2qIbq/xC4eSB+BtuKSJTZ/e fJkM9JeMzVZi2t9zbKdGwzVxqUYyOAq4mPBQz1Tpdp0gVaUzipNAW7ZpRgDjLa51+eZs GZ+nQVn8jxY4S8LEcfrIkGxRMbzm4GOaHWStwRiKHSTrxGIAcXQyyIifSxrDWl9t8OTB 2E44w8fa1AKgRCsxo6ci/bguN0uGtSbqE3uQGiELzofK13iHEeVv1BYD4iAO/hV3DNqA pnZw== X-Gm-Message-State: AIkVDXKNV3b1IXX8NeV/ZMTvL9JtV69sHfUMns/STsgvfAqy5K4jn14zDE3l0e2Y/N+JfBkT X-Received: by 10.223.176.16 with SMTP id f16mr22758693wra.113.1485872181388; Tue, 31 Jan 2017 06:16:21 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id d42sm28558664wrd.7.2017.01.31.06.16.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 06:16:20 -0800 (PST) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org Date: Tue, 31 Jan 2017 15:16:19 +0100 Message-ID: <2710569.WpYSWQ2PKI@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170131121427.31279-2-ferruh.yigit@intel.com> References: <20170131121427.31279-1-ferruh.yigit@intel.com> <20170131121427.31279-2-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 2/2] mk: move PMD libraries to applications X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 14:16:22 -0000 2017-01-31 12:14, Ferruh Yigit: > Same PMDs provide device specific APIs. Bond and xenvirt are existing > samples for this. s/Same/Some/ > And since these are PMD libraries, there are two options on how to link > them. > > 1- They can be fully included to all applications, using common > rte.app.mk file by default. > > 2- They can be explicitly linked to applications that use device > specific API. > > Currently option one is in use, this patch switches to the option two. > > Moves library linking to the application of Makefile that uses device > specific API. > > This prevent including these libraries into final applications that > don't use these device specific APIs. That's an interesting point of view. What about the other libraries automatically linked in rte.app.mk? Could we make each application decide which library they want to be linked with?