baremetal aarch64: create C version of multicore.S as well

Attempted to do the same for arm, but it failed.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-08-21 00:00:00 +00:00
parent 6f88fa17bc
commit f28191a735
21 changed files with 336 additions and 89 deletions

View File

@@ -45,6 +45,14 @@ Build the baremetal examples with crosstool-NG.
self.env['baremetal_build_lib_dir'],
syscalls_basename_noext + self.env['obj_ext']
)
syscalls_asm_src = os.path.join(
self.env['baremetal_source_lib_dir'],
syscalls_basename_noext + '_asm' + self.env['asm_ext']
)
syscalls_asm_obj = os.path.join(
self.env['baremetal_build_lib_dir'],
syscalls_basename_noext + '_asm' + self.env['obj_ext']
)
cc_flags = [
'-I', self.env['root_dir'], LF,
'-O{}'.format(self.env['optimization_level']), LF,
@@ -93,6 +101,7 @@ Build the baremetal examples with crosstool-NG.
(bootloader_src, extra_obj_baremetal_bootloader),
(self.env['common_c'], extra_obj_lkmc_common),
(syscalls_src, syscalls_obj),
(syscalls_asm_src, syscalls_asm_obj),
]:
self._build_one(
in_path=in_path,
@@ -123,7 +132,7 @@ Build the baremetal examples with crosstool-NG.
self.env['baremetal_link_script'],
self.env['common_h']
],
'extra_objs': [syscalls_obj],
'extra_objs': [syscalls_obj, syscalls_asm_obj],
'extra_objs_baremetal_bootloader': [extra_obj_baremetal_bootloader],
'extra_objs_lkmc_common': [extra_obj_lkmc_common],
'in_path': in_path,