From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v8 03/10] eal: add new rte_os.h header to build system Date: Tue, 02 Apr 2019 22:47:58 +0200 Message-ID: <9537388.5AKJxibmNW@xps> References: <20190306041634.12976-1-anand.rawat@intel.com> <20190402035458.14664-4-anand.rawat@intel.com> <2058052.CBssHhMYLK@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, pallavi.kadam@intel.com, ranjit.menon@intel.com, jeffrey.b.shaw@intel.com, bruce.richardson@intel.com To: Anand Rawat Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 0446D1B184 for ; Tue, 2 Apr 2019 22:48:01 +0200 (CEST) In-Reply-To: <2058052.CBssHhMYLK@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 02/04/2019 21:56, Thomas Monjalon: > 02/04/2019 05:54, Anand Rawat: > > Added rte_os.h files to support OS specific functionality. > > Updated build system to contain OS headers in the include > > path. > > > > Signed-off-by: Anand Rawat > > Reviewed-by: Pallavi Kadam > > --- > > --- a/meson.build > > +++ b/meson.build > > -global_inc = include_directories('.', 'config', 'lib/librte_eal/common/include') > > +global_inc = include_directories('.', 'config', > > + 'lib/librte_eal/common/include', > > + 'lib/librte_eal/@0@/eal/include'.format(host_machine.system())) > > After having worked on rte_kni_common.h which is only in Linux, > I think we should add rte_os.h in meson file of each OS: > - lib/librte_eal/linux/eal/meson.build > - lib/librte_eal/freebsd/eal/meson.build > - lib/librte_eal/windows/eal/meson.build I confirm: "global_inc" is used in "includes" variable but not in "headers" variable, so rte_os.h is not installed as other files in "headers". We must fill "env_headers" which is pulled by: headers = common_headers + env_headers I will fix it before merging in master if you agree.