diff --git a/tegra/Makefile.am b/tegra/Makefile.am index a6474879..efa14f9c 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 00000000..40208311 --- /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 ) <