summaryrefslogtreecommitdiff
path: root/components/lwp/vdso/SConscript
diff options
context:
space:
mode:
authorbernard <[email protected]>2025-06-26 00:05:00 +0800
committerRbb666 <[email protected]>2025-07-07 09:44:37 +0800
commit172676e115666ac3f91e468f6d668b62b1844b45 (patch)
treedd62b39fcfa1118779879407b8d1fd8a4c03aac8 /components/lwp/vdso/SConscript
parent492e33dd3cee2f111c9d0b9ccc85020b243ed6cf (diff)
[smart] rename the Group name to 'lwProcess' and optimize the error handling for vDSO building.
Diffstat (limited to 'components/lwp/vdso/SConscript')
-rw-r--r--components/lwp/vdso/SConscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/components/lwp/vdso/SConscript b/components/lwp/vdso/SConscript
index 4360e8bf23..5f3f853d71 100644
--- a/components/lwp/vdso/SConscript
+++ b/components/lwp/vdso/SConscript
@@ -35,12 +35,15 @@ else:
process_env['RTT_DEVICE'] = rtconfig.DEVICE
command = ["scons", "-C", vdso_arch]
- clean_command = ["scons", "-C", vdso_arch, "--clean"]
+ if GetOption('clean'):
+ command = ["scons", "-C", vdso_arch, "--clean"]
- if not GetOption('clean'):
+ try:
result = subprocess.run(command, env=process_env, check=True)
- else:
- result = subprocess.run(clean_command, env=process_env, check=True)
+ # generic error handle
+ except :
+ print('exec command: "%s" failed.' % ' '.join(command))
+ exit(1)
if result.returncode == 0:
print("Command executed successfully")
@@ -48,5 +51,5 @@ else:
print("Command failed with exit code:", result.returncode)
exit(1)
-group = DefineGroup('vDSO', src, depend = ['RT_USING_SMART','RT_USING_VDSO'], CPPPATH = CPPPATH)
+group = DefineGroup('lwProcess', src, depend = ['RT_USING_SMART','RT_USING_VDSO'], CPPPATH = CPPPATH)
Return('group')