Pirmin Vogel | ed097cc | 2020-03-09 11:35:21 +0100 | [diff] [blame] | 1 | CAPI=2: |
| 2 | # Copyright lowRISC contributors. |
| 3 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | name: "lowrisc:tool:check_tool_requirements:0.1" |
| 6 | description: "Check tool requirements" |
| 7 | |
| 8 | filesets: |
| 9 | files_check_tool_requirements: |
| 10 | files: |
| 11 | - ./util/check_tool_requirements.py : { copyto: util/check_tool_requirements.py } |
| 12 | - ./tool_requirements.py : { copyto: tool_requirements.py } |
| 13 | |
| 14 | scripts: |
Michael Schaffner | 6be21b3 | 2021-05-12 21:09:44 -0700 | [diff] [blame] | 15 | check_tool_requirements_verible: |
Pirmin Vogel | ed097cc | 2020-03-09 11:35:21 +0100 | [diff] [blame] | 16 | cmd: |
| 17 | - python3 |
| 18 | - util/check_tool_requirements.py |
Michael Schaffner | 6be21b3 | 2021-05-12 21:09:44 -0700 | [diff] [blame] | 19 | - 'verible' |
Pirmin Vogel | ed097cc | 2020-03-09 11:35:21 +0100 | [diff] [blame] | 20 | # TODO: Use this syntax once https://github.com/olofk/fusesoc/issues/353 is |
| 21 | # fixed. Remove the filesets from the default target, and also remove the |
| 22 | # copyto. |
| 23 | #filesets: |
| 24 | # - files_check_tool_requirements |
Michael Schaffner | 6be21b3 | 2021-05-12 21:09:44 -0700 | [diff] [blame] | 25 | check_tool_requirements_verilator: |
| 26 | cmd: |
| 27 | - python3 |
| 28 | - util/check_tool_requirements.py |
| 29 | - 'verilator' |
Pirmin Vogel | ed097cc | 2020-03-09 11:35:21 +0100 | [diff] [blame] | 30 | |
| 31 | targets: |
| 32 | default: |
| 33 | filesets: |
| 34 | - files_check_tool_requirements |
| 35 | hooks: |
| 36 | pre_build: |
Michael Schaffner | 6be21b3 | 2021-05-12 21:09:44 -0700 | [diff] [blame] | 37 | - tool_verilator ? (check_tool_requirements_verilator) |
| 38 | - tool_veriblelint ? (check_tool_requirements_verible) |