diff options
author | John Kacur <jkacur@redhat.com> | 2016-04-21 17:29:51 +0200 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2016-04-21 22:41:45 +0200 |
commit | 81a948a2a616d43ad5592557e16435d7b54aafd9 (patch) | |
tree | 1f75c7a64e45ec127e0a9c1c93af416cb9ac6f43 /Makefile | |
parent | 0e8a13a6465a1b9b48374afce628693ddc298b92 (diff) | |
download | rt-tests-81a948a2a616d43ad5592557e16435d7b54aafd9.tar.gz rt-tests-81a948a2a616d43ad5592557e16435d7b54aafd9.tar.xz |
rt-tests: Makefile: Assume numa_parse_cpustring_all available
NUMA users should have long ago stepped up to libs that have
numa_parse_cpustring_all(). Make this the default so that we can include
isolated cpus in the affinity string.
If there are any NUMA users or distros left that have old libraries that
don't have numa_parse_cpu_string_all(), and only numa_parse_cpu_string()
they can compile like this
make HAVE_PARSE_CPUSTRING_ALL=0
Signed-off-by: John Kacur <jkacur@redhat.com>
Reviewed-and-Tested-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -57,16 +57,17 @@ ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),) NUMA := 1 endif -# The default is to assume that you only have numa_parse_cpustring -# If you are sure you have a version of libnuma with numa_parse_cpustring_all +# The default is to assume that you have numa_parse_cpustring_all +# If you have an older version of libnuma that only has numa_parse_cpustring # then compile with -# make HAVE_PARSE_CPUSTRING_ALL=1 +# make HAVE_PARSE_CPUSTRING_ALL=0 +HAVE_PARSE_CPUSTRING_ALL?=1 ifeq ($(NUMA),1) CFLAGS += -DNUMA NUMA_LIBS = -lnuma -ifdef HAVE_PARSE_CPUSTRING_ALL - CFLAGS += -DHAVE_PARSE_CPUSTRING_ALL -endif + ifeq ($(HAVE_PARSE_CPUSTRING_ALL),1) + CFLAGS += -DHAVE_PARSE_CPUSTRING_ALL + endif endif include src/arch/android/Makefile |