• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/rt-tests/01-fix-build-system.patch
Alexey BrodkinAlexey Brodkin committed 59ad194277210 Nov 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From f9a55a87af57780ea8940561d22cd6a90f461416 Mon Sep 17 00:00:00 2001
2
From: Alexey Brodkin <abrodkin@synopsys.com>
3
Date: Mon, 10 Nov 2014 11:44:55 +0300
4
Subject: [PATCH] Fix various minor issues with rt-tests build system
5
​
6
The issues fixed are :
7
​
8
 * Remove the automatic NUMA detection from the host
9
   architecture. This is broken when doing cross-compilation. One can
10
   still set NUMA=1 if NUMA support is desired.
11
​
12
 * Provide a HASPYTHON variable to tell whether the target system has
13
   Python or not. Otherwise, the build system simply tests whether
14
   Python is available on the host. The PYLIB variable is also changed
15
   so that it can be overriden from the environment, in order to
16
   provide the correct Python module location for the target.
17
​
18
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
20
Cc: Peter Korsgaard <peter@korsgaard.com>
21
---
22
 Makefile | 10 +++-------
23
 1 file changed, 3 insertions(+), 7 deletions(-)
24
​
25
diff --git a/Makefile b/Makefile
26
index 318a5c6..645d138 100644
27
--- a/Makefile
28
+++ b/Makefile
29
@@ -14,17 +14,13 @@ bindir  ?= $(prefix)/bin
30
 mandir ?= $(prefix)/share/man
31
 srcdir ?= $(prefix)/src
32
 
33
-machinetype = $(shell $(CC) -dumpmachine | \
34
-    sed -e 's/-.*//' -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/')
35
-ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),)
36
-NUMA   := 1
37
-endif
38
-
39
 CFLAGS ?= -Wall -Wno-nonnull
40
 CPPFLAGS += -D_GNU_SOURCE -Isrc/include
41
 LDFLAGS ?=
42
 
43
-PYLIB  := $(shell python -c 'import distutils.sysconfig;  print distutils.sysconfig.get_python_lib()')
44
+ifeq ($(HASPYTHON),1)
45
+PYLIB ?= $(shell python -c 'import distutils.sysconfig;  print distutils.sysconfig.get_python_lib()')
46
+endif
47
 
48
 ifndef DEBUG
49
    CFLAGS  += -O2
50
-- 
51
1.9.3
52
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.