mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
common.run_cmd: assert result == 0 by default
This commit is contained in:
8
build-m5
8
build-m5
@@ -28,19 +28,19 @@ class M5Component(common.Component):
|
||||
|
||||
def do_build(self, args):
|
||||
os.makedirs(common.gem5_m5_build_dir, exist_ok=True)
|
||||
assert common.run_cmd(
|
||||
common.run_cmd(
|
||||
self.get_make_cmd(args),
|
||||
cwd=common.gem5_m5_src_dir,
|
||||
) == 0
|
||||
)
|
||||
print(common.out_rootfs_overlay_bin_dir)
|
||||
os.makedirs(common.out_rootfs_overlay_bin_dir, exist_ok=True)
|
||||
common.cp(os.path.join(common.gem5_m5_src_dir, 'm5'), common.out_rootfs_overlay_bin_dir)
|
||||
|
||||
def clean(self, args):
|
||||
assert common.run_cmd(
|
||||
common.run_cmd(
|
||||
self.get_make_cmd(args) + ['clean'],
|
||||
cwd=common.gem5_m5_src_dir,
|
||||
) == 0
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
M5Component().build()
|
||||
|
||||
Reference in New Issue
Block a user