Browse Source

[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 <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 4 years ago
parent
commit
c742c576d0
2 changed files with 9 additions and 5 deletions
  1. 9
    0
      src/Makefile
  2. 0
    5
      src/Makefile.housekeeping

+ 9
- 0
src/Makefile View File

@@ -220,6 +220,15 @@ endif
220 220
 version :
221 221
 	@$(ECHO) "$(VERSION)"
222 222
 
223
+###############################################################################
224
+#
225
+# Predefined build shortcuts (for e.g. bin/ipxe.iso)
226
+
227
+# All drivers (excluding USB)
228
+#
229
+DRIVERS_ipxe	= $(DRIVERS_net) $(DRIVERS_infiniband) \
230
+		  $(DRIVERS_xen) $(DRIVERS_hyperv)
231
+
223 232
 ###############################################################################
224 233
 #
225 234
 # Drag in the bulk of the build system

+ 0
- 5
src/Makefile.housekeeping View File

@@ -1042,11 +1042,6 @@ $(BIN)/NIC : $(AUTO_DEPS)
1042 1042
 	@perl -ne 'chomp; print "$$1\n" if /\# NIC\t(.*)$$/' $^ >> $@
1043 1043
 CLEANUP		+= $(BIN)/NIC	# Doesn't match the $(BIN)/*.* pattern
1044 1044
 
1045
-# Select drivers to be included in the all-drivers build
1046
-#
1047
-DRIVERS_ipxe	= $(DRIVERS_net) $(DRIVERS_infiniband) \
1048
-		  $(DRIVERS_xen) $(DRIVERS_hyperv)
1049
-
1050 1045
 # Analyse a target name (e.g. "bin/dfe538--prism2_pci.rom.tmp") and
1051 1046
 # derive the variables:
1052 1047
 # 

Loading…
Cancel
Save