From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6A28A04DD; Mon, 16 Nov 2020 21:35:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 986301DB9; Mon, 16 Nov 2020 21:35:20 +0100 (CET) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by dpdk.org (Postfix) with ESMTP id 17646F94 for ; Mon, 16 Nov 2020 21:35:19 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 9FC4258015D; Mon, 16 Nov 2020 15:35:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 16 Nov 2020 15:35:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= VMwaJKpnCEcL0a7R1UJ75JjMlhzcOTJOXq69n1gAQ78=; b=AdPYKp30ZSryBFzk fZ4nws88vCP8Djzg15lTJ7hxF8EizvLkK02nY6m0smHwibXabdclImQmvdgcS/MK 76pnMtDg8MNuU0tb4OCOODDUrhBWt8U44HTTguQYREJuknmJYP1rcZEctBjTpdTH m1pobncOoj2z8GLrpM055ZUyco+yw4twro8JItz3HlzpZ10PQTpZjWOmzF1OhGbi 1aUzLGvyy2xq8/Dou1ESuWtrV+p58NGPoxlc+jkqrsjxQo93YUPMqlj62YPU2U9G WGqg8p+vo/22be9X2XGKqvmZipbJIaDFO4TbJXtRHDn+bJ2II82PVE18+IrcGjq9 Tzh6VA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=VMwaJKpnCEcL0a7R1UJ75JjMlhzcOTJOXq69n1gAQ 78=; b=fIb1m9QIMFbMrN9SfCm960a6RlAVFyuyi1QK5zY5lfal7Ys6B21NKxG77 YICcQl6SXs/hp74ygNjYkw+2ln+qIKQjQOfCxw1u5WuSv/CMKoyh99ARFiSDFGUp c1cetKdn8IPeOYkEqkpe8OX0p73dHHbCFmRKqrHNPGO5ybp0SKO5h2e3SJIjJP/o b1fvMc8vnJXvSDhTHode5WR2y8+TKNtImJkHvkHX2TjuUAiTqaRVmYI3uoeyxZ+x tCS61Du1qDDvZ4lTy4dfO0/E5ExwSB6swkcO6FMNBdzAMzyQ3CKdgvpSsQVREwZo OmREX+awvGKGfCbca7UCcXAWd7XGA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefuddgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedujedukeeludejtedvtefgvdffjeejleekteejffekveduffeg geffleetudetheenucffohhmrghinhepthigthdrihhtnecukfhppeejjedrudefgedrvd dtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 6DEDA3064AA6; Mon, 16 Nov 2020 15:35:15 -0500 (EST) From: Thomas Monjalon To: Juraj =?utf-8?B?TGlua2XFoQ==?= , Bruce Richardson Cc: "Ruifeng.Wang@arm.com" , "Honnappa.Nagarahalli@arm.com" , "Phil.Yang@arm.com" , "vcchunga@amazon.com" , "Dharmik.Thakkar@arm.com" , "jerinjacobk@gmail.com" , "hemant.agrawal@nxp.com" , "ajit.khaparde@broadcom.com" , "ferruh.yigit@intel.com" , "dev@dpdk.org" , david.marchand@redhat.com Date: Mon, 16 Nov 2020 21:35:13 +0100 Message-ID: <4553269.LkjHWWX2LK@thomas> In-Reply-To: <20201116161625.GD1469@bricha3-MOBL.ger.corp.intel.com> References: <1605267483-13167-1-git-send-email-juraj.linkes@pantheon.tech> <07b6f43151274919aa062765e4e1f819@pantheon.tech> <20201116161625.GD1469@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v12 01/14] build: alias default build as generic 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 16/11/2020 17:16, Bruce Richardson: > On Mon, Nov 16, 2020 at 03:50:31PM +0000, Juraj Linke=C5=A1 wrote: > > From: Thomas Monjalon > > > 13/11/2020 15:31, Juraj Linke=C5=A1: > > > > The current machine=3D'default' build name is not descriptive. The > > > > actual default build is machine=3D'native'. Add an alternative stri= ng > > > > which does the same build and better describes what we're building: > > > > machine=3D'generic'. Leave machine=3D'default' for backwards compat= ibility. > > >=20 > > > What? > > >=20 > > > "generic" means... nothing. > > >=20 > >=20 > > An absence of anything means nothing. Generic means "characteristic of = or relating to a class or group of things; not specific", which is pretty m= uch what we're looking for. > >=20 > > > "default" should be the most common set of options to make a build wo= rk > > > everywhere. > >=20 > > What we want is a value of machine that would "be the most common set o= f options to make a build work everywhere" and using the above definition o= f generic, it fits very well. > > The reason I said the actual default build is machine=3D'native' is bec= ause that's how the machine option is defined in meson_options.txt. It foll= ows from what default actually means - "a preselected option adopted by a c= omputer program or other mechanism when no alternative is specified by the = user or programmer". Default then means no user input, which means machine= =3D'native', which means the default build is the default build. > >=20 > > What ""default" should mean" looks like an attempt at redefining what t= he word actually means and leads to confusion, in my experience. Hence an a= ttempt to remove the potential ambiguity. > >=20 >=20 > I would tend to agree that "generic" is probably a better term than > "default" for what we use it for here in the config. In the past, we had a different definition with make config. I am just trying to be consistent. Even with meson, default means "minimal CPU instructions". Example in devtools/test-meson-builds.sh: "test compilation with minimal x86 instruction set" is called build-x86-default. In config/meson.build: " machine type 'default' is special, it defaults to the per arch agreed common minimal baseline needed for DPDK. That might not be the most optimized, but the most portable version while still being able to support the CPU features required for DPDK. This can be bumped up by the DPDK project, but it can never be an invariant like 'native' " So, why this definition is called "generic" in meson Arm config?