|
@@ -960,13 +960,13 @@ DRIVERS_ipxe = $(DRIVERS_net) $(DRIVERS_infiniband) \
|
960
|
960
|
# TGT_DRIVERS : the driver for each element (e.g. "rtl8139 prism2_pci")
|
961
|
961
|
# TGT_ROM_NAME : the ROM name (e.g. "dfe538")
|
962
|
962
|
#
|
963
|
|
-CARD_DRIVER = $(firstword $(DRIVER_$(1)) $(1))
|
964
|
963
|
TGT_ELEMENTS = $(subst --, ,$(firstword $(subst ., ,$(notdir $@))))
|
965
|
964
|
TGT_ROM_NAME = $(firstword $(TGT_ELEMENTS))
|
966
|
|
-TGT_DRIVERS = $(strip $(if $(DRIVERS_$(TGT_ROM_NAME)), \
|
967
|
|
- $(DRIVERS_$(TGT_ROM_NAME)), \
|
968
|
|
- $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
|
969
|
|
- $(call CARD_DRIVER,$(TGT_ELEMENT))) ))
|
|
965
|
+TGT_DRIVERS = $(strip $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
|
|
966
|
+ $(if $(DRIVERS_$(TGT_ELEMENT)), \
|
|
967
|
+ $(DRIVERS_$(TGT_ELEMENT)), \
|
|
968
|
+ $(firstword $(DRIVER_$(TGT_ELEMENT)) \
|
|
969
|
+ $(TGT_ELEMENT)))))
|
970
|
970
|
TGT_PREFIX_NAME = $(word 2,$(subst ., ,$(notdir $@)))
|
971
|
971
|
TGT_PREFIX = $(strip $(if $(filter rom,$(TGT_PREFIX_NAME)), \
|
972
|
972
|
$(ROM_TYPE_$(TGT_ROM_NAME))rom, \
|