diff options
| author | GuEe-GUI <[email protected]> | 2026-03-06 21:10:56 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-06-08 14:57:37 +0800 |
| commit | 63965cb103e5dcc6fe253579a063019542bdb35c (patch) | |
| tree | 0ed003012c544f220442e994ffbcb2ec53b2f742 /libcpu/aarch64/common/SConscript | |
| parent | ba3dcd55226aa88fd6501634308c4c8a1f0acb3a (diff) | |
[bsp][zynqmp-a53-dfzu2eg] enable full dm
This is a builtin fdt example BSP
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'libcpu/aarch64/common/SConscript')
| -rw-r--r-- | libcpu/aarch64/common/SConscript | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcpu/aarch64/common/SConscript b/libcpu/aarch64/common/SConscript index 99645683b8..b0e2698898 100644 --- a/libcpu/aarch64/common/SConscript +++ b/libcpu/aarch64/common/SConscript @@ -7,6 +7,7 @@ Import('rtconfig') cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') + Glob('*.S') CPPPATH = [cwd, cwd + '/include'] +bsp_path = Dir('#').abspath if GetDepend('RT_USING_SMP'): core_model = 'mp' @@ -17,6 +18,15 @@ src += Glob(core_model + '/*.S') if GetDepend('RT_USING_OFW') == False: SrcRemove(src, ['setup.c', 'cpu_psci.c', 'psci.c']) +else: + if GetDepend('RT_BUILTIN_FDT_PATH'): + dtb_path = os.path.join(bsp_path, GetDepend('RT_BUILTIN_FDT_PATH').strip('"')) + obj_path = os.path.join(os.getcwd(), 'builtin_fdt_gcc.o') + if os.path.exists(dtb_path) and os.path.exists(obj_path): + dtb_mtime = os.path.getmtime(dtb_path) + obj_mtime = os.path.getmtime(obj_path) + if dtb_mtime > obj_mtime: + os.remove(obj_path) if GetDepend('RT_USING_PIC') == True: SrcRemove(src, ['gicv3.c', 'gic.c', 'gtimer.c', 'interrupt.c']) |
