|
@@ -167,11 +167,15 @@ CLEANUP += $(BIN)/NIC
|
167
|
167
|
# TGT_ROM_NAME : the ROM name (e.g. "dfe538")
|
168
|
168
|
# TGT_MEDIA : the media type (e.g. "rom")
|
169
|
169
|
#
|
|
170
|
+DRIVERS_etherboot = $(DRIVERS)
|
|
171
|
+CARD_DRIVER = $(firstword $(DRIVER_$(1)) $(1))
|
170
|
172
|
TGT_ELEMENTS = $(subst --, ,$(firstword $(subst ., ,$(notdir $@))))
|
171
|
173
|
TGT_PREFIX = $(word 2,$(subst ., ,$(notdir $@)))
|
172
|
|
-TGT_DRIVERS = $(strip $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
|
173
|
|
- $(firstword $(DRIVER_$(TGT_ELEMENT)) $(TGT_ELEMENT))))
|
174
|
174
|
TGT_ROM_NAME = $(firstword $(TGT_ELEMENTS))
|
|
175
|
+TGT_DRIVERS = $(strip $(if $(DRIVERS_$(TGT_ROM_NAME)), \
|
|
176
|
+ $(DRIVERS_$(TGT_ROM_NAME)), \
|
|
177
|
+ $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
|
|
178
|
+ $(call CARD_DRIVER,$(TGT_ELEMENT))) ))
|
175
|
179
|
TGT_MEDIA = $(subst z,,$(TGT_PREFIX))
|
176
|
180
|
|
177
|
181
|
# Look up ROM type and IDs for the current target
|