add usage examples

This commit is contained in:
alexander stefanov 2024-11-13 23:57:20 +03:00
parent 92f9afa840
commit 4d5bf601ee

View file

@ -48,7 +48,11 @@ def build_uboot(config, vendor, device):
def main(): def main():
if len(sys.argv) < 3 or "--distro" not in sys.argv: if len(sys.argv) < 3 or "--distro" not in sys.argv:
print("Usage: python build.py --distro <distro_name> <vendor/device> [--skip-kernel] [--skip-uboot]") print("example: python build.py --distro <distro_name> <vendor/device> [--skip-kernel] [--skip-uboot] [--skip-rootfs]")
print("""Usage: optional features:
--skip-kernel [do not build kernel]
--skip-uboot [do not build u-boot]
--skip-rootfs [do not create distro rootfs]""")
sys.exit(1) sys.exit(1)
distro_idx = sys.argv.index("--distro") + 1 distro_idx = sys.argv.index("--distro") + 1