From patchwork Wed Apr 1 16:15:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141311 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 36B7F9F399 for ; Wed, 1 Apr 2015 16:12:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64E0020154 for ; Wed, 1 Apr 2015 16:12:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2595720373 for ; Wed, 1 Apr 2015 16:12:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3ACC06E8D9; Wed, 1 Apr 2015 09:12:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 204186E8D3 for ; Wed, 1 Apr 2015 09:12:53 -0700 (PDT) Received: by wiaa2 with SMTP id a2so72765377wia.0 for ; Wed, 01 Apr 2015 09:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jyHYcFrptH4mJ3pW0P3e05Kwh5C1o5x/g7jqaAjcT1Y=; b=y27761+nELOqnyS4z0Re2hMw/iipa6zQs5jTZPgLmDznDli5EuQF5nnWWUZJ5RmdZ9 Ob8fzRIi57XeIuRUaZOukjzO7McTB4D/gFAevEzSl7eZ2mag4BhJC0CfUo+q48eE3/jU KEhlLoLs3cJmCTM5eZYTT9IoKa0MCG3/1rqXY17HNhKYW+C6DROwZxucli3SkEZzPXRO U+sEHB1n5leSEzx12iTFXC6/J3/1ikD6vrkmVAhd3oRUFRBvB0bZGXKHynIMveQCUoW1 mRgBWgq/tya1F3cHJURR1cVplYs+/qRCxC/TBAdJ2IsaLU1RqMKT3f7AF86YdpnMehM2 ELIw== X-Received: by 10.194.48.74 with SMTP id j10mr87031864wjn.38.1427904772349; Wed, 01 Apr 2015 09:12:52 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ge8sm3319498wjc.32.2015.04.01.09.12.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:51 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 21/24] tegra: add symbols test Date: Wed, 1 Apr 2015 17:15:32 +0100 Message-Id: <1427904935-14387-22-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> References: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Emil Velikov --- tegra/Makefile.am | 3 +++ tegra/tegra-symbol-check | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 tegra/tegra-symbol-check diff --git a/tegra/Makefile.am b/tegra/Makefile.am index a647487..efa14f9 100644 --- a/tegra/Makefile.am +++ b/tegra/Makefile.am @@ -21,3 +21,6 @@ libdrm_tegrainclude_HEADERS = tegra.h pkgconfigdir = @pkgconfigdir@ pkgconfig_DATA = libdrm_tegra.pc + +TESTS = tegra-symbol-check +EXTRA_DIST = $(TESTS) diff --git a/tegra/tegra-symbol-check b/tegra/tegra-symbol-check new file mode 100755 index 0000000..4020831 --- /dev/null +++ b/tegra/tegra-symbol-check @@ -0,0 +1,30 @@ +#!/bin/bash + +# The following symbols (past the first five) are taken from the public headers. +# A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <