aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 10 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f22facb..e7885d3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -9,12 +9,17 @@ API_FLAGS = '-D_XOPEN_SOURCE=600 -D_GNU_SOURCE'
9X86_32_FLAGS = '-m32' 9X86_32_FLAGS = '-m32'
10X86_64_FLAGS = '-m64' 10X86_64_FLAGS = '-m64'
11V9_FLAGS = '-mcpu=v9 -m64' 11V9_FLAGS = '-mcpu=v9 -m64'
12
12SUPPORTED_ARCHS = { 13SUPPORTED_ARCHS = {
13 'sparc64' : V9_FLAGS, 14 'sparc64' : V9_FLAGS,
14 'x86' : X86_32_FLAGS, 15 'x86' : X86_32_FLAGS,
15 'x86_64' : X86_64_FLAGS, 16 'x86_64' : X86_64_FLAGS,
16} 17}
17 18
19ARCH_ALIAS = {
20 'i686' : 'x86'
21}
22
18KERNEL_INCLUDE = '%s/include/' % LITMUS_KERNEL 23KERNEL_INCLUDE = '%s/include/' % LITMUS_KERNEL
19INCLUDE_DIRS = 'include/ ' + KERNEL_INCLUDE 24INCLUDE_DIRS = 'include/ ' + KERNEL_INCLUDE
20 25
@@ -50,8 +55,12 @@ if 'ARCH' in ARGUMENTS:
50elif 'ARCH' in environ: 55elif 'ARCH' in environ:
51 arch = environ['ARCH'] 56 arch = environ['ARCH']
52 57
58# replace if the arch has an alternative name
59if arch in ARCH_ALIAS:
60 arch = ARCH_ALIAS[arch]
61
53if arch not in SUPPORTED_ARCHS: 62if arch not in SUPPORTED_ARCHS:
54 print 'Error: Building ft_tools is only supported for the following', \ 63 print 'Error: Building liblitmus is only supported for the following', \
55 'architectures: %s.' % ', '.join(sorted(SUPPORTED_ARCHS)) 64 'architectures: %s.' % ', '.join(sorted(SUPPORTED_ARCHS))
56 Exit(1) 65 Exit(1)
57else: 66else: