// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
{
  flow:             lint
  lint_root:        "{proj_root}/hw/lint"
  flow_makefile:    "{lint_root}/tools/dvsim/lint.mk"

  import_cfgs:      [// Common server configuration for results upload
                     "{proj_root}/hw/data/common_project_cfg.hjson"
                     // Tool-specific configuration
                     "{lint_root}/tools/dvsim/{tool}.hjson"]

  // Name of the DUT / top-level to be run through lint.
  dut:        "{name}"

  // Default directory structure for the output.
  build_dir:  "{scratch_path}/{build_mode}"
  build_log:  "{build_dir}/{tool}.log"

  // We rely on fusesoc to run lint for us.
  build_cmd:  "{job_prefix} fusesoc"
  build_opts: ["--cores-root {proj_root}/hw",
               "run",
               "--target={flow}",
               "--tool={tool}",
               "--work-root={build_dir}/fusesoc-work",
               "--mapping=lowrisc:prim_generic:all:0.1",
               "{additional_fusesoc_argument}",
               "{fusesoc_core}"]

  // Determines which message severities to print into report summaries.
  report_severities: ["info", "warning", "error"]
  // Determines which message severities lead to a pass/fail.
  fail_severities: ["warning", "error"]
  // Define message bucket categories and severities.
  message_buckets: [
    {category: "flow", severity: "info",     label: ""},
    {category: "flow", severity: "warning",  label: ""},
    {category: "flow", severity: "error",    label: ""},
    {category: "lint", severity: "info",     label: ""},
    {category: "lint", severity: "warning",  label: ""},
    {category: "lint", severity: "error",    label: ""}
  ]

  // These are not needed currently.
  sv_flist_gen_cmd:   ""
  sv_flist_gen_opts:  []
  sv_flist_gen_dir:   ""
}
