aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorHeiko Becker2018-02-19 09:13:15 -0600
committerEric Engestrom2018-02-23 11:53:08 -0600
commit4f08bfe96da1542f336589edf310d06ebce3cf20 (patch)
tree189d03ab810f7fba8993fcbab638cddae5f2bf3b /amdgpu
parent009634e493097afae95d190fc26cb04a1664648a (diff)
downloadexternal-libgbm-4f08bfe96da1542f336589edf310d06ebce3cf20.tar.gz
external-libgbm-4f08bfe96da1542f336589edf310d06ebce3cf20.tar.xz
external-libgbm-4f08bfe96da1542f336589edf310d06ebce3cf20.zip
*-symbol-check: Don't hard-code nm executable
Helpful if your nm executable has a prefix based on the architecture, for example. Signed-off-by: Heiko Becker <heirecka@exherbo.org> Cc: Timo Gurr <timo.gurr@gmail.com> [Eric: v2: rebase and add Meson support] Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'amdgpu')
-rwxr-xr-xamdgpu/amdgpu-symbol-check2
-rw-r--r--amdgpu/meson.build1
2 files changed, 2 insertions, 1 deletions
diff --git a/amdgpu/amdgpu-symbol-check b/amdgpu/amdgpu-symbol-check
index 17de0c3b..90b7a1d6 100755
--- a/amdgpu/amdgpu-symbol-check
+++ b/amdgpu/amdgpu-symbol-check
@@ -3,7 +3,7 @@
3# The following symbols (past the first five) are taken from the public headers. 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_amdgpuinclude_HEADERS 4# A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS
5 5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do 6FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do
7( grep -q "^$func$" || echo $func ) <<EOF 7( grep -q "^$func$" || echo $func ) <<EOF
8__bss_start 8__bss_start
9_edata 9_edata
diff --git a/amdgpu/meson.build b/amdgpu/meson.build
index 8b045205..518b8504 100644
--- a/amdgpu/meson.build
+++ b/amdgpu/meson.build
@@ -61,5 +61,6 @@ ext_libdrm_amdgpu = declare_dependency(
61test( 61test(
62 'amdgpu-symbol-check', 62 'amdgpu-symbol-check',
63 prog_bash, 63 prog_bash,
64 env : env_test,
64 args : [files('amdgpu-symbol-check'), libdrm_amdgpu] 65 args : [files('amdgpu-symbol-check'), libdrm_amdgpu]
65) 66)