浏览代码

[build] Run parserom.pl only on potential driver files

PCI_ROM() and ISA_ROM() macros occur only within driver files.
Running parserom.pl on non-driver files is therefore redundant.

Skip running parserom.pl on any files outside a "drivers" directory.
This reduces the time taken to generate build rules and dependencies
after a "make veryclean" by around 12%.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年前
父节点
当前提交
bd9ff16c21
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/Makefile.housekeeping

+ 2
- 1
src/Makefile.housekeeping 查看文件

@@ -549,7 +549,8 @@ define rules_template
549 549
 		    '\n$(TGT)_OBJS += $$(BIN)/$(3).$(TGT)\n' ) ) \
550 550
 		 '\n$(BIN)/deps/$(1).d : $$($(3)_DEPS)\n' \
551 551
 		 '\nTAGS : $$($(3)_DEPS)\n' > $(BIN)/rules/$(1).r
552
-	@$(PERL) $(PARSEROM) $(1) >> $(BIN)/rules/$(1).r
552
+	@$(if $(findstring drivers/,$(1)),\
553
+	   $(PERL) $(PARSEROM) $(1) >> $(BIN)/rules/$(1).r)
553 554
 endef
554 555
 
555 556
 # Rule to generate the dependency list file

正在加载...
取消
保存