Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build the all-driver images by default, and print instructions for us…
…age.
  • Loading branch information
Michael Brown committed Aug 10, 2007
1 parent 54bf262 commit 5cda460
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
42 changes: 17 additions & 25 deletions src/Makefile
Expand Up @@ -41,36 +41,28 @@ include arch/$(ARCH)/Config
# If invoked with no build target, print out a helpfully suggestive
# message.
#
noargs : blib $(BIN)/NIC
@echo '===================================================='
noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk $(BIN)/gpxe.iso $(BIN)/gpxe.usb
@echo '==========================================================='
@echo
@echo ' *** WARNING: THE INSTRUCTIONS BELOW DO NOT FULLY WORK YET !!! ***'
@echo ' *** PLEASE STAY TUNED ***'
@echo 'To create a bootable floppy, type'
@echo ' cat $(BIN)/gpxe.dsk > /dev/fd0'
@echo 'where /dev/fd0 is your floppy drive. This will erase any'
@echo 'data already on the disk.'
@echo
@echo 'No target specified. To specify a target, do: '
@echo 'To create a bootable USB key, type'
@echo ' cat $(BIN)/gpxe.usb > /dev/sdX'
@echo 'where /dev/sdX is your USB key, and is *not* a real hard'
@echo 'disk on your system. This will erase any data already on'
@echo 'the USB key.'
@echo
@echo ' make bin/<rom-name>.<output-format> '
@echo 'To create a bootable CD-ROM, burn the ISO image '
@echo '$(BIN)/gpxe.iso to a blank CD-ROM.'
@echo
@echo 'where <output-format> is one of {$(MEDIA) }'
@echo 'These images contain drivers for all supported cards. You'
@echo 'can build more customised images, and ROM images, using'
@echo ' make bin/<rom-name>.<output-format>'
@echo
@echo 'or: '
@echo
@echo ' make all<output-format>s'
@echo
@echo 'to generate all possible images of format <output-format>'
@echo
@echo 'For example, '
@echo
@echo ' make allroms '
@echo
@echo 'will generate all possible .rom (rom burnable) images, and'
@echo
@echo ' make alldsks'
@echo
@echo 'will generate all possible .dsk (bootable floppy) images, or'
@echo
@echo '===================================================='
@exit 1
@echo '==========================================================='

# Locations of utilities
#
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.housekeeping
Expand Up @@ -180,7 +180,7 @@ CLEANUP += $(BIN)/NIC
# TGT_ROM_NAME : the ROM name (e.g. "dfe538")
# TGT_MEDIA : the media type (e.g. "rom")
#
DRIVERS_etherboot = $(DRIVERS)
DRIVERS_gpxe = $(DRIVERS)
CARD_DRIVER = $(firstword $(DRIVER_$(1)) $(1))
TGT_ELEMENTS = $(subst --, ,$(firstword $(subst ., ,$(notdir $@))))
TGT_PREFIX = $(word 2,$(subst ., ,$(notdir $@)))
Expand Down

0 comments on commit 5cda460

Please sign in to comment.