diff options
author | Heiko Becker | 2018-02-19 09:13:15 -0600 |
---|---|---|
committer | Eric Engestrom | 2018-02-23 11:53:08 -0600 |
commit | 4f08bfe96da1542f336589edf310d06ebce3cf20 (patch) | |
tree | 189d03ab810f7fba8993fcbab638cddae5f2bf3b /tegra | |
parent | 009634e493097afae95d190fc26cb04a1664648a (diff) | |
download | external-libdrm-4f08bfe96da1542f336589edf310d06ebce3cf20.tar.gz external-libdrm-4f08bfe96da1542f336589edf310d06ebce3cf20.tar.xz external-libdrm-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 'tegra')
-rw-r--r-- | tegra/meson.build | 1 | ||||
-rwxr-xr-x | tegra/tegra-symbol-check | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tegra/meson.build b/tegra/meson.build index 99fdd194..7c671cd5 100644 --- a/tegra/meson.build +++ b/tegra/meson.build | |||
@@ -48,5 +48,6 @@ pkg.generate( | |||
48 | test( | 48 | test( |
49 | 'tegra-symbol-check', | 49 | 'tegra-symbol-check', |
50 | prog_bash, | 50 | prog_bash, |
51 | env : env_test, | ||
51 | args : [files('tegra-symbol-check'), libdrm_tegra] | 52 | args : [files('tegra-symbol-check'), libdrm_tegra] |
52 | ) | 53 | ) |
diff --git a/tegra/tegra-symbol-check b/tegra/tegra-symbol-check index 420469f4..509b678c 100755 --- a/tegra/tegra-symbol-check +++ b/tegra/tegra-symbol-check | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | # The following symbols (past the first nine) are taken from tegra.h. | 3 | # The following symbols (past the first nine) are taken from tegra.h. |
4 | 4 | ||
5 | FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do | 5 | FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do |
6 | ( grep -q "^$func$" || echo $func ) <<EOF | 6 | ( grep -q "^$func$" || echo $func ) <<EOF |
7 | __bss_end__ | 7 | __bss_end__ |
8 | __bss_start__ | 8 | __bss_start__ |