summaryrefslogtreecommitdiff
path: root/tools/building.py
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2021-07-12 10:14:20 +0800
committerguozhanxin <[email protected]>2021-07-12 10:14:20 +0800
commit40e7d5a23df65c15bb7db53fe5f77e76701fd20d (patch)
tree4973b28b01d289dd596a097a7560f26b810db771 /tools/building.py
parentddc5c793a482fe44310bafe181802ad406fa1b29 (diff)
parent5bae565f7f021ab13113fc0a9c67fc468d97de02 (diff)
Merge remote-tracking branch 'remotes/gitee/master'
Diffstat (limited to 'tools/building.py')
-rw-r--r--tools/building.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/building.py b/tools/building.py
index a768cd8519..e078c1626c 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -258,6 +258,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
'eclipse':('gcc', 'gcc'),
'ses' : ('gcc', 'gcc'),
'cmake':('gcc', 'gcc'),
+ 'cmake-armclang':('keil', 'armclang'),
'codelite' : ('gcc', 'gcc')}
tgt_name = GetOption('target')
@@ -447,6 +448,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
variant_dir=kernel_vdir + '/components',
duplicate=0,
exports='remove_components'))
+ # include testcases
+ if os.path.isfile(os.path.join(Rtt_Root, 'examples/utest/testcases/SConscript')):
+ objs.extend(SConscript(Rtt_Root + '/examples/utest/testcases/SConscript',
+ variant_dir=kernel_vdir + '/examples/utest/testcases',
+ duplicate=0))
return objs
@@ -878,7 +884,7 @@ def GenTargetProject(program = None):
from codelite import TargetCodelite
TargetCodelite(Projects, program)
- if GetOption('target') == 'cmake':
+ if GetOption('target') == 'cmake' or GetOption('target') == 'cmake-armclang':
from cmake import CMakeProject
CMakeProject(Env,Projects)
@@ -920,14 +926,11 @@ def EndBuilding(target, program = None):
project_name = GetOption('project-name')
if not isinstance(project_path, str) or len(project_path) == 0 :
- print("\nwarning : --project-path=your_project_path parameter is required.")
- print("\nstop!")
- exit(0)
-
+ project_path = os.path.join(BSP_ROOT, 'dist_ide_project')
+ print("\nwarning : --project-path not specified, use default path: {0}.".format(project_path))
if not isinstance(project_name, str) or len(project_name) == 0:
- print("\nwarning : --project-name=your_project_name parameter is required.")
- print("\nstop!")
- exit(0)
+ project_name = "dist_ide_project"
+ print("\nwarning : --project-name not specified, use default project name: {0}.".format(project_name))
rtt_ide = {'project_path' : project_path, 'project_name' : project_name}
MkDist(program, BSP_ROOT, Rtt_Root, Env, rtt_ide)