INNER CODE UNIT · Python

main

wolfSSL/wolfBoot · tools/sbom/sbom-driver.py:223

def main():
    ap = argparse.ArgumentParser(
        description=__doc__,
        formatter_class=argparse.RawDescriptionHelpFormatter)

    # Composition (at least one of --lib / --srcs-file; --source-only needs srcs).
    ap.add_argument("--lib", default="",
                    help="Path to the built library to hash (tier R/L/S).")
    ap.add_argument("--srcs-file", default="",
                    help="File listing compiled-in sources (tier E).")
    ap.add_argument("--no-artifact-hash", action="store_true",
                    help="Do not recompute the artifact hash. For as-built FIPS "
                         "or kernel modules.")

    # Config (choose one).
    grp = ap.add_mutually_exclusive_group()
    grp.add_argument("--cflags", default="",
                     help="Build CFLAGS; -D tokens expanded through the host cc.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…