mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
bak
This commit is contained in:
6
build-m5
6
build-m5
@@ -27,15 +27,15 @@ class M5Component(common.Component):
|
||||
# We must clean first or else the build outputs of one arch can conflict with the other.
|
||||
# I should stop being lazy and go actually patch gem5 to support out of tree m5 build...
|
||||
self.clean(args)
|
||||
common.run_cmd(
|
||||
self.sh.run_cmd(
|
||||
self.get_make_cmd(args),
|
||||
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_source_dir, 'm5'), common.out_rootfs_overlay_bin_dir)
|
||||
self.sh.cp(os.path.join(common.gem5_m5_source_dir, 'm5'), common.out_rootfs_overlay_bin_dir)
|
||||
|
||||
def clean(self, args):
|
||||
common.run_cmd(
|
||||
self.sh.run_cmd(
|
||||
self.get_make_cmd(args) + ['clean', common.Newline],
|
||||
cwd=common.gem5_m5_source_dir,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user