mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Move pre-build tidyup into Python for build-instr-gen.py
This commit is contained in:
parent
5a9b5b9993
commit
87fb0b7906
2 changed files with 7 additions and 1 deletions
|
@ -276,7 +276,6 @@ risc-dv-files := $(shell find $(GEN_DIR) -type f)
|
|||
$(metadata)/.instr_gen.build.stamp: \
|
||||
$(instr-gen-build-vars-prereq) \
|
||||
$(risc-dv-files) scripts/build-instr-gen.py | $(metadata)
|
||||
$(verb)rm -rf $(OUT-SEED)/instr_gen
|
||||
$(verb)scripts/build-instr-gen.py \
|
||||
$(verb-arg) \
|
||||
--simulator $(SIMULATOR) \
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import argparse
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
from scripts_lib import run_one, start_riscv_dv_run_cmd
|
||||
|
@ -20,6 +21,12 @@ def main() -> int:
|
|||
|
||||
args = parser.parse_args()
|
||||
|
||||
# Delete the output directory if it existed to ensure a clear build
|
||||
try:
|
||||
shutil.rmtree(args.output)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
cmd = (start_riscv_dv_run_cmd(args.verbose) +
|
||||
['--co', '--steps=gen',
|
||||
'--simulator', args.simulator,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue