mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 22:09:06 +00:00
acrn-config: refine '--out' for config tool
Currently, '--out' is relative scripts run dir if it gets relative path, Refine '--out' to source root tree if it gets relative path. Tracked-On: #4641 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Terry Zou <terry.zou@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -200,11 +200,11 @@ def main(args):
|
||||
board_name = names['board_name']
|
||||
if output_folder:
|
||||
if os.path.isabs(output_folder):
|
||||
output = output_folder + '/' + board_name + '/output/'
|
||||
output = os.path.join(output_folder + '/' + board_name, 'output/')
|
||||
else:
|
||||
output = ACRN_PATH + board_name + '/output/'
|
||||
output = os.path.join(ACRN_PATH + output_folder + '/' + board_name, 'output/')
|
||||
else:
|
||||
output = ACRN_CONFIG_DEF + '/' + board_name + '/output/'
|
||||
output = os.path.join(ACRN_CONFIG_DEF + board_name, 'output/')
|
||||
common.mkdir(output)
|
||||
|
||||
# generate launch script
|
||||
|
Reference in New Issue
Block a user