From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Wed, 7 Feb 2018 20:49:08 +0100 Subject: [Buildroot] [PATCH] ltp-testsuite: add numactl as optional dependency In-Reply-To: References: Message-ID: <20180207194907.GA1349@x230> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 > Signed-off-by: Baruch Siach > --- > 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 , 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