diff options
| author | GUI <[email protected]> | 2023-07-25 21:31:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-25 21:31:44 +0800 |
| commit | 6f119d4ce90a1a4f3b491f21d50a286662f79480 (patch) | |
| tree | 1e1c2824aa04cabe193a43304b21469caadd2924 /libcpu/aarch64/SConscript | |
| parent | ef91876ee71a63208aec706147a68f60eae8a2fe (diff) | |
AArch64: support public linker scripts (#7831)
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'libcpu/aarch64/SConscript')
| -rw-r--r-- | libcpu/aarch64/SConscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcpu/aarch64/SConscript b/libcpu/aarch64/SConscript index 5fca2b473b..d726d2d1f2 100644 --- a/libcpu/aarch64/SConscript +++ b/libcpu/aarch64/SConscript @@ -8,6 +8,11 @@ Import('rtconfig') cwd = GetCurrentDir() group = [] list = os.listdir(cwd) +bsp_path = Dir('#').abspath + +if not os.path.exists(bsp_path + "/link.lds"): + Env['LINKFLAGS'] = Env['LINKFLAGS'].replace('link.lds', cwd + "/link.lds") + Preprocessing("link.lds.S", ".lds", CPPPATH=[bsp_path]) # add common code files group = group + SConscript(os.path.join('common', 'SConscript')) |
