From 42d988ed6738ccc3bb0d9750219eb196a1dd7572 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 11 Nov 2018 20:04:25 +0800 Subject: [PATCH] [Tools] Fix the RTT_ROOT issue --- tools/building.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/building.py b/tools/building.py index fcc9c40024..cbd245b948 100644 --- a/tools/building.py +++ b/tools/building.py @@ -202,6 +202,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ Env = env Rtt_Root = os.path.abspath(root_directory) + + # make an absolute root directory + RTT_ROOT = Rtt_Root + Export('RTT_ROOT') + # set RTT_ROOT in ENV Env['RTT_ROOT'] = Rtt_Root # set BSP_ROOT in ENV