mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
更新 vdso 框架
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user