[PATCH RESEND i-g-t v4 18/31] tools/intel_vbt_decode: link with minimal sub-libraries
Sebastian Brzezinka <[email protected]> Wed, 29 Jul 2026 13:03:35 +0200
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <8a17544beba8904b30313fd816720d5d9814621c.1785152675.git.sebastian.brzezinka@intel.com> |
intel_vbt_decode only needs the chipset tables, half-float conversion helpers and the lightweight tool stubs used by those helpers. Switch to linking against lib_igt_chipset, lib_igt_halffloat and lib_igt_tools_stub instead of the full libigt.so stack. ldd before: 35 (ldd | wc -l) ldd after: 4 (ldd | wc -l) Signed-off-by: Sebastian Brzezinka <[email protected]> Acked-by: Ashutosh Dixit <[email protected]> Reviewed-by: Krzysztof Niemiec <[email protected]> Reviewed-by: Krzysztof Karas <[email protected]> --- tools/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/meson.build b/tools/meson.build index b04754c5e..46cf1a717 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -34,7 +34,6 @@ tools_progs = [ 'intel_reg_checker', 'intel_residency', 'intel_tiling_detect', - 'intel_vbt_decode', 'intel_watermark', 'intel_gem_info', 'intel_gvtg_test', @@ -88,6 +87,11 @@ executable('intel_error_decode', 'intel_error_decode.c', install_rpath : bindir_rpathdir, install : true) +executable('intel_vbt_decode', 'intel_vbt_decode.c', + dependencies : [lib_igt_chipset, lib_igt_halffloat, lib_igt_tools_stub, pciaccess, libdrm, math], + install_rpath : bindir_rpathdir, + install : true) + if libudev.found() intel_dp_compliance_src = [ 'intel_dp_compliance.c', -- 2.53.0