mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
more destructive changes
This commit is contained in:
8
build-m5
8
build-m5
@@ -19,7 +19,7 @@ class M5Component(common.Component):
|
||||
'-f', 'Makefile.{}'.format(arch), common.Newline,
|
||||
'CC={}'.format(cc), common.Newline,
|
||||
'LD={}'.format(ld), common.Newline,
|
||||
'PWD={}'.format(common.gem5_m5_src_dir), common.Newline,
|
||||
'PWD={}'.format(common.gem5_m5_source_dir), common.Newline,
|
||||
]
|
||||
|
||||
def do_build(self, args):
|
||||
@@ -29,15 +29,15 @@ class M5Component(common.Component):
|
||||
self.clean(args)
|
||||
common.run_cmd(
|
||||
self.get_make_cmd(args),
|
||||
cwd=common.gem5_m5_src_dir,
|
||||
cwd=common.gem5_m5_source_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)
|
||||
common.cp(os.path.join(common.gem5_m5_source_dir, 'm5'), common.out_rootfs_overlay_bin_dir)
|
||||
|
||||
def clean(self, args):
|
||||
common.run_cmd(
|
||||
self.get_make_cmd(args) + ['clean', common.Newline],
|
||||
cwd=common.gem5_m5_src_dir,
|
||||
cwd=common.gem5_m5_source_dir,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user