From patchwork Mon Nov 20 16:28:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Jarry X-Patchwork-Id: 134486 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8CA7A43380; Mon, 20 Nov 2023 17:28:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73C1342DDE; Mon, 20 Nov 2023 17:28:32 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 5A84F42DD2 for ; Mon, 20 Nov 2023 17:28:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700497709; 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; bh=hO5JSPWKXj54bxl/5cLBRnQQR3Ddhi5qzTwubjIK0GE=; b=Fj8e47cfKNHvSzHfYLWZHOEMvQTGgWYF90nwrj5zXYsAA+WxsMfAaww7fp8iPKJUKXaSWn B2TcA1lHykUrdfBDgHX+hEnaplyH5FYO2PpnNK+lpP2TzrQSUIWkeN8DTWXsk5/lXi6DFB X0yDUW1yPv+fdRFsokq9P2POIY6NE3w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-261-53sXJOCFMyuS7Z7mckaQzg-1; Mon, 20 Nov 2023 11:28:28 -0500 X-MC-Unique: 53sXJOCFMyuS7Z7mckaQzg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 41457811E7B; Mon, 20 Nov 2023 16:28:28 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.208.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98C8C1C060AE; Mon, 20 Nov 2023 16:28:27 +0000 (UTC) From: Robin Jarry To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH] buildtools: allow reusing dpdk-cmdline-gen.py when used a subproject Date: Mon, 20 Nov 2023 17:28:15 +0100 Message-ID: <20231120162814.74764-2-rjarry@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.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 When DPDK is used as a subproject, allow declaring wrap files that provide dpdk-cmdline-gen.py. This way, find_program('dpdk-cmdline-gen.py') will return the path to the script in the DPDK subproject source tree. Link: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section Link: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_find_program Cc: Bruce Richardson Signed-off-by: Robin Jarry Acked-by: Bruce Richardson --- buildtools/subproject/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildtools/subproject/meson.build b/buildtools/subproject/meson.build index 3192efaa406f..985ce76a9384 100644 --- a/buildtools/subproject/meson.build +++ b/buildtools/subproject/meson.build @@ -19,3 +19,5 @@ else endif libdpdk_dep = dpdk_dep + +meson.override_find_program('dpdk-cmdline-gen.py', file('../dpdk-cmdline-gen.py'))