diff --git a/intel/Makefile.am b/intel/Makefile.am index 22a45f0d..09bfbae5 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -60,7 +60,8 @@ BATCHES = \ tests/gen7-3d.batch TESTS = \ - $(BATCHES:.batch=.batch.sh) + $(BATCHES:.batch=.batch.sh) \ + intel-symbol-check EXTRA_DIST = \ $(BATCHES) \ @@ -68,7 +69,8 @@ EXTRA_DIST = \ $(BATCHES:.batch=.batch-ref.txt) \ $(BATCHES:.batch=.batch-ref.txt) \ tests/test-batch.sh \ - Android.mk + Android.mk \ + $(TESTS) test_decode_LDADD = libdrm_intel.la ../libdrm.la diff --git a/intel/intel-symbol-check b/intel/intel-symbol-check new file mode 100755 index 00000000..c555e6da --- /dev/null +++ b/intel/intel-symbol-check @@ -0,0 +1,88 @@ +#!/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_INTEL_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | awk '{print $3}' | while read func; do +( grep -q "^$func$" || echo $func ) <