From c742c576d0d0fc7f7d49825f5d3c53fd7b597327 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 2 Aug 2019 11:00:43 +0100 Subject: [PATCH] [build] Move predefined all-drivers build shortcut to Makefile The (very approximate) split between Makefile.housekeeping and Makefile is that the former provides mechanism and the latter provides policy. Provide a section within Makefile as a home for predefined build shortcuts such as the existing all-drivers build. Signed-off-by: Michael Brown --- src/Makefile | 9 +++++++++ src/Makefile.housekeeping | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index d74565d13..284a6569f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -220,6 +220,15 @@ endif version : @$(ECHO) "$(VERSION)" +############################################################################### +# +# Predefined build shortcuts (for e.g. bin/ipxe.iso) + +# All drivers (excluding USB) +# +DRIVERS_ipxe = $(DRIVERS_net) $(DRIVERS_infiniband) \ + $(DRIVERS_xen) $(DRIVERS_hyperv) + ############################################################################### # # Drag in the bulk of the build system diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 1b175b950..1dd147949 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -1042,11 +1042,6 @@ $(BIN)/NIC : $(AUTO_DEPS) @perl -ne 'chomp; print "$$1\n" if /\# NIC\t(.*)$$/' $^ >> $@ CLEANUP += $(BIN)/NIC # Doesn't match the $(BIN)/*.* pattern -# Select drivers to be included in the all-drivers build -# -DRIVERS_ipxe = $(DRIVERS_net) $(DRIVERS_infiniband) \ - $(DRIVERS_xen) $(DRIVERS_hyperv) - # Analyse a target name (e.g. "bin/dfe538--prism2_pci.rom.tmp") and # derive the variables: #