Skip to content

Commit 3617d02

Browse files
committed
Avoid recursive make call to fix warnings
There is no need and removes: Makefile:339: target `objects/asap7/gcd/base/lib/asap7sc7p5t_AO_RVT_FF_nldm_211120.lib' given more than once in the same rule. Makefile:339: target `objects/asap7/gcd/base/lib/asap7sc7p5t_INVBUF_RVT_FF_nldm_220122.lib' given more than once in the same rule. Makefile:339: target `objects/asap7/gcd/base/lib/asap7sc7p5t_OA_RVT_FF_nldm_211120.lib' given more than once in the same rule. Makefile:339: target `objects/asap7/gcd/base/lib/asap7sc7p5t_SIMPLE_RVT_FF_nldm_211120.lib' given more than once in the same rule. Makefile:339: target `objects/asap7/gcd/base/lib/asap7sc7p5t_SEQ_RVT_FF_nldm_220123.lib' given more than once in the same rule. Signed-off-by: Matt Liberty <[email protected]>
1 parent 10f426e commit 3617d02

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

flow/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,11 +656,10 @@ finish: $(LOG_DIR)/6_report.log \
656656
$(RESULTS_DIR)/6_final.v \
657657
$(RESULTS_DIR)/6_final.sdc \
658658
$(GDS_FINAL_FILE)
659-
$(MAKE) elapsed
660-
659+
-@$(UTILS_DIR)/genElapsedTime.py -d "$(LOG_DIR)"
660+
661661
.PHONY:
662662
elapsed:
663-
@printf "%-25s %10s\n" Log "Elapsed seconds"
664663
-@$(UTILS_DIR)/genElapsedTime.py -d "$(LOG_DIR)"
665664

666665
# ==============================================================================

flow/util/genElapsedTime.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
parser.print_help()
2424
sys.exit(1)
2525

26-
found = False
27-
26+
first = True
27+
2828
# Loop on all log files in the directory
2929
for f in sorted(pathlib.Path(args.logDir).glob('**/[0-9]_*.log')):
3030
# Extract Elapsed Time line from log file
3131
with open(str(f)) as logfile:
32+
found = False
3233
for line in logfile:
3334
elapsedTime = 0
3435

@@ -56,4 +57,7 @@
5657

5758
# Print the name of the step and the corresponding elapsed time
5859
if elapsedTime != 0:
60+
if first:
61+
print("%-25s %10s" % ("Log", "Elapsed seconds"))
62+
first = False
5963
print('%-25s %10s' % (os.path.splitext(os.path.basename(str(f)))[0], elapsedTime))

0 commit comments

Comments
 (0)