aboutsummaryrefslogtreecommitdiffstats
path: root/omap
diff options
context:
space:
mode:
authorEmil Velikov2015-03-31 14:12:06 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit62b35fb2756ef37ff4bf3ac2eb5761d1fc95c089 (patch)
tree50f043b1ed85ab11929a9d0359c8778f53dbe3db /omap
parent9f8fb4686282cee0d54fb48f50772595fd4eedd3 (diff)
downloadexternal-libgbm-62b35fb2756ef37ff4bf3ac2eb5761d1fc95c089.tar.gz
external-libgbm-62b35fb2756ef37ff4bf3ac2eb5761d1fc95c089.tar.xz
external-libgbm-62b35fb2756ef37ff4bf3ac2eb5761d1fc95c089.zip
omap: add symbols test
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'omap')
-rw-r--r--omap/Makefile.am3
-rwxr-xr-xomap/omap-symbol-check35
2 files changed, 38 insertions, 0 deletions
diff --git a/omap/Makefile.am b/omap/Makefile.am
index d6f52981..b34fba6e 100644
--- a/omap/Makefile.am
+++ b/omap/Makefile.am
@@ -20,3 +20,6 @@ libdrm_omapinclude_HEADERS = omap_drmif.h
20 20
21pkgconfigdir = @pkgconfigdir@ 21pkgconfigdir = @pkgconfigdir@
22pkgconfig_DATA = libdrm_omap.pc 22pkgconfig_DATA = libdrm_omap.pc
23
24TESTS = omap-symbol-check
25EXTRA_DIST = $(TESTS)
diff --git a/omap/omap-symbol-check b/omap/omap-symbol-check
new file mode 100755
index 00000000..759c84bd
--- /dev/null
+++ b/omap/omap-symbol-check
@@ -0,0 +1,35 @@
1#!/bin/bash
2
3# The following symbols (past the first five) are taken from the public headers.
4# A list of the latter should be available Makefile.am/libdrm_omap*HEADERS
5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk '{print $3}'| while read func; do
7( grep -q "^$func$" || echo $func ) <<EOF
8__bss_start
9_edata
10_end
11_fini
12_init
13omap_bo_cpu_fini
14omap_bo_cpu_prep
15omap_bo_del
16omap_bo_dmabuf
17omap_bo_from_dmabuf
18omap_bo_from_name
19omap_bo_get_name
20omap_bo_handle
21omap_bo_map
22omap_bo_new
23omap_bo_new_tiled
24omap_bo_ref
25omap_bo_size
26omap_device_del
27omap_device_new
28omap_device_ref
29omap_get_param
30omap_set_param
31EOF
32done)
33
34test ! -n "$FUNCS" || echo $FUNCS
35test ! -n "$FUNCS"