]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Move predefined all-drivers build shortcut to Makefile
authorMichael Brown <mcb30@ipxe.org>
Fri, 2 Aug 2019 10:00:43 +0000 (11:00 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 2 Aug 2019 10:00:43 +0000 (11:00 +0100)
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 <mcb30@ipxe.org>
src/Makefile
src/Makefile.housekeeping

index d74565d1385da368dadfb26838811959c9b42b8d..284a6569f6175bff69f8369b51a3b026163b7c7c 100644 (file)
@@ -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
index 1b175b9508c0d20f169801f8763d12566e6848c4..1dd147949e90bf670506dbd8ee0045d747d7b21a 100644 (file)
@@ -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:
 #