Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vignesh Raman <vignesh.raman@collabora.com>
To: Louis Chauvet <louis.chauvet@bootlin.com>, igt-dev@lists.freedesktop.org
Cc: Petri Latvala <adrinael@adrinael.net>,
	Arkadiusz Hiler <arek@hiler.eu>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
	Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
	Ashutosh Dixit <ashutosh.dixit@intel.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	nicolejadeyee@google.com, seanpaul@google.com,
	jeremie.dautheribes@bootlin.com, markyacoub@google.com,
	20241022-b4-cv3-01-igt-kms-v2-0-8f654694b513@bootlin.com,
	20241022-b4-cv3-02-monitor-edids-v2-0-7634786c21e6@bootlin.com
Subject: Re: [PATCH i-g-t 3/4] lib/chamelium/v2: Rename chamelium to chamelium_v2
Date: Tue, 12 Nov 2024 15:04:10 +0530	[thread overview]
Message-ID: <efda127a-5e5e-452e-bd55-6fece10cb0cf@collabora.com> (raw)
In-Reply-To: <20241022-b4-cv3-03-cv2-split-v1-3-9f7cc8591ff9@bootlin.com>

Hi Louis,

On 22/10/24 20:19, Louis Chauvet wrote:
> To avoid confusion in meson build file, rename the variable chamlium to
> chamlium_v2.
> 
> Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
> ---
>   .gitlab-ci.yml            |  2 +-
>   docs/testplan/meson.build |  4 ++--
>   lib/meson.build           |  4 ++--
>   lib/tests/meson.build     |  4 ++--
>   meson.build               | 16 ++++++++--------
>   meson_options.txt         |  4 ++--
>   tests/meson.build         |  8 ++++----
>   7 files changed, 21 insertions(+), 21 deletions(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index a6c076dba487..ff4f4f94b691 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -5,7 +5,7 @@ variables:
>     MESON_OPTIONS: >
>       -Dlibdrm_drivers=intel,nouveau,amdgpu
>       -Doverlay=enabled
> -    -Dchamelium=enabled
> +    -Dchamelium_v2=enabled
>       -Dvalgrind=enabled
>       -Dman=enabled
>       -Dtests=enabled
> diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
> index 5560347f1337..f60c82ad139c 100644
> --- a/docs/testplan/meson.build
> +++ b/docs/testplan/meson.build
> @@ -21,8 +21,8 @@ if build_tests
>   		build_info += 'Will Check if documentation is in sync with testlist'
>   		check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
>   
> -		if not chamelium.found()
> -			warning('WARNING: Will not check if documentation is in sync for KMS as chamelium is disabled')
> +		if not chamelium_v2.found()
> +			warning('WARNING: Will not check if documentation is in sync for KMS as chamelium v2 is disabled')
>   		else
>   			kms_check_testlist = check_testlist
>   		endif
> diff --git a/lib/meson.build b/lib/meson.build
> index dc70704bd919..5769f96fbdc1 100644
> --- a/lib/meson.build
> +++ b/lib/meson.build
> @@ -189,8 +189,8 @@ if alsa.found()
>   	lib_sources += 'igt_alsa.c'
>   endif
>   
> -if chamelium.found()
> -	lib_deps += chamelium
> +if chamelium_v2.found()
> +	lib_deps += chamelium_v2
>   	lib_sources += [
>   		'chamelium/v2/igt_chamelium.c',
>   		'chamelium/v2/igt_chamelium_stream.c'
> diff --git a/lib/tests/meson.build b/lib/tests/meson.build
> index df8092638eca..fa7741b7be61 100644
> --- a/lib/tests/meson.build
> +++ b/lib/tests/meson.build
> @@ -36,8 +36,8 @@ lib_fail_tests = [
>   
>   lib_tests_deps = igt_deps
>   
> -if chamelium.found()
> -	lib_deps += chamelium
> +if chamelium_v2.found()
> +	lib_deps += chamelium_v2
>   	lib_tests += 'igt_audio'
>   endif
>   
> diff --git a/meson.build b/meson.build
> index 64f57f232ad8..df0f7b718986 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -86,7 +86,7 @@ foreach cc_arg : cc_args
>     endif
>   endforeach
>   
> -build_chamelium = get_option('chamelium')
> +build_chamelium_v2 = get_option('chamelium_v2')
>   build_docs = get_option('docs')
>   build_tests = not get_option('tests').disabled()
>   build_xe = not get_option('xe_driver').disabled()
> @@ -174,17 +174,17 @@ if not xmlrpc.found() and xmlrpc_cmd.found()
>   	endif
>   endif
>   
> -if build_chamelium.enabled() and not (xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found())
> +if build_chamelium_v2.enabled() and not (xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found())
>   	error('Chamelium build forced and required dependency xmlrpc not found')
>   endif
>   
> -gsl = dependency('gsl', required : build_chamelium)
> -alsa = dependency('alsa', required : build_chamelium)
> -libcurl = dependency('libcurl', required : build_chamelium)
> +gsl = dependency('gsl', required : build_chamelium_v2)
> +alsa = dependency('alsa', required : build_chamelium_v2)
> +libcurl = dependency('libcurl', required : build_chamelium_v2)

libcurl is required for chamelium v3 also. We can remove 
build_chamelium_v2 in this case.

>   
>   if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found() and libcurl.found()
>   	config.set('HAVE_CHAMELIUM', 1)
> -	chamelium = declare_dependency(dependencies : [
> +	chamelium_v2 = declare_dependency(dependencies : [
>   		xmlrpc,
>   		xmlrpc_util,
>   		xmlrpc_client,
> @@ -192,10 +192,10 @@ if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.foun
>   		alsa,
>   	])
>   else
> -	chamelium = disabler()
> +	chamelium_v2 = disabler()
>   endif
>   
> -build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
> +build_info += 'Build Chamelium v2 test: @0@'.format(chamelium_v2.found())

This should be added inside the if condition?

>   
>   pthreads = dependency('threads')
>   math = cc.find_library('m')
> diff --git a/meson_options.txt b/meson_options.txt
> index c410f9b777ad..3a6edefba349 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -8,9 +8,9 @@ option('overlay_backends',
>          choices : [ 'auto', 'x', 'xv' ],
>          description : 'Overlay backends to enable')
>   
> -option('chamelium',
> +option('chamelium_v2',
>          type : 'feature',
> -       description : 'Build Chamelium test')
> +       description : 'Build Chamelium v2 test')
>   
>   option('valgrind',
>          type : 'feature',
> diff --git a/tests/meson.build b/tests/meson.build
> index 4cb199d34527..4eebe1838979 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -332,7 +332,7 @@ if build_xe_eudebug
>   	intel_xe_progs += intel_xe_eudebug_progs
>   endif
>   
> -chamelium_progs = [
> +chamelium_v2_progs = [
>   	'kms_chamelium_audio',
>   	'kms_chamelium_color',
>   	'kms_chamelium_edid',
> @@ -435,8 +435,8 @@ foreach prog : intel_progs
>   	endif
>   endforeach
>   
> -if chamelium.found()
> -	foreach prog : chamelium_progs
> +if chamelium_v2.found()
> +	foreach prog : chamelium_v2_progs
>   		testexe = executable(prog,
>   				 [join_paths('chamelium', 'v2', prog + '.c')] + extra_sources.get(prog, []),
>   				 dependencies : test_deps + extra_dependencies.get(prog, []),
> @@ -454,7 +454,7 @@ if chamelium.found()
>   				    output : name + '.testlist')
>   		endif
>   	endforeach
> -	test_deps += chamelium
> +	test_deps += chamelium_v2
>   endif
>   
>   subdir('amdgpu')
> 

Regards,
Vignesh

  reply	other threads:[~2024-11-12  9:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-22 14:49 [PATCH i-g-t 0/4] lib/chamelium: Move chameliumv2 support in its own directory Louis Chauvet
2024-10-22 14:49 ` [PATCH i-g-t 1/4] tests/chamelium: Extract Chamelium v2 tests into a separate directory Louis Chauvet
2024-10-22 14:49 ` [PATCH i-g-t 2/4] lib/chamelium/v2: Extract chamelium v2 wrapper into its own directory Louis Chauvet
2024-10-22 14:49 ` [PATCH i-g-t 3/4] lib/chamelium/v2: Rename chamelium to chamelium_v2 Louis Chauvet
2024-11-12  9:34   ` Vignesh Raman [this message]
2024-10-22 14:49 ` [PATCH i-g-t 4/4] lib/chamelium/v2: Rename HAVE_CHAMELIUM to HAVE_CHAMELIUM_V2 Louis Chauvet
2024-10-22 17:07 ` ✗ Fi.CI.BUILD: failure for lib/chamelium: Move chameliumv2 support in its own directory Patchwork
2024-10-23  7:53   ` Louis Chauvet

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=efda127a-5e5e-452e-bd55-6fece10cb0cf@collabora.com \
    --to=vignesh.raman@collabora.com \
    --cc=20241022-b4-cv3-01-igt-kms-v2-0-8f654694b513@bootlin.com \
    --cc=20241022-b4-cv3-02-monitor-edids-v2-0-7634786c21e6@bootlin.com \
    --cc=adrinael@adrinael.net \
    --cc=arek@hiler.eu \
    --cc=ashutosh.dixit@intel.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeremie.dautheribes@bootlin.com \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=louis.chauvet@bootlin.com \
    --cc=markyacoub@google.com \
    --cc=nicolejadeyee@google.com \
    --cc=seanpaul@google.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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