From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AD70541D40; Wed, 22 Feb 2023 17:45:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F55B43133; Wed, 22 Feb 2023 17:45:02 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 85A9243133 for ; Wed, 22 Feb 2023 17:45:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677084300; x=1708620300; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=ttEGzs9YBxRtVVEVg6r73edbWGFVSIEumLHtZGlVWKo=; b=Ag65hg14+lUAFGGN685ccgOIuiTkwyAnMM8c4pQlEDR6D8M0x+kBSXiX r9ctRLhYbHndLYp7/dEyDN9qrd3wohBkfSij+X2oM7vK2m4Pfw5TZOC26 JjPc0z5YrOR/vofWAODHUFFZVuEIcnIV7Mk4HyB00ouM7tUxtVfy4btoL LfrMrDLk57khoOpB/Y7Skygl3tGNQlCHn/Wo5mMU/Q5YGzL513onOu5Vb NiPGTRpqCUPGFqEisYVIp59y3uKA82AA8tURZe4pRz9PLQO6VRcCyWYhB bnpK5gWvPhDgtuKcaLkeaYtlPhKn+m0eG/fe+H49sHa7ccCQhOdOiCJ91 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10629"; a="332974613" X-IronPort-AV: E=Sophos;i="5.97,319,1669104000"; d="scan'208";a="332974613" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2023 08:44:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10629"; a="781505171" X-IronPort-AV: E=Sophos;i="5.97,319,1669104000"; d="scan'208";a="781505171" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 22 Feb 2023 08:44:58 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 22 Feb 2023 08:44:58 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 22 Feb 2023 08:44:58 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Wed, 22 Feb 2023 08:44:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVf6oY0ueVkZaJeBTIzUnO7N1q3cbLuXFP2V38GnwBfmfOfibiaDhDS8TFbGSv3AjIx3YDBi1YzS4Lwawyg+Dgw2A2u7AN1xATQJzg2RQ4mBO0ZvX0E0/pOhMwvFoGeosbT1R9l3bG3YxgkAwEoqXnKUWDYaPBuI0hprNqYCjNuldE9NMoaQH3Hb2AWZ1HJuQaUbR68dtsN1PzxpPIdpO6c5jP7jZhHrOzJeAbD2DBV1wwu3cQqwoe94dNSZt5OCwXPCZ6sCubFo39TQY2gePB0fD7k99F+OK3eyJQ2PkjWQAWEuO7EAlTZ3tIwBx+hr9D+x1NcufdM+t8Ql3F7xRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5S1Gp7EdCzzu0EairYjadUs8vXAsY0ohREStsz1k4kc=; b=TSM8mbTt1I+B4niDHk05SiM7qrgqAtuOwph3HK4wL4VuMsyH+6vo9OHGvL518wxrIAzLd5FjqgvmZyn+YduTapTLEQeu9r4Rzi0id9oGcUsNn3veRK4Kyj3FrFLuPCz605nq3wkbU0xtkk2DoHPQg8g/PngzKnkNvPDbOaFu6GY1R4VQk2yenOjWVri4XCXwdidxo6yIflJ9HlCbiUafybg6BdOvx/t6FFwu9wD1rihPEwUEd15amky/T2PRlgLqFr4WpgYT1J+8tH3h4s1nDJL6XheYtLVRJ58m0IM7dgCLilOO5XgX+gQ1DwGjLGAqfhlc+dx/MOCg9va0Of7cDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by DS0PR11MB8070.namprd11.prod.outlook.com (2603:10b6:8:12d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Wed, 22 Feb 2023 16:44:56 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c%6]) with mapi id 15.20.6134.019; Wed, 22 Feb 2023 16:44:56 +0000 Date: Wed, 22 Feb 2023 16:44:49 +0000 From: Bruce Richardson To: Juraj =?utf-8?Q?Linke=C5=A1?= CC: , , , , , , Subject: Re: [PATCH v4 03/10] dts: add dpdk build on sut Message-ID: References: <20230117154906.860916-1-juraj.linkes@pantheon.tech> <20230213152846.284191-1-juraj.linkes@pantheon.tech> <20230213152846.284191-4-juraj.linkes@pantheon.tech> Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230213152846.284191-4-juraj.linkes@pantheon.tech> X-ClientProxiedBy: LO4P123CA0583.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:276::13) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|DS0PR11MB8070:EE_ X-MS-Office365-Filtering-Correlation-Id: 618717dc-ccdf-488e-479c-08db14f420f6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BqZ94/XSV/EqTWxml1OXaPjhfpdtChwTHEw1L9pAkJa1NcMQlu0F8nj2E7gLIq8mIe/pdGKS4Xr4KueaxRagdt3Y2H0PO9DHBinbpeGpaSWtGtxF/7mmH9B0PYARp0ATAVe9TwYJpYIj/JdiSUlnwvbGrZ/G5PeN0UmF4/uwAJTefumL7ss5R57CUq7p46FX3bSo2YXTCdI4Yc46UazQIhy84RnzvS5/PybvCmRDlhnvp1qEKiE9i3XA/Mq3FKUBG5KXUvRvevmDsHNrF0E3YX6n8EtnNCJ9otenJwXSOn3csBfyA4DDAGTjhcb1NepUrXRRUythOhVzrzpbo1megUIVnioYaDsvn8X9BA+voHb9CX3HrJncuSMLZh+66FeboRfftwdKDxlvNyc+avRci6VCWbKjhC+GqLf702qUpIjDkyJ0cSnCzj0+TQ6mBuQH+GmFS5/H2YpwkQtSN8suNE8V9lcwz2Oz+SLjxwNlkoeJlp4SNcD2Pn1xo01GkVpqoSnnSsqIO17Prw9lA0zh078d4gpzT/aT/Cuwdcc4hpSMHIfm+dvOKr9EWXud9CRxlQPVoBO4gS381cJRiBH5dHphSBYDIheXtOGi61vyk31pmA7DLTjjajja5U7zCMoWN+0QFcqc5g3Ktr9RfyZxqw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(376002)(346002)(396003)(136003)(39860400002)(366004)(451199018)(8936002)(5660300002)(4326008)(41300700001)(38100700002)(82960400001)(44832011)(2906002)(478600001)(6916009)(86362001)(186003)(6486002)(26005)(6512007)(66556008)(6506007)(83380400001)(6666004)(316002)(8676002)(66476007)(66946007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bkFRNTZCZXlNNGR0b3lCTWNMeGEvMVlhanNPVlM2UkdhTXUwa08rcDhsK2J1?= =?utf-8?B?ZUFIWFV1aG5VK0M1Z0JPVjhSRng2MWhnclMrREFkSmRibTVzaXUxVmRzTG92?= =?utf-8?B?QTB1aXRkcVhtV1pRT0lsaENZZm5CeHhEUDdvc1BUeG14WXRla2l4UmZiYWd5?= =?utf-8?B?Y0ZjYlVkZmFqYmpoUnhXSjIwZjFESkZsZTBlRTFaTGgzYllXUlBtM0RrVnZk?= =?utf-8?B?RiswcHkzZ2UyeVI1eVRmNllwdGE4a0lKbjUzdjRRUC9oSDdoNWVJWll5NXZ2?= =?utf-8?B?SmRTMkpmYkJoVkE1SUk2V05tOUt1bHR1MmNUSWhCQmhwNW42OHpEVTh4Z1V2?= =?utf-8?B?UkVrbkxvd1FkV2Y1VzdPREY0MkExSnErZjFpTlQ4eGxtcG05Rkg4cVIzUlBs?= =?utf-8?B?YXJsT1BHc2tKMFJ4eDBIaFhDN0M5a09zUnU0TXdzZ0F3ZzVDN3d1SzdZWThF?= =?utf-8?B?MGdUK1dsYXcxRTJsbUlETTdUd2tOcXZxQVcwOGdFSit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mTEJaQy9oNmJZamFLaTZMbXlNbW11?= =?utf-8?B?Z3Z5WERMOXY0eG9Ic0RWVmtsTm5BT3ZpcW96Zi8xS0gweGFpQXE0SFozZE9G?= =?utf-8?B?VC9kMEc5V3hRb3JVRkMyZEdQNXJvTXBDRS9ITkFOV3gvMWEvNEpSUlMrR05D?= =?utf-8?B?eGpTMkJQamZFZ2E4RkdMYWQ4eHp0dnVoRndSblBPVnlFUFVTL3Urb1J1enZT?= =?utf-8?B?U29CSGFySm02L3BYNFdjbjlPL1l4SXQyUGdUZE8vT2o0aDErNnRCalQ1bDdv?= =?utf-8?B?emVBL0ViT2JudEV5RENkYWt0dXdvRFNCeWZDT1pTZzl0cXpuUytiOGNpZ25H?= =?utf-8?B?VkdEYzUwNWFYazV3YjZ6MFFoZ3JQbGsrMWpTMTlBekNHOUtYSEtXZDYxRHlq?= =?utf-8?B?S0IrVGdpdGhrMm9KRUlpSWxzRFMzUHhIQnVpaFNZODUxYTdvTFROMEdnc2VL?= =?utf-8?B?ekNKS1JBcHBaVzZwWVk5dG9zTWhZN3IxMFZKT1ltTVV0MDcvUUNvOGVyalVo?= =?utf-8?B?VlNvM2NmK1JyQnR5NFpYRkowQUNBc2F2VHFuUFE4aDR0NVU1Z2xOZG9JVDNO?= =?utf-8?B?ZkRLV1FaeE1tdFl5SktIc0dKQ21FcmgvaWVtSkZxMmtNeXlnUExucWc1aDMx?= =?utf-8?B?akhSd2tkMzZhbGNYS25IRFIvTkhjUUd5ckZpRXM0L0oyV0YzY2FEOVhTOXVM?= =?utf-8?B?c2sxai9BaXNON1NaZWZibk91MWlQTVRnSVpGenI2MVp5YUh4dGp1dTJOdjJr?= =?utf-8?B?Y3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 618717dc-ccdf-488e-479c-08db14f420f6 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2023 16:44:56.3300 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l0sLKDpeSoUt4sfk1bkDwuwL6dEn+On6lamd/d5dHoJVgKG85R6R+Yj74bHo9P2mnjUH62K2YbRWJ5L9WPDKjzRla4yfUqqMaVzS3ELR+PQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8070 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, Feb 13, 2023 at 04:28:39PM +0100, Juraj Linkeš wrote: > Add the ability to build DPDK and apps on the SUT, using a configured > target. > > Signed-off-by: Juraj Linkeš > --- > dts/framework/config/__init__.py | 2 + > dts/framework/exception.py | 17 ++ > dts/framework/remote_session/os_session.py | 90 +++++++++- > dts/framework/remote_session/posix_session.py | 126 ++++++++++++++ > .../remote_session/remote/remote_session.py | 38 ++++- > .../remote_session/remote/ssh_session.py | 68 +++++++- > dts/framework/settings.py | 44 ++++- > dts/framework/testbed_model/__init__.py | 1 + > dts/framework/testbed_model/dpdk.py | 33 ++++ > dts/framework/testbed_model/sut_node.py | 158 ++++++++++++++++++ > dts/framework/utils.py | 19 ++- > 11 files changed, 580 insertions(+), 16 deletions(-) > create mode 100644 dts/framework/testbed_model/dpdk.py > > + > + def build_dpdk( > + self, > + env_vars: EnvVarsDict, > + meson_args: MesonArgs, > + remote_dpdk_dir: str | PurePath, > + remote_dpdk_build_dir: str | PurePath, > + rebuild: bool = False, > + timeout: float = SETTINGS.compile_timeout, > + ) -> None: > + try: > + if rebuild: > + # reconfigure, then build > + self._logger.info("Reconfiguring DPDK build.") > + self.remote_session.send_command( > + f"meson configure {meson_args} {remote_dpdk_build_dir}", > + timeout, > + verify=True, > + env=env_vars, > + ) > + else: > + # fresh build - remove target dir first, then build from scratch > + self._logger.info("Configuring DPDK build from scratch.") > + self.remove_remote_dir(remote_dpdk_build_dir) > + self.remote_session.send_command( > + f"meson {meson_args} {remote_dpdk_dir} {remote_dpdk_build_dir}", Minor nit - this should be "meson setup" rather than just "meson". Latest versions of meson complain about omitting the "setup" operation. /Bruce