intel: convert to new symbols check

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
main
Eric Engestrom 2019-10-23 23:32:54 +01:00 committed by Eric Engestrom
parent 6c819350af
commit 1386b99027
2 changed files with 8 additions and 23 deletions

19
intel/intel-symbol-check → intel/intel-symbols.txt Executable file → Normal file
View File

@ -1,17 +1,3 @@
#!/bin/sh
set -u
# 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 ) <<EOF
__bss_start
_edata
_end
_fini
_init
drm_intel_bo_alloc drm_intel_bo_alloc
drm_intel_bo_alloc_for_render drm_intel_bo_alloc_for_render
drm_intel_bo_alloc_tiled drm_intel_bo_alloc_tiled
@ -95,8 +81,3 @@ drm_intel_get_pooled_eu
drm_intel_get_reset_stats drm_intel_get_reset_stats
drm_intel_get_subslice_total drm_intel_get_subslice_total
drm_intel_reg_read drm_intel_reg_read
EOF
done)
test ! -n "$FUNCS" || echo $FUNCS
test ! -n "$FUNCS"

View File

@ -92,9 +92,13 @@ test(
find_program('tests/gen7-2d-copy.batch.sh'), find_program('tests/gen7-2d-copy.batch.sh'),
workdir : meson.current_build_dir(), workdir : meson.current_build_dir(),
) )
test( test(
'intel-symbol-check', 'intel-symbols-check',
find_program('intel-symbol-check'), symbols_check,
env : env_test, args : [
args : libdrm_intel, '--lib', libdrm_intel,
'--symbols-file', files('intel-symbols.txt'),
'--nm', prog_nm.path(),
],
) )