summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2015-12-17 14:45:35 +0100
committerMichael Brown2015-12-17 14:54:51 +0100
commit91dd5524b762e2438cc6a949dd1440ee0998f5ef (patch)
treef0101d47b8ddcfaf137dc7ee1354166a6dca811c /src/Makefile.housekeeping
parent[efi] Centralise EFI file system info GUIDs (diff)
downloadipxe-91dd5524b762e2438cc6a949dd1440ee0998f5ef.tar.gz
ipxe-91dd5524b762e2438cc6a949dd1440ee0998f5ef.tar.xz
ipxe-91dd5524b762e2438cc6a949dd1440ee0998f5ef.zip
[build] Allow extra objects to be included in an all-drivers build
The build system allows for additional drivers (or other objects) to be specified using build targets such as make bin/intel--realtek.usb make bin/8086100e--8086100f.mrom This currently fails if the base target is the "bin/ipxe.*" all-drivers target, e.g. make bin/ipxe--acm.usb Fix the build target parsing logic to allow additional drivers (or other objects) to be included on top of the base all-drivers target. This can be used to include USB network card drivers, which are not yet included by default in the all-drivers build. Reported-by: Andrew Sloma <asloma@lenovo.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 1b6f092b..70ec50c5 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -960,13 +960,13 @@ DRIVERS_ipxe = $(DRIVERS_net) $(DRIVERS_infiniband) \
# TGT_DRIVERS : the driver for each element (e.g. "rtl8139 prism2_pci")
# TGT_ROM_NAME : the ROM name (e.g. "dfe538")
#
-CARD_DRIVER = $(firstword $(DRIVER_$(1)) $(1))
TGT_ELEMENTS = $(subst --, ,$(firstword $(subst ., ,$(notdir $@))))
TGT_ROM_NAME = $(firstword $(TGT_ELEMENTS))
-TGT_DRIVERS = $(strip $(if $(DRIVERS_$(TGT_ROM_NAME)), \
- $(DRIVERS_$(TGT_ROM_NAME)), \
- $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
- $(call CARD_DRIVER,$(TGT_ELEMENT))) ))
+TGT_DRIVERS = $(strip $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
+ $(if $(DRIVERS_$(TGT_ELEMENT)), \
+ $(DRIVERS_$(TGT_ELEMENT)), \
+ $(firstword $(DRIVER_$(TGT_ELEMENT)) \
+ $(TGT_ELEMENT)))))
TGT_PREFIX_NAME = $(word 2,$(subst ., ,$(notdir $@)))
TGT_PREFIX = $(strip $(if $(filter rom,$(TGT_PREFIX_NAME)), \
$(ROM_TYPE_$(TGT_ROM_NAME))rom, \