mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user