<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Apr 30, 2025 at 9:48 AM Ryszard Knop <<a href="mailto:rk@dragonic.eu">rk@dragonic.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey there,<br>
<br>
Are you planning to add Meson changes and docs on how to build this? While for Linux itself it's<br>
pretty clear if you look at the Dockerfiles/CI, Android probably needs NDK installed and some magic<br>
in the build system to make it work. You likely have these changes done already, if you tested this.<br></blockquote><div>Hello, </div><div>for Android, we're gonna have an Android.bp file that takes care of building everything and of connecting the dependencies.</div><div>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`. </div><div>No other magic is required.</div><div>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.</div><div>Thanks! </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks, Ryszard<br>
<br>
On Tue, 2025-04-29 at 20:39 +0000, Jeevaka Prabu Badrappan wrote:<br>
> The primary objective of this proposal is to extend the functionality of<br>
> IGT to Android environments.<br>
> <br>
> Enabling IGT on Android will allow developers to perform comprehensive<br>
> testing of graphics drivers, ensuring robustness and reliability across<br>
> different platforms.<br>
> <br>
> By providing stub implementations for libraries that are not natively<br>
> supported on Android, we will bridge the gap between Android and Linux<br>
> environments, promoting code reuse and reducing development time.<br>
> <br>
> Changes done:<br>
> - Create stub implementations of GLib, libunwind, libprocps, and<br>
> other necessary libraries to satisfy IGT dependencies on Android.<br>
> - Replace glib hash table with generic hash table implementation<br>
> <br>
> Note:<br>
> - Incase of linux systems, system libraries will be used whereas for<br>
> Android stubs will be used with reduced test coverage.<br>
> - Support will be provided to maintain Android support.<br>
> <br>
> Jeevaka Prabu Badrappan (4):<br>
> Replace program_invocation_short_name with prog_name from command line<br>
> Avoid use of pthread_cancel by introducing an exit flag<br>
> Replace glib hash table with c specific implementation<br>
> igt-gpu-tools: Changes to compile for Android<br>
> <br>
> Sapna (1):<br>
> Add stub for libunwind, procps and glib<br>
> <br>
> include/stub/glib.h | 43 +++++++++++++<br>
> include/stub/libproc2/pids.h | 41 ++++++++++++<br>
> include/stub/libunwind.h | 20 ++++++<br>
> lib/igt_core.c | 4 ++<br>
> lib/igt_core.h | 1 +<br>
> lib/igt_device_scan.c | 118 ++++++++++++++++++++++++++---------<br>
> lib/igt_dummyload.c | 6 +-<br>
> lib/igt_dummyload.h | 2 +<br>
> lib/igt_kmod.c | 10 +++<br>
> lib/xe/xe_spin.c | 2 +-<br>
> tests/intel/xe_create.c | 1 +<br>
> tools/gputop.c | 6 +-<br>
> tools/intel_gpu_top.c | 2 +-<br>
> 13 files changed, 220 insertions(+), 36 deletions(-)<br>
> create mode 100644 include/stub/glib.h<br>
> create mode 100644 include/stub/libproc2/pids.h<br>
> create mode 100644 include/stub/libunwind.h<br>
</blockquote></div></div>