build-userland-in-tree 568 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python3
  2. import os
  3. import subprocess
  4. import lkmc.import_path
  5. build_userland = lkmc.import_path.import_path_relative_root('build-userland')
  6. class Main(build_userland.Main):
  7. def __init__(self):
  8. super().__init__(
  9. description='''\
  10. https://github.com/cirosantilli/linux-kernel-module-cheat#userland-setup-getting-started-natively
  11. ''',
  12. defaults={
  13. 'gcc_which': 'host',
  14. 'in_tree': True,
  15. 'targets': ['.'],
  16. }
  17. )
  18. if __name__ == '__main__':
  19. Main().cli()