diff options
| author | rcitach <[email protected]> | 2026-04-21 09:51:56 +0000 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2026-04-30 06:19:58 +0800 |
| commit | c92480894c97378cecb492086404b2a0c2bebc07 (patch) | |
| tree | 66a1652cefcf02b2c7f75828c187d7b6862a1886 /components/lwp/vdso/SConscript | |
| parent | cf937c78961237eb5c356a74f56261f69e7bd1b8 (diff) | |
更新 vdso 框架
Diffstat (limited to 'components/lwp/vdso/SConscript')
| -rw-r--r-- | components/lwp/vdso/SConscript | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/components/lwp/vdso/SConscript b/components/lwp/vdso/SConscript index 07889d73a9..33fabc66b7 100644 --- a/components/lwp/vdso/SConscript +++ b/components/lwp/vdso/SConscript @@ -16,15 +16,7 @@ if rtconfig.ARCH != "aarch64" and rtconfig.ARCH != "risc-v": # not supported arch src = [] else: - if not hasattr(rtconfig, 'CPP') or rtconfig.CPP is None: - rtconfig.CPP = rtconfig.PREFIX + 'cpp' - if not hasattr(rtconfig, 'CPPFLAGS') or rtconfig.CPPFLAGS is None: - rtconfig.CPPFLAGS = ' -E -P -x assembler-with-cpp' - - if not os.path.exists(cwd + "/user" + "/arch" +"/" + rtconfig.ARCH + "/vdso.lds"): - Preprocessing("user/arch/" + rtconfig.ARCH + "/vdso.lds.S", ".lds", CPPPATH=[cwd]) - - vdso_arch = os.path.join(cwd, 'user',"arch", rtconfig.ARCH) + vdso_user = os.path.join(cwd, 'user') process_env = os.environ.copy() if hasattr(rtconfig, 'EXEC_PATH') and rtconfig.EXEC_PATH is not None: @@ -34,9 +26,9 @@ else: if hasattr(rtconfig, 'DEVICE') and rtconfig.DEVICE is not None: process_env['RTT_DEVICE'] = rtconfig.DEVICE - command = ["scons", "-C", vdso_arch] + command = ["scons", "-C", vdso_user, "RTT_VDSO_ARCH=%s" % rtconfig.ARCH] if GetOption('clean'): - command = ["scons", "-C", vdso_arch, "--clean"] + command = ["scons", "-C", vdso_user, "RTT_VDSO_ARCH=%s" % rtconfig.ARCH, "--clean"] try: result = subprocess.run(command, env=process_env, check=True) |
