2014-11-10 10:59:08 +01:00
|
|
|
From f9a55a87af57780ea8940561d22cd6a90f461416 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Alexey Brodkin <abrodkin@synopsys.com>
|
|
|
|
Date: Mon, 10 Nov 2014 11:44:55 +0300
|
|
|
|
Subject: [PATCH] Fix various minor issues with rt-tests build system
|
2011-12-22 13:13:38 +01:00
|
|
|
|
|
|
|
The issues fixed are :
|
|
|
|
|
|
|
|
* Remove the automatic NUMA detection from the host
|
|
|
|
architecture. This is broken when doing cross-compilation. One can
|
|
|
|
still set NUMA=1 if NUMA support is desired.
|
|
|
|
|
|
|
|
* Provide a HASPYTHON variable to tell whether the target system has
|
|
|
|
Python or not. Otherwise, the build system simply tests whether
|
|
|
|
Python is available on the host. The PYLIB variable is also changed
|
|
|
|
so that it can be overriden from the environment, in order to
|
|
|
|
provide the correct Python module location for the target.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2014-11-10 10:59:08 +01:00
|
|
|
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
|
|
|
|
Cc: Peter Korsgaard <peter@korsgaard.com>
|
|
|
|
---
|
|
|
|
Makefile | 10 +++-------
|
|
|
|
1 file changed, 3 insertions(+), 7 deletions(-)
|
2011-12-22 13:13:38 +01:00
|
|
|
|
2014-11-10 10:59:08 +01:00
|
|
|
diff --git a/Makefile b/Makefile
|
|
|
|
index 318a5c6..645d138 100644
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
|
|
|
@@ -14,17 +14,13 @@ bindir ?= $(prefix)/bin
|
2011-12-22 13:13:38 +01:00
|
|
|
mandir ?= $(prefix)/share/man
|
|
|
|
srcdir ?= $(prefix)/src
|
|
|
|
|
2014-11-10 10:59:08 +01:00
|
|
|
-machinetype = $(shell $(CC) -dumpmachine | \
|
|
|
|
- sed -e 's/-.*//' -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/')
|
2011-12-22 13:13:38 +01:00
|
|
|
-ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),)
|
|
|
|
-NUMA := 1
|
|
|
|
-endif
|
|
|
|
-
|
2014-11-10 10:59:08 +01:00
|
|
|
CFLAGS ?= -Wall -Wno-nonnull
|
|
|
|
CPPFLAGS += -D_GNU_SOURCE -Isrc/include
|
|
|
|
LDFLAGS ?=
|
2011-12-22 13:13:38 +01:00
|
|
|
|
|
|
|
-PYLIB := $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()')
|
|
|
|
+ifeq ($(HASPYTHON),1)
|
|
|
|
+PYLIB ?= $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()')
|
|
|
|
+endif
|
|
|
|
|
|
|
|
ifndef DEBUG
|
|
|
|
CFLAGS += -O2
|
2014-11-10 10:59:08 +01:00
|
|
|
--
|
|
|
|
1.9.3
|
|
|
|
|