mirror of https://github.com/ipxe/ipxe.git
[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>pull/1/head
parent
4d068fd53a
commit
42a1f43bf9
|
@ -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
|
# ROMS), and (b) the linker is so fast that it probably wouldn't make
|
||||||
# much difference to the overall build time.
|
# 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 :
|
media :
|
||||||
@$(ECHO) $(MEDIA)
|
@$(ECHO) $(MEDIA)
|
||||||
|
|
||||||
|
|
|
@ -102,18 +102,3 @@ include arch/x86/Makefile
|
||||||
#
|
#
|
||||||
MAKEDEPS += arch/i386/Makefile.$(PLATFORM)
|
MAKEDEPS += arch/i386/Makefile.$(PLATFORM)
|
||||||
include 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)
|
|
||||||
|
|
|
@ -55,6 +55,13 @@ NON_AUTO_MEDIA += sdsk
|
||||||
$(QM)$(ECHO) " [GENSDSK] $@"
|
$(QM)$(ECHO) " [GENSDSK] $@"
|
||||||
$(Q)bash util/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
|
# Special target for building Master Boot Record binary
|
||||||
$(BIN)/mbr.bin : $(BIN)/mbr.o
|
$(BIN)/mbr.bin : $(BIN)/mbr.o
|
||||||
$(QM)$(ECHO) " [OBJCOPY] $@"
|
$(QM)$(ECHO) " [OBJCOPY] $@"
|
||||||
|
|
Loading…
Reference in New Issue