userland/freestanding/gem5_* work on baremetal

Remove all the duplicates of those present throughout the tree.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-03-26 00:00:01 +00:00
parent 05a07fc0a8
commit e1d0a2fafb
9 changed files with 27 additions and 32 deletions

View File

@@ -1716,10 +1716,16 @@ after configure, e.g. SCons. Usually contains specific targets or other build fl
if extra_objs is None:
extra_objs= []
if link:
if self.env['mode'] == 'baremetal' or my_path_properties['extra_objs_lkmc_common']:
# Baremetal builds cannot add their usual syscall objects, as those
# rely on standard library symbols.
if my_path_properties['freestanding']:
extra_objs = []
if (self.env['mode'] == 'baremetal' and not my_path_properties['freestanding']) \
or my_path_properties['extra_objs_lkmc_common']:
extra_objs.extend(extra_objs_lkmc_common)
if (
self.env['mode'] == 'baremetal' and
not my_path_properties['freestanding'] and
not my_path_properties['extra_objs_disable_baremetal_bootloader']
):
extra_objs.extend(extra_objs_baremetal_bootloader)