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 9167E48862; Mon, 29 Sep 2025 12:05:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D67640698; Mon, 29 Sep 2025 12:05:50 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 8343040693 for ; Mon, 29 Sep 2025 12:05:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759140349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nu+WfkMGj+BJ5BaMCy0Dvck7LmorwaJFbiTqc3Rw92c=; b=g+jWDqFZKbgtRWV3yUP+eZ4DxFNI3XTj+LpFzKgTrf6yq9DniVK3LaDv3gJ0DV1bcQAmYH /1h4Gw5Ul/nMinuNw0NAJzPwQQt8DQtvRxWp0VtU2occYqS72La1KQDhRM9iJG2YyQN4ks YKcgyvl/pYKRaX23heh+cxzF2whxi2c= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-508-Fze5w-KtM7Gp4rbFeBaVLw-1; Mon, 29 Sep 2025 06:05:46 -0400 X-MC-Unique: Fze5w-KtM7Gp4rbFeBaVLw-1 X-Mimecast-MFC-AGG-ID: Fze5w-KtM7Gp4rbFeBaVLw_1759140345 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E99D4195609E; Mon, 29 Sep 2025 10:05:44 +0000 (UTC) Received: from rh.redhat.com (unknown [10.45.224.59]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6A9CC19560A2; Mon, 29 Sep 2025 10:05:42 +0000 (UTC) From: Kevin Traynor To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com, thomas@monjalon.net, Kevin Traynor Subject: [PATCH v3 2/2] build: add backward compatibility for wildcarding nested drivers Date: Mon, 29 Sep 2025 11:05:28 +0100 Message-ID: <20250929100528.18365-3-ktraynor@redhat.com> In-Reply-To: <20250929100528.18365-1-ktraynor@redhat.com> References: <20250924123422.224988-1-ktraynor@redhat.com> <20250929100528.18365-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: XrgnAG3vua3UXKGEbF2XdRjpoxPfLmmQ4314rGYFbJE_1759140345 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 Up until DPDK 25.03 'net/*' could be used with meson options enable_drivers or disable_drivers to explicitly enable or disable all net drivers. In DPDK 25.03 commit c1d145834f28 ("net/intel: move Intel drivers to a subdirectory") moved Intel drivers to 'net/intel/*' and 'net/*' no longer enabled or disabled the Intel drivers. Enable recursive wildcard pattern '**' and expand wildcard handling to include nested drivers. e.g. 'net/*' will also enable/disable drivers in 'net/*/*' This adds backward compatibility so that so that 'net/*' will continue to enable/disable Intel and any future nested drivers. Fixes: c1d145834f28 ("net/intel: move Intel drivers to a subdirectory") Signed-off-by: Kevin Traynor Acked-by: Bruce Richardson --- buildtools/list-dir-globs.py | 2 +- drivers/meson.build | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/buildtools/list-dir-globs.py b/buildtools/list-dir-globs.py index fb8619db64..a8a3926d49 100755 --- a/buildtools/list-dir-globs.py +++ b/buildtools/list-dir-globs.py @@ -16,5 +16,5 @@ for path in sys.argv[1].split(','): if path: - for p in iglob(os.path.join(root, path)): + for p in iglob(os.path.join(root, path), recursive=True): if os.path.isdir(p): print(os.path.relpath(p, start=root).replace('\\', '/')) diff --git a/drivers/meson.build b/drivers/meson.build index 2f32a8559f..7163b5ddf1 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -57,4 +57,7 @@ foreach driver_option : ['disable_drivers', 'enable_drivers'] # use new name instead of legacy name driver = driver_map[driver] + elif driver.endswith('/*') + # make wildcard recursive to include nested drivers + driver = driver + '*' endif if driver_option == 'disable_drivers' @@ -71,5 +74,5 @@ require_drivers = true if enable_drivers.length() == 0 require_drivers = false - enable_drivers = run_command(list_dir_globs, '*/*,*/*/*', check: true).stdout().split() + enable_drivers = run_command(list_dir_globs, '**', check: true).stdout().split() endif -- 2.51.0