freedreno: convert to new symbols check
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>main
parent
2763cd390e
commit
6c819350af
|
@ -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_FREEDRENO_H_FILES
|
|
||||||
|
|
||||||
FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | awk '{print $3}'| while read func; do
|
|
||||||
( grep -q "^$func$" || echo $func ) <<EOF
|
|
||||||
__bss_start
|
|
||||||
_edata
|
|
||||||
_end
|
|
||||||
_fini
|
|
||||||
_init
|
|
||||||
fd_bo_cpu_fini
|
fd_bo_cpu_fini
|
||||||
fd_bo_cpu_prep
|
fd_bo_cpu_prep
|
||||||
fd_bo_del
|
fd_bo_del
|
||||||
|
@ -57,8 +43,3 @@ fd_ringbuffer_set_parent
|
||||||
fd_ringbuffer_size
|
fd_ringbuffer_size
|
||||||
fd_ringbuffer_timestamp
|
fd_ringbuffer_timestamp
|
||||||
fd_ringbuffer_flush2
|
fd_ringbuffer_flush2
|
||||||
EOF
|
|
||||||
done)
|
|
||||||
|
|
||||||
test ! -n "$FUNCS" || echo $FUNCS
|
|
||||||
test ! -n "$FUNCS"
|
|
|
@ -70,8 +70,11 @@ pkg.generate(
|
||||||
)
|
)
|
||||||
|
|
||||||
test(
|
test(
|
||||||
'freedreno-symbol-check',
|
'freedreno-symbols-check',
|
||||||
find_program('freedreno-symbol-check'),
|
symbols_check,
|
||||||
env : env_test,
|
args : [
|
||||||
args : libdrm_freedreno,
|
'--lib', libdrm_freedreno,
|
||||||
|
'--symbols-file', files('freedreno-symbols.txt'),
|
||||||
|
'--nm', prog_nm.path(),
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue