Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 0/1] Simplify tests/meson.build
Date: Thu,  6 Jul 2023 10:39:46 +0200	[thread overview]
Message-ID: <20230706083947.481216-1-mauro.chehab@linux.intel.com> (raw)

From: Mauro Carvalho Chehab <mchehab@kernel.org>

Some tests used on core and Intel driver have special requirements,
e. g. extra libraries and/or extra C files.

Right now, they all have their own special executable() target. This
makes the meson.build file messy, and makes harder to add extra
logic inside the foreach loops.

This patch shouldn't have any real impact: it just makes the file
a lot simpler by dropping all those extra build targets. Now, mapping
extra dependencies/sources are done via two dictionaries:

    extra_sources = {
	'core_hotunplug': [ 'core_hotunplug.c' ],
	'dumb_buffer': ['dumb_buffer.c' ],
	'testdisplay': [ 'testdisplay_hotplug.c' ],
	'kms_color':  [ 'kms_color_helper.c' ],
	'kms_dsc': [ join_paths ('i915', 'kms_dsc_helper.c') ],
	'kms_psr2_sf':  [ join_paths ('i915', 'kms_dsc_helper.c') ],
    }

    extra_dependencies = {
	'core_hotunplug': [ lib_igt_i915_perf ],
	'drm_fdinfo': [ lib_igt_drm_fdinfo ],
	'dumb_buffer':  [ libatomic ],
	'gem_barrier_race': [ lib_igt_i915_perf ],
	'gem_create': [ libatomic ],
	'gem_ctx_freq': [ lib_igt_perf ],
	'gem_ctx_sseu': [ lib_igt_perf ],
	'gem_eio': [ realtime ],
	'gem_exec_balancer': [ lib_igt_perf ],
	'gem_mmap_offset': [ libatomic ],
	'i915_pm_freq_mult': [ lib_igt_perf ],
	'i915_pm_rc6_residency': [ lib_igt_perf ],
	'perf': [ lib_igt_i915_perf ],
	'perf_pmu':  [ lib_igt_perf ],
	'sw_sync': [ libatomic ],
    }

Mauro Carvalho Chehab (1):
  tests/meson.build: Simplify builds for core and i915 targets

 tests/meson.build | 223 +++++++++++++---------------------------------
 1 file changed, 61 insertions(+), 162 deletions(-)

-- 
2.40.1

             reply	other threads:[~2023-07-06  8:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06  8:39 Mauro Carvalho Chehab [this message]
2023-07-06  8:39 ` [igt-dev] [PATCH i-g-t 1/1] tests/meson.build: Simplify builds for core and i915 targets Mauro Carvalho Chehab
2023-07-06 10:13 ` [igt-dev] ✓ Fi.CI.BAT: success for Simplify tests/meson.build Patchwork
2023-07-06 10:39 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-07-06 13:06 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230706083947.481216-1-mauro.chehab@linux.intel.com \
    --to=mauro.chehab@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox