summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2010-04-04 18:03:33 +0200
committerMichael Brown2010-08-17 15:36:39 +0200
commit42a1f43bf999f34c316958c2d26fab4ff02cc8d7 (patch)
treeb1d753e5c491ec525d16650d013c68b877d2166d
parent[build] Add everything target (diff)
downloadipxe-42a1f43bf999f34c316958c2d26fab4ff02cc8d7.tar.gz
ipxe-42a1f43bf999f34c316958c2d26fab4ff02cc8d7.tar.xz
ipxe-42a1f43bf999f34c316958c2d26fab4ff02cc8d7.zip
[build] Provide %.fd0 build targets only for pcbios
Originally-fixed-by: Piotr JaroszyƄski <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/Makefile.housekeeping5
-rw-r--r--src/arch/i386/Makefile15
-rw-r--r--src/arch/i386/Makefile.pcbios7
3 files changed, 12 insertions, 15 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 8f0c87f3..5220b700 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -831,6 +831,11 @@ $(BIN)/%.zbin : $(BIN)/%.bin $(BIN)/%.zinfo $(ZBIN)
# ROMS), and (b) the linker is so fast that it probably wouldn't make
# much difference to the overall build time.
+# Add NON_AUTO_MEDIA to the media list, so that they show up in the
+# output of "make"
+#
+MEDIA += $(NON_AUTO_MEDIA)
+
media :
@$(ECHO) $(MEDIA)
diff --git a/src/arch/i386/Makefile b/src/arch/i386/Makefile
index 840cc763..bb30f1da 100644
--- a/src/arch/i386/Makefile
+++ b/src/arch/i386/Makefile
@@ -102,18 +102,3 @@ include arch/x86/Makefile
#
MAKEDEPS += arch/i386/Makefile.$(PLATFORM)
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.
-
-# 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
-
-# Add NON_AUTO_MEDIA to the media list, so that they show up in the
-# output of "make"
-#
-MEDIA += $(NON_AUTO_MEDIA)
diff --git a/src/arch/i386/Makefile.pcbios b/src/arch/i386/Makefile.pcbios
index 7f3032a0..2a2c2667 100644
--- a/src/arch/i386/Makefile.pcbios
+++ b/src/arch/i386/Makefile.pcbios
@@ -55,6 +55,13 @@ NON_AUTO_MEDIA += sdsk
$(QM)$(ECHO) " [GENSDSK] $@"
$(Q)bash util/gensdsk $@ $<
+# 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
+
# Special target for building Master Boot Record binary
$(BIN)/mbr.bin : $(BIN)/mbr.o
$(QM)$(ECHO) " [OBJCOPY] $@"