[PATCH v2 0/5] Extend IGT to support Android

Mark Yacoub markyacoub at google.com
Wed Apr 30 20:16:03 UTC 2025


On Wed, Apr 30, 2025 at 9:48 AM Ryszard Knop <rk at dragonic.eu> wrote:

> Hey there,
>
> Are you planning to add Meson changes and docs on how to build this? While
> for Linux itself it's
> pretty clear if you look at the Dockerfiles/CI, Android probably needs NDK
> installed and some magic
> in the build system to make it work. You likely have these changes done
> already, if you tested this.
>
Hello,
for Android, we're gonna have an Android.bp file that takes care of
building everything and of connecting the dependencies.
Like any other Android package, you'll build it as `m igt-gpu-tools` and we
will have cc_tests so you can do `atest kms_atomic`.
No other magic is required.
This is very related to Android so we're keeping the Android.bp in the
downstream branch as you'd need the Android tree anyway to run the tests in
the android way.
Thanks!

>
> Thanks, Ryszard
>
> On Tue, 2025-04-29 at 20:39 +0000, Jeevaka Prabu Badrappan wrote:
> > The primary objective of this proposal is to extend the functionality of
> > IGT to Android environments.
> >
> > Enabling IGT on Android will allow developers to perform comprehensive
> > testing of graphics drivers, ensuring robustness and reliability across
> > different platforms.
> >
> > By providing stub implementations for libraries that are not natively
> > supported on Android, we will bridge the gap between Android and Linux
> > environments, promoting code reuse and reducing development time.
> >
> > Changes done:
> > - Create stub implementations of GLib, libunwind, libprocps, and
> > other necessary libraries to satisfy IGT dependencies on Android.
> > - Replace glib hash table with generic hash table implementation
> >
> > Note:
> > - Incase of linux systems, system libraries will be used whereas for
> > Android stubs will be used with reduced test coverage.
> > - Support will be provided to maintain Android support.
> >
> > Jeevaka Prabu Badrappan (4):
> >   Replace program_invocation_short_name with prog_name from command line
> >   Avoid use of pthread_cancel by introducing an exit flag
> >   Replace glib hash table with c specific implementation
> >   igt-gpu-tools: Changes to compile for Android
> >
> > Sapna (1):
> >   Add stub for libunwind, procps and glib
> >
> >  include/stub/glib.h          |  43 +++++++++++++
> >  include/stub/libproc2/pids.h |  41 ++++++++++++
> >  include/stub/libunwind.h     |  20 ++++++
> >  lib/igt_core.c               |   4 ++
> >  lib/igt_core.h               |   1 +
> >  lib/igt_device_scan.c        | 118 ++++++++++++++++++++++++++---------
> >  lib/igt_dummyload.c          |   6 +-
> >  lib/igt_dummyload.h          |   2 +
> >  lib/igt_kmod.c               |  10 +++
> >  lib/xe/xe_spin.c             |   2 +-
> >  tests/intel/xe_create.c      |   1 +
> >  tools/gputop.c               |   6 +-
> >  tools/intel_gpu_top.c        |   2 +-
> >  13 files changed, 220 insertions(+), 36 deletions(-)
> >  create mode 100644 include/stub/glib.h
> >  create mode 100644 include/stub/libproc2/pids.h
> >  create mode 100644 include/stub/libunwind.h
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20250430/13c71de8/attachment.htm>


More information about the igt-dev mailing list