aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorEmil Velikov2015-03-31 14:04:54 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit9f8fb4686282cee0d54fb48f50772595fd4eedd3 (patch)
tree9ad22babf0ce6c3df993e00440464af756246e9f /exynos
parentb0d4ee6907811337a40780e9c7ae8f0fc65914c6 (diff)
downloadexternal-libdrm-9f8fb4686282cee0d54fb48f50772595fd4eedd3.tar.gz
external-libdrm-9f8fb4686282cee0d54fb48f50772595fd4eedd3.tar.xz
external-libdrm-9f8fb4686282cee0d54fb48f50772595fd4eedd3.zip
exynos: add symbols test
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/Makefile.am3
-rwxr-xr-xexynos/exynos-symbol-check37
2 files changed, 40 insertions, 0 deletions
diff --git a/exynos/Makefile.am b/exynos/Makefile.am
index a9da0ff5..0136a619 100644
--- a/exynos/Makefile.am
+++ b/exynos/Makefile.am
@@ -23,3 +23,6 @@ libdrm_exynosinclude_HEADERS = exynos_drmif.h
23 23
24pkgconfigdir = @pkgconfigdir@ 24pkgconfigdir = @pkgconfigdir@
25pkgconfig_DATA = libdrm_exynos.pc 25pkgconfig_DATA = libdrm_exynos.pc
26
27TESTS = exynos-symbol-check
28EXTRA_DIST = $(TESTS)
diff --git a/exynos/exynos-symbol-check b/exynos/exynos-symbol-check
new file mode 100755
index 00000000..1a1be89e
--- /dev/null
+++ b/exynos/exynos-symbol-check
@@ -0,0 +1,37 @@
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_exynos*_HEADERS
5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.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
13exynos_bo_create
14exynos_bo_destroy
15exynos_bo_from_name
16exynos_bo_get_info
17exynos_bo_get_name
18exynos_bo_handle
19exynos_bo_map
20exynos_device_create
21exynos_device_destroy
22exynos_prime_fd_to_handle
23exynos_prime_handle_to_fd
24exynos_vidi_connection
25g2d_blend
26g2d_copy
27g2d_copy_with_scale
28g2d_exec
29g2d_fini
30g2d_init
31g2d_scale_and_blend
32g2d_solid_fill
33EOF
34done)
35
36test ! -n "$FUNCS" || echo $FUNCS
37test ! -n "$FUNCS"