Browse Source

Re-add the "etherboot.%" all-drivers image.

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
0174310f38
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/Makefile.housekeeping

+ 6
- 2
src/Makefile.housekeeping View File

167
 # TGT_ROM_NAME : the ROM name (e.g. "dfe538")
167
 # TGT_ROM_NAME : the ROM name (e.g. "dfe538")
168
 # TGT_MEDIA    : the media type (e.g. "rom")
168
 # TGT_MEDIA    : the media type (e.g. "rom")
169
 #
169
 #
170
+DRIVERS_etherboot = $(DRIVERS)
171
+CARD_DRIVER	= $(firstword $(DRIVER_$(1)) $(1))
170
 TGT_ELEMENTS	= $(subst --, ,$(firstword $(subst ., ,$(notdir $@))))
172
 TGT_ELEMENTS	= $(subst --, ,$(firstword $(subst ., ,$(notdir $@))))
171
 TGT_PREFIX	= $(word 2,$(subst ., ,$(notdir $@)))
173
 TGT_PREFIX	= $(word 2,$(subst ., ,$(notdir $@)))
172
-TGT_DRIVERS	= $(strip $(foreach TGT_ELEMENT,$(TGT_ELEMENTS), \
173
-		   $(firstword $(DRIVER_$(TGT_ELEMENT)) $(TGT_ELEMENT))))
174
 TGT_ROM_NAME	= $(firstword $(TGT_ELEMENTS))
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
 TGT_MEDIA	= $(subst z,,$(TGT_PREFIX))
179
 TGT_MEDIA	= $(subst z,,$(TGT_PREFIX))
176
 
180
 
177
 # Look up ROM type and IDs for the current target
181
 # Look up ROM type and IDs for the current target

Loading…
Cancel
Save