mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
test-gdb: move to pure python calls
This commit is contained in:
@@ -92,10 +92,9 @@ Build the baremetal examples with crosstool-NG.
|
||||
bootloader_obj=bootloader_obj,
|
||||
common_objs=common_objs,
|
||||
)
|
||||
arch_dir = os.path.join('arch', self.env['arch'])
|
||||
if os.path.isdir(os.path.join(self.env['baremetal_src_dir'], arch_dir)):
|
||||
if os.path.isdir(os.path.join(self.env['baremetal_src_arch_dir'])):
|
||||
self._build_dir(
|
||||
arch_dir,
|
||||
self.env['baremetal_src_arch_subpath'],
|
||||
gcc=gcc,
|
||||
cflags=cflags,
|
||||
entry_address=entry_address,
|
||||
@@ -127,12 +126,12 @@ Build the baremetal examples with crosstool-NG.
|
||||
common_objs,
|
||||
bootloader=True
|
||||
):
|
||||
"""
|
||||
'''
|
||||
Build all .c and .S files in a given subpath of the baremetal source
|
||||
directory non recursively.
|
||||
|
||||
Place outputs on the same subpath or the output directory.
|
||||
"""
|
||||
'''
|
||||
in_dir = os.path.join(self.env['baremetal_src_dir'], subpath)
|
||||
out_dir = os.path.join(self.env['baremetal_build_dir'], subpath)
|
||||
os.makedirs(out_dir, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user