From 7c7d1f3c9cb62a15bfcd3c163fe2cd3433a29d4d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 19:24:23 +0100 Subject: freedreno: add symbols test Signed-off-by: Emil Velikov --- freedreno/Makefile.am | 3 ++- freedreno/freedreno-symbol-check | 52 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100755 freedreno/freedreno-symbol-check (limited to 'freedreno') diff --git a/freedreno/Makefile.am b/freedreno/Makefile.am index 407ab706..27e6aa6c 100644 --- a/freedreno/Makefile.am +++ b/freedreno/Makefile.am @@ -24,4 +24,5 @@ libdrm_freedrenocommoninclude_HEADERS = $(LIBDRM_FREEDRENO_H_FILES) pkgconfigdir = @pkgconfigdir@ pkgconfig_DATA = libdrm_freedreno.pc -EXTRA_DIST = Android.mk +TESTS = freedreno-symbol-check +EXTRA_DIST = Android.mk $(TESTS) diff --git a/freedreno/freedreno-symbol-check b/freedreno/freedreno-symbol-check new file mode 100755 index 00000000..71154489 --- /dev/null +++ b/freedreno/freedreno-symbol-check @@ -0,0 +1,52 @@ +#!/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_freedreno.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <