From 6a3daf1f566c0bb722207f125d2aaee6930e9947 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Mon, 19 Feb 2018 17:24:27 +0000 Subject: COMPMID-942: Created 'embed_only' build target for ArmNN Change-Id: I579943339fc77c31ce29253cdbc3d8654ac0c6f0 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121167 Reviewed-by: Pablo Tello Tested-by: Jenkins --- SConstruct | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 82100decfa..b74a6b9a2a 100644 --- a/SConstruct +++ b/SConstruct @@ -42,7 +42,7 @@ vars.AddVariables( BoolVariable("logging", "Logging (this flag is forced to 1 for debug=1)", False), EnumVariable("arch", "Target Architecture", "armv7a", allowed_values=("armv7a", "arm64-v8a", "arm64-v8.2-a", "x86_32", "x86_64")), EnumVariable("os", "Target OS", "linux", allowed_values=("linux", "android", "bare_metal")), - EnumVariable("build", "Build type", "cross_compile", allowed_values=("native", "cross_compile")), + EnumVariable("build", "Build type", "cross_compile", allowed_values=("native", "cross_compile", "embed_only")), BoolVariable("examples", "Build example programs", True), BoolVariable("Werror", "Enable/disable the -Werror compilation flag", True), BoolVariable("standalone", "Builds the tests as standalone executables, links statically with libgcc, libstdc++ and libarm_compute", False), @@ -61,11 +61,17 @@ vars.AddVariables( env = Environment(platform="posix", variables=vars, ENV = os.environ) env.Append(LIBPATH = ["#build/%s" % env['build_dir']]) +Export('env') +Export('vars') SConsignFile('build/.%s' % env['build_dir']) Help(vars.GenerateHelpText(env)) +if env['build'] == "embed_only": + SConscript('./SConscript', variant_dir='#build/%s' % env['build_dir'], duplicate=0) + Return() + if env['neon'] and 'x86' in env['arch']: print "Cannot compile NEON for x86" Exit(1) @@ -231,8 +237,6 @@ if env['logging']: env.Append(CPPPATH = ['#/include', "#"]) env.Append(CXXFLAGS = env['extra_cxx_flags']) -Export('vars') -Export('env') Export('version_at_least') if env['opencl']: -- cgit v1.2.1