mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
30 lines
782 B
Python
Executable File
30 lines
782 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import distutils.dir_util
|
|
import os
|
|
import shutil
|
|
|
|
import common
|
|
|
|
class CopyOverlayComponent(self.Component):
|
|
def do_build(self, args):
|
|
distutils.dir_util.copy_tree(
|
|
kwargs['rootfs_overlay_dir'],
|
|
kwargs['out_rootfs_overlay_dir'],
|
|
update=1,
|
|
)
|
|
|
|
def get_argparse_args(self):
|
|
return {
|
|
'description': '''\
|
|
Copy our git tracked rootfs_overlay to the final generated rootfs_overlay
|
|
that also contains generated build outputs. This has the following advantages
|
|
over just adding that to BR2_ROOTFS_OVERLAY:
|
|
- also works for non Buildroot root filesystesms
|
|
- places everything in one place for a nice 9P mount
|
|
''',
|
|
}
|
|
|
|
if __name__ == '__main__':
|
|
CopyOverlayComponent().build()
|