[Intel-gfx] [PATCH 0/3] Patches to enable building IGT in Android

tim.gore at intel.com tim.gore at intel.com
Fri Mar 28 13:54:57 CET 2014


From: tgore <tim.gore at intel.com>

Note: This is my first submission to an open source mailing list. Apologies
for any mistakes etc.

There are several issues that cause build errors for IGT on Android

One is that some of the tests make use of mmap64, which is a very
recent addition to bionic and therefore not available on all Android
versions. A previous fix for this still has issues because it relies
on a macro HAVE_MMAP64 to be defined when mmap64 is available, but this
is not always the case. If HAVE_MMAP64 is not defined, but mmap64 is
then the compile fails due to a redefinition of mmap64.

The next patch ensures that the correct versions of i915_drm.h and
intel_chipset.h are picked up when building within the android tree.

The third patch modifies the way cairo.h gets included in various places
so that the Android build can succeed without it.

These 3 patches are independent, but you need all three to be able to
build IGT on Android.

tgore (3):
  intel-gpu-tools: fix problem with redefinition of mmap64
  intel-gpu-tools: fix some include path problems on android builds
  intel-gpu-tools: change how cairo.h is included, to enable Android
    build

 lib/Android.mk         | 4 +++-
 lib/drmtest.h          | 6 +++++-
 lib/igt_fb.c           | 1 +
 lib/igt_fb.h           | 4 +++-
 tests/Android.mk       | 3 +++
 tests/kms_cursor_crc.c | 1 +
 tests/kms_fbc_crc.c    | 1 +
 tests/kms_plane.c      | 1 +
 tests/pm_lpsp.c        | 1 +
 tests/pm_pc8.c         | 1 +
 tools/Android.mk       | 3 +++
 11 files changed, 23 insertions(+), 3 deletions(-)

-- 
1.9.0




More information about the Intel-gfx mailing list