Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [i-g-t V5 4/7] tests/meson.build: Simplify builds for Chamelium targets
Date: Thu, 31 Aug 2023 17:57:47 +0200	[thread overview]
Message-ID: <20230831175747.6c7a6e66@maurocar-mobl2> (raw)
In-Reply-To: <20230831145622.1158622-5-bhanuprakash.modem@intel.com>

On Thu, 31 Aug 2023 20:26:19 +0530
Bhanuprakash Modem <bhanuprakash.modem@intel.com> wrote:

> Move Chamelium based extra dependencies & source files to
> corresponding generic dictionaries.
> 
> If we want to change extra source files for any Chamelium
> target, we can simply update in the dictionary, no need to
> re-wrire the rules.
> 
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>

Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>

> ---
>  tests/meson.build | 26 ++++++++------------------
>  1 file changed, 8 insertions(+), 18 deletions(-)
> 
> diff --git a/tests/meson.build b/tests/meson.build
> index c683e468d..e25793b5a 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -311,6 +311,7 @@ msm_progs = [
>  
>  chamelium_progs = [
>  	'kms_chamelium_audio',
> +	'kms_chamelium_color',
>  	'kms_chamelium_edid',
>  	'kms_chamelium_frames',
>  	'kms_chamelium_hpd',
> @@ -334,6 +335,11 @@ extra_sources = {
>  	'dumb_buffer': ['dumb_buffer.c' ],
>  	'testdisplay': [ 'testdisplay_hotplug.c' ],
>  	'kms_color':  [ 'kms_color_helper.c' ],
> +	'kms_chamelium_audio': [ join_paths ('chamelium', 'kms_chamelium_helper.c') ],
> +	'kms_chamelium_color':  [ 'kms_color_helper.c' ],
> +	'kms_chamelium_edid': [ join_paths ('chamelium', 'kms_chamelium_helper.c') ],
> +	'kms_chamelium_frames': [ join_paths ('chamelium', 'kms_chamelium_helper.c') ],
> +	'kms_chamelium_hpd': [ join_paths ('chamelium', 'kms_chamelium_helper.c') ],
>  	'kms_dsc': [ join_paths ('i915', 'kms_dsc_helper.c') ],
>  	'kms_psr2_sf':  [ join_paths ('i915', 'kms_dsc_helper.c') ],
>  }
> @@ -426,9 +432,8 @@ endforeach
>  if chamelium.found()
>  	foreach prog : chamelium_progs
>  		testexe = executable(prog,
> -				 [join_paths('chamelium', prog + '.c'),
> -					join_paths('chamelium', 'kms_chamelium_helper.c')],
> -				 dependencies : test_deps,
> +				 [join_paths('chamelium', prog + '.c')] + extra_sources.get(prog, []),
> +				 dependencies : test_deps + extra_dependencies.get(prog, []),
>  				 install_dir : libexecdir,
>  				 install_rpath : libexecdir_rpathdir,
>  				 install : true)
> @@ -442,21 +447,6 @@ if chamelium.found()
>  			     output : name + '.testlist')
>  	endforeach
>  	test_deps += chamelium
> -
> -	name = 'kms_chamelium_color'
> -	testexe = executable('kms_chamelium_color',
> -				[ 'chamelium/kms_chamelium_color.c', 'kms_color_helper.c' ],
> -				dependencies : test_deps + [ chamelium ],
> -				install_dir : libexecdir,
> -				install_rpath : libexecdir_rpathdir,
> -				install : true)
> -	test_list += name
> -	test_executables += testexe
> -	testlist_files += custom_target(name + '.testlist',
> -		     build_by_default : true,
> -		     command : [testexe, '--show-testlist'],
> -		     capture : true,
> -		     output : name + '.testlist')
>  endif
>  
>  subdir('amdgpu')

  reply	other threads:[~2023-08-31 15:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-31 14:56 [igt-dev] [i-g-t V5 0/7] New dir structure for intel specific tests Bhanuprakash Modem
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 1/7] testplan/i915: Exclude non-i915 tests from i915 testplan Bhanuprakash Modem
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 2/7] testplan/kms: Move kms testplan to intel dir Bhanuprakash Modem
2023-08-31 15:56   ` Mauro Carvalho Chehab
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 3/7] tests/i915/prime_mmap_kms: Add missing documentation Bhanuprakash Modem
2023-08-31 17:09   ` Kamil Konieczny
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 4/7] tests/meson.build: Simplify builds for Chamelium targets Bhanuprakash Modem
2023-08-31 15:57   ` Mauro Carvalho Chehab [this message]
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 5/7] tests: Move intel specific tests to new directory Bhanuprakash Modem
2023-08-31 16:00   ` Mauro Carvalho Chehab
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 6/7] tests/meson.build: Split intel targets based on their nature Bhanuprakash Modem
2023-08-31 16:01   ` Mauro Carvalho Chehab
2023-08-31 14:56 ` [igt-dev] [i-g-t V5 7/7] tests: Rename all intel specific tests Bhanuprakash Modem
2023-08-31 16:05   ` Mauro Carvalho Chehab
2023-08-31 18:45   ` [igt-dev] [i-g-t V6 " Bhanuprakash Modem
2023-08-31 22:05 ` [igt-dev] ✗ GitLab.Pipeline: warning for New dir structure for intel specific tests (rev9) Patchwork
2023-08-31 22:41 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-08-31 23:09 ` [igt-dev] ✓ CI.xeBAT: success " 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=20230831175747.6c7a6e66@maurocar-mobl2 \
    --to=mauro.chehab@linux.intel.com \
    --cc=bhanuprakash.modem@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