[gPXE-devel] [PATCH 01/33] [build] Only add fd0 MEDIA if dsk is there

Piotr Jaroszyński p.jaroszynski at gmail.com
Sun Aug 15 18:59:06 EDT 2010


Signed-off-by: Piotr Jaroszyński <p.jaroszynski at gmail.com>
---
 src/arch/i386/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/arch/i386/Makefile b/src/arch/i386/Makefile
index 840cc76..89d3626 100644
--- a/src/arch/i386/Makefile
+++ b/src/arch/i386/Makefile
@@ -106,12 +106,14 @@ include arch/i386/Makefile.$(PLATFORM)
 # Some suffixes (e.g. %.fd0) are generated directly from other
 # finished files (e.g. %.dsk), rather than having their own prefix.
 
+ifeq ($(findstring dsk, $(MEDIA)), dsk)
 # rule to write disk images to /dev/fd0
 NON_AUTO_MEDIA	+= fd0
 %fd0 : %dsk
 	$(QM)$(ECHO) "  [DD] $@"
 	$(Q)dd if=$< bs=512 conv=sync of=/dev/fd0
 	$(Q)sync
+endif
 
 # Add NON_AUTO_MEDIA to the media list, so that they show up in the
 # output of "make"
-- 
1.7.1



More information about the gPXE-devel mailing list