added initial scons scripts for ARM build.

This commit is contained in:
Mark Gottscho 2015-04-23 15:39:37 -07:00
Родитель ba14677a3d
Коммит 48e2fd03d7
3 изменённых файлов: 32 добавлений и 1 удалений

26
SConscript_linux_arm Normal file
Просмотреть файл

@ -0,0 +1,26 @@
#SConscript file for GNU/Linux ARM build only
# Author: Mark Gottscho <mgottscho@ucla.edu>
import os
# Initialize build environment
env = Environment()
# Customize build settings
# LINUX
env.Append(CPPFLAGS = '-Wall -Wno-unused-but-set-variable -Wno-unused-variable -g -O3 -std=c++11 -fabi-version=6')
env.Append(CPPPATH = ['src/include', '/usr/include'])
env.Append(CPPPATH = ['src/include/ext/DelayInjectedLoadedLatencyBenchmark']) # Extension: Delay-injected loaded latency benchmark
env.Append(CPPPATH = ['src/include/ext/StreamBenchmark']) # Extension: Stream benchmark
env.Append(LIBS = ['pthread', 'hugetlbfs'])
# List all C++ source files
sources = [
Glob('src/*.cpp'),
Glob('src/ext/*/*.cpp'), # All extensions
]
defaultBuild = env.Program(target = 'xmem', source = sources)
Default(defaultBuild)

Просмотреть файл

@ -1,4 +1,4 @@
# SConscript file for GNU/Linux x86-64 with AVX build only
# SConscript file for GNU/Linux x86 build only
# Author: Mark Gottscho <mgottscho@ucla.edu>
import os

5
SConstruct_linux_arm Normal file
Просмотреть файл

@ -0,0 +1,5 @@
# SConstruct file for ARM build only
# Author: Mark Gottscho <mgottscho@ucla.edu>
SConscript('SConscript_linux_arm', variant_dir = 'build/linux/arm/release', duplicate = 0, exports = {'MODE':'release'})
#SConscript('SConscript_linux_arm', variant_dir = 'build/linux/arm/debug', duplicate = 0, exports = {'MODE':'debug'})