test-gdb: move to pure python calls

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent d923c606f3
commit 3ce152f61c
10 changed files with 182 additions and 100 deletions

View File

@@ -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)