mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
I was considering setting --static by default to match gem5, but then that breaks shared libraries like openblas... so let's just use the ugly workaround for now as it seems to work...
28 lines
643 B
Python
Executable File
28 lines
643 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import distutils.dir_util
|
|
import os
|
|
import shutil
|
|
|
|
import common
|
|
from shell_helpers import LF
|
|
|
|
class Main(common.BuildCliFunction):
|
|
def __init__(self):
|
|
super().__init__(
|
|
description='''\
|
|
https://github.com/cirosantilli/linux-kernel-module-cheat#rootfs_overlay
|
|
''')
|
|
|
|
def build(self):
|
|
# TODO: print rsync equivalent, move into shell_helpers.
|
|
distutils.dir_util.copy_tree(
|
|
self.env['rootfs_overlay_dir'],
|
|
self.env['out_rootfs_overlay_dir'],
|
|
preserve_symlinks=True,
|
|
update=1,
|
|
)
|
|
|
|
if __name__ == '__main__':
|
|
Main().cli()
|