diff options
author | Michael Brown | 2011-04-10 00:34:34 +0200 |
---|---|---|
committer | Michael Brown | 2011-04-10 00:41:45 +0200 |
commit | bd9ff16c21efef27b6c18c15dc1d4b153ec12a4a (patch) | |
tree | 7169eaa35933d24452851d983c0211103ffd5b1a /src/Makefile.housekeeping | |
parent | [cmdline] Add "iseq" command (diff) | |
download | ipxe-bd9ff16c21efef27b6c18c15dc1d4b153ec12a4a.tar.gz ipxe-bd9ff16c21efef27b6c18c15dc1d4b153ec12a4a.tar.xz ipxe-bd9ff16c21efef27b6c18c15dc1d4b153ec12a4a.zip |
[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>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index ba01f16d..b05aedd6 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -549,7 +549,8 @@ define rules_template '\n$(TGT)_OBJS += $$(BIN)/$(3).$(TGT)\n' ) ) \ '\n$(BIN)/deps/$(1).d : $$($(3)_DEPS)\n' \ '\nTAGS : $$($(3)_DEPS)\n' > $(BIN)/rules/$(1).r - @$(PERL) $(PARSEROM) $(1) >> $(BIN)/rules/$(1).r + @$(if $(findstring drivers/,$(1)),\ + $(PERL) $(PARSEROM) $(1) >> $(BIN)/rules/$(1).r) endef # Rule to generate the dependency list file |