Skip to content

Android build sytem

[email protected] intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest11 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11build: list all test/tool/lib source files in their own Makefile.sourceslib/Makefile.am lib/Makefile.sources tests/Makefile.am +3 more+302 -2930 replies
2/11build: Fix missing "\" in tests/Makefile.sourcestests/Makefile.sources+1 -10 replies
3/11build: Move logic to tests/Makefile.am and away from Makefile.sourcestests/Makefile.am tests/Makefile.sources+4 -30 replies
4/11lib: Move kms stuff from drmtest.c over to igt_kms.clib/Makefile.sources lib/drmtest.c lib/drmtest.h +9 more+875 -8040 replies
5/11rendercopy: Remove rendercopy.clib/Makefile.sources lib/rendercopy.c lib/rendercopy.h +1 more+21 -520 replies
6/11tests/drm_get_client_auth: In Android, use gettid() instead of syscall(SYS_gettid)tests/drm_get_client_auth.c+7 -30 replies
7/11tests/gem_vmap_blits: Finish extracting gem_readtests/gem_vmap_blits.c+0 -140 replies
8/11build: Fix assorted compilation warningslib/drmtest.c lib/drmtest.h lib/intel_batchbuffer.h +2 more+9 -90 replies
9/11lib/drmtest: Get the correct basename() under Androidlib/drmtest.c+5 -10 replies
10/11lib/igt_display: workaround a name conflict in Androidlib/igt_display.h+4 -00 replies
11/11build: New Android makefilesAndroid.mk tests/Android.mk tools/Android.mk+149 -5280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/11] Android build sytem

From: Oscar Mateo <[email protected]>

These patches aim to create an Android build system. This used to exist, but the old Android.mk files were bit-rotten and therefore kicked out.

As suggested by Daniel Vetter and Damien Lespiau, as a fist step I extracted the source files lists into a Makefile.sources which can be included by both the autoconf files and the Android makefiles.

Changes since the last submission:

- Tabs when defining variables are fine, but fix missing "\" (thanks Damien).
- Drop some of the warning fixes and instead fix compilation flags.
- Reword comment and commit message in name conflict with Android's i915_drm.h
- Do not error on return-type (at least until Bionic correctly annotates "noreturn" on pthread_exit).

Oscar Mateo (11):
build: list all test/tool/lib source files in their own
Makefile.sources
build: Fix missing "\" in tests/Makefile.sources
build: Move logic to tests/Makefile.am and away from Makefile.sources
lib: Move kms stuff from drmtest.c over to igt_kms.c
rendercopy: Remove rendercopy.c
tests/drm_get_client_auth: In Android, use gettid() instead of
syscall(SYS_gettid)
tests/gem_vmap_blits: Finish extracting gem_read
build: Fix assorted compilation warnings
lib/drmtest: Get the correct basename() under Android lib/igt_display: workaround a name conflict in Android
build: New Android makefiles

 Android.mk                  |  530 +-----------------------------
 lib/Makefile.am             |   38 +--
 lib/Makefile.sources        |   37 +++
 lib/drmtest.c               |  744 +----------------------------------------
 lib/drmtest.h               |   76 +----
 lib/igt_display.h           |    4 +
 lib/igt_kms.c               |  764 +++++++++++++++++++++++++++++++++++++++++++
 lib/igt_kms.h               |  102 ++++++
 lib/intel_batchbuffer.h     |    2 +-
 lib/intel_gpu_tools.h       |    2 +-
 lib/intel_reg_map.c         |    4 +-
 lib/rendercopy.c            |   49 ---
 lib/rendercopy.h            |    2 -
 tests/Android.mk            |   77 +++++
 tests/Makefile.am           |  206 +-----------
 tests/Makefile.sources      |  203 ++++++++++++
 tests/drm_get_client_auth.c |   10 +-
 tests/gem_render_copy.c     |   21 ++
 tests/gem_vmap_blits.c      |   14 -
 tests/kms_cursor_crc.c      |    1 +
 tests/kms_flip.c            |    1 +
 tests/kms_pipe_crc_basic.c  |    1 +
 tests/kms_render.c          |    1 +
 tests/kms_setmode.c         |    1 +
 tests/pm_pc8.c              |    1 +
 tests/testdisplay.c         |    1 +
 tools/Android.mk            |   70 ++++
 tools/Makefile.am           |   54 +--
 tools/Makefile.sources      |   53 +++
 29 files changed, 1369 insertions(+), 1700 deletions(-)
 create mode 100644 lib/Makefile.sources
 create mode 100644 lib/igt_kms.c
 create mode 100644 lib/igt_kms.h
 delete mode 100644 lib/rendercopy.c
 create mode 100644 tests/Android.mk
 create mode 100644 tests/Makefile.sources
 create mode 100644 tools/Android.mk
 create mode 100644 tools/Makefile.sources
Signature · 1 line
1.7.9.5