1 # -*- makefile -*- : Force emacs to use Makefile mode
3 # The i386 linker script
5 LDSCRIPT = arch/i386/scripts/i386.lds
7 # Stop ld from complaining about our customised linker script
9 LDFLAGS += -N --no-check-sections
26 PAD_rom = $(PERL) $(PADIMG) --blksize=512 --byte=0xff $@
28 PAD_dsk = $(PERL) $(PADIMG) --blksize=512 $@
29 PAD_hd = $(PERL) $(PADIMG) --blksize=32768 $@
33 FINALISE_rom = $(PERL) $(FIXROM) $@
34 FINALISE_mrom = $(FINALISE_rom)
36 # rule to make a non-emulation ISO boot image
38 %iso: %lkrn util/geniso
39 $(QM)$(ECHO) " [GENISO] $@"
40 $(Q)ISOLINUX_BIN=$(ISOLINUX_BIN) bash util/geniso $@ $<
42 # rule to make a floppy emulation ISO boot image
43 NON_AUTO_MEDIA += liso
44 %liso: %lkrn util/genliso
45 $(QM)$(ECHO) " [GENLISO] $@"
46 $(Q)bash util/genliso $@ $<
48 # rule to make a syslinux floppy image (mountable, bootable)
49 NON_AUTO_MEDIA += sdsk
50 %sdsk: %lkrn util/gensdsk
51 $(QM)$(ECHO) " [GENSDSK] $@"
52 $(Q)bash util/gensdsk $@ $<
54 # Special target for building Master Boot Record binary
55 $(BIN)/mbr.bin : $(BIN)/mbr.o
56 $(QM)$(ECHO) " [OBJCOPY] $@"
57 $(Q)$(OBJCOPY) -O binary $< $@
59 # rule to make a USB disk image
60 $(BIN)/usbdisk.bin : $(BIN)/usbdisk.o
61 $(QM)$(ECHO) " [OBJCOPY] $@"
62 $(Q)$(OBJCOPY) -O binary $< $@
65 %usb: $(BIN)/usbdisk.bin %hd
66 $(QM)$(ECHO) " [FINISH] $@"
69 # Padded floppy image (e.g. for iLO)
70 NON_AUTO_MEDIA += pdsk
73 $(Q)$(PADIMG) --blksize=1474560 $@