symbol-check: ignore platform symbols
Subsystems (2)
PATCH 1/2 symbol-check: ignore platform symbols
Fixes the tests on ARM, but more importantly this makes it much easier to maintain.
--- amdgpu/amdgpu-symbol-check | 7 +------ etnaviv/etnaviv-symbol-check | 7 +------ exynos/exynos-symbol-check | 7 +------ freedreno/freedreno-symbol-check | 7 +------ intel/intel-symbol-check | 7 +------ libkms/kms-symbol-check | 7 +------ nouveau/nouveau-symbol-check | 7 +------ omap/omap-symbol-check | 7 +------ radeon/radeon-symbol-check | 7 +------ tegra/tegra-symbol-check | 11 +---------- 10 files changed, 10 insertions(+), 64 deletions(-)
amdgpu/amdgpu-symbol-check +1 -6
@@ -5,13 +5,8 @@ set -u # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init amdgpu_bo_alloc amdgpu_bo_cpu_map amdgpu_bo_cpu_unmap
etnaviv/etnaviv-symbol-check +1 -6
@@ -5,13 +5,8 @@ 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_ETNAVIV_H_FILES -FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_etnaviv.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_etnaviv.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init etna_device_new etna_device_new_dup etna_device_ref
exynos/exynos-symbol-check +1 -6
@@ -5,13 +5,8 @@ set -u # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_exynos*_HEADERS -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init exynos_bo_create exynos_bo_destroy exynos_bo_from_name
freedreno/freedreno-symbol-check +1 -6
@@ -5,13 +5,8 @@ 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 +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init fd_bo_cpu_fini fd_bo_cpu_prep fd_bo_del
intel/intel-symbol-check +1 -6
@@ -5,13 +5,8 @@ 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 +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | grep -o "T .*" | cut -c 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_for_render drm_intel_bo_alloc_tiled
libkms/kms-symbol-check +1 -6
@@ -5,13 +5,8 @@ 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/LIBKMS_H_FILES -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libkms.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libkms.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init kms_bo_create kms_bo_destroy kms_bo_get_prop
nouveau/nouveau-symbol-check +1 -6
@@ -5,13 +5,8 @@ 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_NOUVEAU_H_FILES -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init nouveau_bo_map nouveau_bo_name_get nouveau_bo_name_ref
omap/omap-symbol-check +1 -6
@@ -5,13 +5,8 @@ set -u # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_omap*HEADERS -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init omap_bo_cpu_fini omap_bo_cpu_prep omap_bo_del
radeon/radeon-symbol-check +1 -6
@@ -5,13 +5,8 @@ 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_RADEON_H_FILES -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init radeon_bo_debug radeon_bo_get_handle radeon_bo_get_src_domain
tegra/tegra-symbol-check +1 -10
@@ -4,17 +4,8 @@ set -u # The following symbols (past the first nine) are taken from tegra.h. -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_end__ -__bss_start__ -__bss_start -__end__ -_bss_end__ -_edata -_end -_fini -_init drm_tegra_bo_get_flags drm_tegra_bo_get_handle drm_tegra_bo_get_tiling
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 gitlab-ci: add arm builds
--- .gitlab-ci.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+)
.gitlab-ci.yml +60 -0
@@ -157,3 +157,63 @@ oldest-autotools: - export PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig - export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH" script: *autotools-build + +aarch64-meson: + stage: build + image: toendeavour/archlinux:aarch64 + before_script: + - pacman -Syu --noconfirm --needed + base-devel + meson + libpciaccess + libxslt docbook-xsl + valgrind + libatomic_ops + cairo cunit + script: *meson-build + +aarch64-autotools: + stage: build + image: toendeavour/archlinux:aarch64 + artifacts: *artifacts-autotools + before_script: + - pacman -Syu --noconfirm --needed + base-devel + libpciaccess + libxslt docbook-xsl + valgrind + libatomic_ops + cairo cunit + xorg-util-macros + git # autogen.sh depends on git + script: *autotools-build + +armv7h-meson: + stage: build + image: toendeavour/archlinux:armv7h + before_script: + - pacman -Syu --noconfirm --needed + base-devel + meson + libpciaccess + libxslt docbook-xsl + valgrind + libatomic_ops + cairo cunit + script: *meson-build + +armv7h-autotools: + stage: build + image: toendeavour/archlinux:armv7h + artifacts: *artifacts-autotools + before_script: + - pacman -Syu --noconfirm --needed + base-devel + libpciaccess + libxslt docbook-xsl + valgrind + libatomic_ops + cairo cunit + xorg-util-macros + git # autogen.sh depends on git + script: *autotools-build
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 2 lines · Eric Engestrom
Fixes the tests on ARM, but more importantly this makes it much easier to maintain.
BTW I have a wip to replace all of those with a python script that will be more thorough in its checks, but until that lands this is already a good step.
(Just mentioning it so that someone else doesn't see this as an opportunity to start the same project again.)
Quoted 213 lines
Signed-off-by Eric Engestrom <[email protected]>--- amdgpu/amdgpu-symbol-check | 7 +------ etnaviv/etnaviv-symbol-check | 7 +------ exynos/exynos-symbol-check | 7 +------ freedreno/freedreno-symbol-check | 7 +------ intel/intel-symbol-check | 7 +------ libkms/kms-symbol-check | 7 +------ nouveau/nouveau-symbol-check | 7 +------ omap/omap-symbol-check | 7 +------ radeon/radeon-symbol-check | 7 +------ tegra/tegra-symbol-check | 11 +---------- 10 files changed, 10 insertions(+), 64 deletions(-)amdgpu/amdgpu-symbol-check +1
-6@@ -5,13 +5,8 @@ set -u # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init amdgpu_bo_alloc amdgpu_bo_cpu_map amdgpu_bo_cpu_unmapetnaviv/etnaviv-symbol-check +1
-6@@ -5,13 +5,8 @@ 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_ETNAVIV_H_FILES -FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_etnaviv.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_etnaviv.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init etna_device_new etna_device_new_dup etna_device_refexynos/exynos-symbol-check +1
-6@@ -5,13 +5,8 @@ set -u # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_exynos*_HEADERS -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_exynos.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init exynos_bo_create exynos_bo_destroy exynos_bo_from_namefreedreno/freedreno-symbol-check +1
-6@@ -5,13 +5,8 @@ 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 +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init fd_bo_cpu_fini fd_bo_cpu_prep fd_bo_delintel/intel-symbol-check +1
-6@@ -5,13 +5,8 @@ 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 +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_intel.so} | grep -o "T .*" | cut -c 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_for_render drm_intel_bo_alloc_tiledlibkms/kms-symbol-check +1
-6@@ -5,13 +5,8 @@ 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/LIBKMS_H_FILES -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libkms.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libkms.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init kms_bo_create kms_bo_destroy kms_bo_get_propnouveau/nouveau-symbol-check +1
-6@@ -5,13 +5,8 @@ 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_NOUVEAU_H_FILES -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init nouveau_bo_map nouveau_bo_name_get nouveau_bo_name_refomap/omap-symbol-check +1
-6@@ -5,13 +5,8 @@ set -u # The following symbols (past the first five) are taken from the public headers. # A list of the latter should be available Makefile.am/libdrm_omap*HEADERS -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_omap.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init omap_bo_cpu_fini omap_bo_cpu_prep omap_bo_delradeon/radeon-symbol-check +1
-6@@ -5,13 +5,8 @@ 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_RADEON_H_FILES -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_start -_edata -_end -_fini -_init radeon_bo_debug radeon_bo_get_handle radeon_bo_get_src_domaintegra/tegra-symbol-check +1
-10@@ -4,17 +4,8 @@ set -u # The following symbols (past the first nine) are taken from tegra.h. -FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do +FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <<EOF -__bss_end__ -__bss_start__ -__bss_start -__end__ -_bss_end__ -_edata -_end -_fini -_init drm_tegra_bo_get_flags drm_tegra_bo_get_handle drm_tegra_bo_get_tilingSignature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Eric Engestrom
Quoted 2 lines · Eric Engestrom
Fixes the tests on ARM, but more importantly this makes it much easier to maintain.
BTW I have a wip to replace all of those with a python script that will be more thorough in its checks, but until that lands this is already a good step.
(Just mentioning it so that someone else doesn't see this as an opportunity to start the same project again.)
You already had a series (in POSIX shell) that tweaks those. I guess one can trivially rebase that and apply.
AFAICT nothing* really relies on python so the change seems quite strange.
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel