Re: [PATCH i-g-t v3 23/31] tools/intel_forcewaked: link with minimal sub-libraries
Krzysztof Karas <[email protected]>
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <do7h3ozghjlnopvm6ai577xc7sgvmevojr36ditqv64tmpajkx@gkgeacxy2p6f> |
Hi Sebastian, On 2026-07-15 at 14:15:33 +0200, Sebastian Brzezinka wrote: > intel_forcewaked only needs the register/MMIO helper subset, not the > full libigt.so stack. > > Switch to linking against lib_igt_reg_tools. > > ldd before: 35 (ldd | wc -l) > ldd after: 5 (ldd | wc -l) > > Signed-off-by: Sebastian Brzezinka <[email protected]> > Acked-by: Ashutosh Dixit <[email protected]> > Reviewed-by: Krzysztof Niemiec <[email protected]> > --- > tools/meson.build | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/tools/meson.build b/tools/meson.build > index f9bbb41a9..15bd40dec 100644 > --- a/tools/meson.build > +++ b/tools/meson.build > @@ -18,7 +18,6 @@ tools_progs = [ > 'intel_display_bandwidth', > 'intel_display_crc', > 'intel_display_poller', > - 'intel_forcewaked', > 'intel_framebuffer_dump', > 'intel_guc_logger', > 'intel_hdcp', > @@ -108,6 +107,11 @@ executable('intel_audio_dump', 'intel_audio_dump.c', > install_rpath : bindir_rpathdir, > install : true) > > +executable('intel_forcewaked', 'intel_forcewaked.c', > + dependencies : [lib_igt_reg_tools, pciaccess, libdrm], > + install_rpath : bindir_rpathdir, > + install : true) > + > if libudev.found() > intel_dp_compliance_src = [ > 'intel_dp_compliance.c', > -- > 2.53.0 > Reviewed-by: Krzysztof Karas <[email protected]> -- Best Regards, Krzysztof