diff options
author | Eric Engestrom <[email protected]> | 2018-10-11 14:43:35 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-10 11:27:51 +0000 |
commit | aa6973e6110541d0a6642072f763f550341ed9b3 (patch) | |
tree | c599153f9ac5762c8b3316e63fa8386bcbcbbe31 /src | |
parent | 1172263c87232d9af5f35a8ea27705c4afb3b8a6 (diff) |
gbm: use new symbols check script
Note: the list in gbm-symbols.txt is the same as the one that was in
gbm-symbols-check, I just took the opportunity to sort it.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by Dylan Baker <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rwxr-xr-x | src/gbm/gbm-symbols.txt (renamed from src/gbm/gbm-symbols-check) | 19 | ||||
-rw-r--r-- | src/gbm/meson.build | 9 |
2 files changed, 6 insertions, 22 deletions
diff --git a/src/gbm/gbm-symbols-check b/src/gbm/gbm-symbols.txt index e28c52d44c8..84ab1886253 100755 --- a/src/gbm/gbm-symbols-check +++ b/src/gbm/gbm-symbols.txt @@ -1,15 +1,3 @@ -#!/bin/sh -set -eu - -LIB=${1-.libs/libgbm.so} - -if ! [ -f "$LIB" ] -then - exit 1 -fi - -FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do -( grep -q "^$func$" || echo $func ) <<EOF gbm_device_get_fd gbm_device_get_backend_name gbm_device_is_format_supported @@ -45,10 +33,3 @@ gbm_surface_lock_front_buffer gbm_surface_release_buffer gbm_surface_has_free_buffers gbm_surface_destroy -_fini -_init -EOF -done) - -test ! -n "$FUNCS" || echo $FUNCS -test ! -n "$FUNCS" diff --git a/src/gbm/meson.build b/src/gbm/meson.build index b7262c59802..39fa0386a65 100644 --- a/src/gbm/meson.build +++ b/src/gbm/meson.build @@ -69,9 +69,12 @@ pkg.generate( if with_tests and prog_nm.found() test( 'gbm-symbols-check', - find_program('gbm-symbols-check'), - env : env_test, - args : libgbm, + symbols_check, + args : [ + '--lib', libgbm, + '--symbols-file', files('gbm-symbols.txt'), + '--nm', prog_nm.path(), + ], suite : ['gbm'], ) endif |