Commit aa6973e6 authored by Eric Engestrom's avatar Eric Engestrom Committed by Eric Engestrom

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's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 1172263c
#!/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"
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment