From 687a5386950a66e8d078d24238fdf52057c4940d Mon Sep 17 00:00:00 2001 From: Jeonghwa Jeong Date: Wed, 14 Dec 2016 17:03:05 +0900 Subject: [PATCH] fixed rules.py to generate buildinfo files correctly and avoid scons cycle error --- rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.py b/rules.py index fe750af..8a8db65 100644 --- a/rules.py +++ b/rules.py @@ -244,7 +244,7 @@ def UnitTest(env, name, sources, **kwargs): return test_exe_list def GenerateBuildInfoCode(env, target, source, path): - env.Command(target=target, source=source, action=BuildInfoAction) + BuildInfoAction(env, target, source, path) return # If contrail-controller (i.e., #controller/) is present, determine @@ -304,7 +304,7 @@ def GetBuildInfoData(env, target, source): def BuildInfoAction(env, target, source): - build_dir = target[0].dir.path + build_dir = os.getcwd() jsdata = GetBuildInfoData(env, target, source) h_code = """