mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland/freestanding/gem5_* work on baremetal
Remove all the duplicates of those present throughout the tree.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user