All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency
@ 2018-02-07 19:04 Baruch Siach
  2018-02-07 19:49 ` Petr Vorel
  2018-02-08 22:12 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Baruch Siach @ 2018-02-07 19:04 UTC (permalink / raw)
  To: buildroot

Make the detection of libnuma in the configure script consistent when
the numactl package is enabled.

ltp-testsuite does not currently take explicit enable/disable for
libnuma, so none are used. The next ltp-testsuite version will add these
options.

Cc: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/ltp-testsuite/ltp-testsuite.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
index 5e0b35d12a22..c47f587836b3 100644
--- a/package/ltp-testsuite/ltp-testsuite.mk
+++ b/package/ltp-testsuite/ltp-testsuite.mk
@@ -40,6 +40,13 @@ else
 LTP_TESTSUITE_CONF_ENV += ac_cv_lib_cap_cap_compare=no
 endif
 
+# No explicit enable/disable options
+ifeq ($(BR2_PACKAGE_NUMACTL),y)
+LTP_TESTSUITE_DEPENDENCIES += numactl
+else
+LTP_TESTSUITE_CONF_ENV += have_numa_headers=no
+endif
+
 # ltp-testsuite uses <fts.h>, which isn't compatible with largefile
 # support.
 LTP_TESTSUITE_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency
  2018-02-07 19:04 [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency Baruch Siach
@ 2018-02-07 19:49 ` Petr Vorel
  2018-02-08  0:29   ` Arnout Vandecappelle
  2018-02-08 22:12 ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2018-02-07 19:49 UTC (permalink / raw)
  To: buildroot

Hi Baruch,
> Make the detection of libnuma in the configure script consistent when
> the numactl package is enabled.

> ltp-testsuite does not currently take explicit enable/disable for
> libnuma, so none are used. The next ltp-testsuite version will add these
> options.

> Cc: Petr Vorel <petr.vorel@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/ltp-testsuite/ltp-testsuite.mk | 7 +++++++
>  1 file changed, 7 insertions(+)

> diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
> index 5e0b35d12a22..c47f587836b3 100644
> --- a/package/ltp-testsuite/ltp-testsuite.mk
> +++ b/package/ltp-testsuite/ltp-testsuite.mk
> @@ -40,6 +40,13 @@ else
>  LTP_TESTSUITE_CONF_ENV += ac_cv_lib_cap_cap_compare=no
>  endif

> +# No explicit enable/disable options
> +ifeq ($(BR2_PACKAGE_NUMACTL),y)
> +LTP_TESTSUITE_DEPENDENCIES += numactl
> +else
> +LTP_TESTSUITE_CONF_ENV += have_numa_headers=no
> +endif
> +
>  # ltp-testsuite uses <fts.h>, which isn't compatible with largefile
>  # support.
>  LTP_TESTSUITE_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
Thanks for implementing it, LGTM.
I just think whether it wouldn't be better to create config option
BR2_PACKAGE_LTP_TESTSUITE_LIBNUMA which would select numactl (this would also inform user
about this dependency).


Kind regards,
Petr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency
  2018-02-07 19:49 ` Petr Vorel
@ 2018-02-08  0:29   ` Arnout Vandecappelle
  2018-02-08  8:56     ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2018-02-08  0:29 UTC (permalink / raw)
  To: buildroot



On 07-02-18 20:49, Petr Vorel wrote:
> Hi Baruch,
>> Make the detection of libnuma in the configure script consistent when
>> the numactl package is enabled.
> 
>> ltp-testsuite does not currently take explicit enable/disable for
>> libnuma, so none are used. The next ltp-testsuite version will add these
>> options.
> 
>> Cc: Petr Vorel <petr.vorel@gmail.com>
>> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
>> ---
>>  package/ltp-testsuite/ltp-testsuite.mk | 7 +++++++
>>  1 file changed, 7 insertions(+)
> 
>> diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
>> index 5e0b35d12a22..c47f587836b3 100644
>> --- a/package/ltp-testsuite/ltp-testsuite.mk
>> +++ b/package/ltp-testsuite/ltp-testsuite.mk
>> @@ -40,6 +40,13 @@ else
>>  LTP_TESTSUITE_CONF_ENV += ac_cv_lib_cap_cap_compare=no
>>  endif
> 
>> +# No explicit enable/disable options
>> +ifeq ($(BR2_PACKAGE_NUMACTL),y)
>> +LTP_TESTSUITE_DEPENDENCIES += numactl
>> +else
>> +LTP_TESTSUITE_CONF_ENV += have_numa_headers=no
>> +endif
>> +
>>  # ltp-testsuite uses <fts.h>, which isn't compatible with largefile
>>  # support.
>>  LTP_TESTSUITE_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
> Thanks for implementing it, LGTM.
> I just think whether it wouldn't be better to create config option
> BR2_PACKAGE_LTP_TESTSUITE_LIBNUMA which would select numactl (this would also inform user
> about this dependency).

 We generally don't do that unless there is a very good reason, to avoid
proliferation of Config.in options. In this case, I don't see a very good reason.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency
  2018-02-08  0:29   ` Arnout Vandecappelle
@ 2018-02-08  8:56     ` Petr Vorel
  0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2018-02-08  8:56 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

<snip>
> >> +# No explicit enable/disable options
> >> +ifeq ($(BR2_PACKAGE_NUMACTL),y)
> >> +LTP_TESTSUITE_DEPENDENCIES += numactl
> >> +else
> >> +LTP_TESTSUITE_CONF_ENV += have_numa_headers=no
> >> +endif
> >> +
> >>  # ltp-testsuite uses <fts.h>, which isn't compatible with largefile
> >>  # support.
> >>  LTP_TESTSUITE_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
> > Thanks for implementing it, LGTM.
> > I just think whether it wouldn't be better to create config option
> > BR2_PACKAGE_LTP_TESTSUITE_LIBNUMA which would select numactl (this would also inform user
> > about this dependency).

>  We generally don't do that unless there is a very good reason, to avoid
> proliferation of Config.in options. In this case, I don't see a very good reason.
OK, thanks for info.
Yesterday we added --without-numa config option to properly disable and there will probably be some more as people demand it. So I thought it would be good for people to be able to choose.


Kind regards,
Petr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency
  2018-02-07 19:04 [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency Baruch Siach
  2018-02-07 19:49 ` Petr Vorel
@ 2018-02-08 22:12 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-02-08 22:12 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed,  7 Feb 2018 21:04:48 +0200, Baruch Siach wrote:
> Make the detection of libnuma in the configure script consistent when
> the numactl package is enabled.
> 
> ltp-testsuite does not currently take explicit enable/disable for
> libnuma, so none are used. The next ltp-testsuite version will add these
> options.
> 
> Cc: Petr Vorel <petr.vorel@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  package/ltp-testsuite/ltp-testsuite.mk | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-08 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-07 19:04 [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency Baruch Siach
2018-02-07 19:49 ` Petr Vorel
2018-02-08  0:29   ` Arnout Vandecappelle
2018-02-08  8:56     ` Petr Vorel
2018-02-08 22:12 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.