From patchwork Sun May 10 21:26:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3746 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B6D31603F7 for ; Sun, 10 May 2020 23:26:49 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="vCTjvoZW"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 095DF304 for ; Sun, 10 May 2020 23:26:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589146009; bh=FuU4uPDiKOXvWhAGRI2eIsvQt7QFoHw6cCM+4NNWTW4=; h=From:To:Subject:Date:From; b=vCTjvoZWA/Jqd65gAViEW1KpK86/eEyx5jTNLTShG2lwxmYbs+ZfkIudCUq8c9XKW 7W3+CEaFiS46Re5beaDNcd0Rz7bkTLW+f3T/rJ28ZDGAzn5S58/4Q7uxMpJdXlNsdY GpBRXjLMGgiRNMHoaovdW475wzC97ylIED4HAagI= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 11 May 2020 00:26:36 +0300 Message-Id: <20200510212636.13017-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] meson: Use files() instead of find_program() for internal scripts X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2020 21:26:49 -0000 Using find_program() to locate scripts part of the source tree causes meson to print messages at setup time for each of those scripts: Program ipa-sign.sh found: YES (/home/user/src/libcamera/src/ipa/ipa-sign.sh) This polutes the meson setup log with useless messages, as we know the scripts are present. Use files() instead to avoid this. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/ipa/meson.build | 2 +- src/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipa/meson.build b/src/ipa/meson.build index 56e65eaa7426..cc3837ab8525 100644 --- a/src/ipa/meson.build +++ b/src/ipa/meson.build @@ -16,7 +16,7 @@ config_h.set('IPA_MODULE_DIR', subdir('libipa') -ipa_sign = find_program('ipa-sign.sh') +ipa_sign = files('ipa-sign.sh') ipas = ['rkisp1', 'vimc'] diff --git a/src/meson.build b/src/meson.build index f605a420c3ee..c9c1008562b1 100644 --- a/src/meson.build +++ b/src/meson.build @@ -4,7 +4,7 @@ endif openssl = find_program('openssl', required : true) if openssl.found() - ipa_gen_priv_key = find_program('ipa/gen-ipa-priv-key.sh') + ipa_gen_priv_key = files('ipa/gen-ipa-priv-key.sh') ipa_priv_key = custom_target('ipa-priv-key', output : [ 'ipa-priv-key.pem' ], command : [ ipa_gen_priv_key, '@OUTPUT@' ])