From patchwork Mon Oct 3 17:26:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Becker X-Patchwork-Id: 9361039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6B6576075E for ; Tue, 4 Oct 2016 01:05:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E50E28ADF for ; Tue, 4 Oct 2016 01:05:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F93928AE3; Tue, 4 Oct 2016 01:05:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 941C228ADF for ; Tue, 4 Oct 2016 01:05:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D7266E5C6; Tue, 4 Oct 2016 01:05:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 522 seconds by postgrey-1.35 at gabe; Mon, 03 Oct 2016 17:35:49 UTC Received: from heiko-becker.de (j61898.servers.jiffybox.net [185.21.103.105]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F1706E0BA for ; Mon, 3 Oct 2016 17:35:49 +0000 (UTC) Received: from localhost.localdomain (x2f7f563.dyn.telefonica.de [2.247.245.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by heiko-becker.de (Postfix) with ESMTPSA id B51AB1D60C6; Mon, 3 Oct 2016 19:27:05 +0200 (CEST) From: Heiko Becker To: dri-devel@lists.freedesktop.org Subject: [PATCH] *-symbol-check: Don't hard-code nm executable Date: Mon, 3 Oct 2016 19:26:31 +0200 Message-Id: <20161003172631.28199-1-heirecka@exherbo.org> X-Mailer: git-send-email 2.10.0 X-Mailman-Approved-At: Tue, 04 Oct 2016 01:05:01 +0000 Cc: Heiko Becker X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Helpful if your nm executable has a prefix based on the architecture, for example. Signed-off-by: Heiko Becker --- amdgpu/amdgpu-symbol-check | 2 +- configure.ac | 1 + etnaviv/etnaviv-symbol-check | 2 +- exynos/exynos-symbol-check | 2 +- freedreno/freedreno-symbol-check | 2 +- intel/intel-symbol-check | 2 +- libkms/kms-symbol-check | 2 +- nouveau/nouveau-symbol-check | 2 +- omap/omap-symbol-check | 2 +- radeon/radeon-symbol-check | 2 +- tegra/tegra-symbol-check | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/amdgpu/amdgpu-symbol-check b/amdgpu/amdgpu-symbol-check index 648db9b..7e6d5f9 100755 --- a/amdgpu/amdgpu-symbol-check +++ b/amdgpu/amdgpu-symbol-check @@ -3,7 +3,7 @@ # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS -FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do ( grep -q "^$func$" || echo $func ) <