You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.pcbios 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*- makefile -*- : Force emacs to use Makefile mode
  2. # The i386 linker script
  3. #
  4. LDSCRIPT = arch/i386/scripts/i386.lds
  5. # Stop ld from complaining about our customised linker script
  6. #
  7. LDFLAGS += -N --no-check-sections
  8. # Media types.
  9. #
  10. MEDIA += rom
  11. MEDIA += pxe
  12. MEDIA += kpxe
  13. MEDIA += kkpxe
  14. MEDIA += elf
  15. MEDIA += elfd
  16. MEDIA += lmelf
  17. MEDIA += lmelfd
  18. MEDIA += lkrn
  19. MEDIA += bImage
  20. MEDIA += dsk
  21. MEDIA += nbi
  22. MEDIA += hd
  23. MEDIA += raw
  24. MEDIA += com
  25. MEDIA += exe
  26. # Padding rules
  27. #
  28. PAD_rom = $(PADIMG) --blksize=512 --byte=0xff $@
  29. PAD_dsk = $(PADIMG) --blksize=512 $@
  30. PAD_hd = $(PADIMG) --blksize=512 $@
  31. # rule to make a non-emulation ISO boot image
  32. NON_AUTO_MEDIA += iso
  33. %iso: %lkrn util/geniso
  34. $(QM)$(ECHO) " [GENISO] $@"
  35. $(Q)ISOLINUX_BIN=$(ISOLINUX_BIN) bash util/geniso $@ $<
  36. # rule to make a floppy emulation ISO boot image
  37. NON_AUTO_MEDIA += liso
  38. %liso: %lkrn util/genliso
  39. $(QM)$(ECHO) " [GENLISO] $@"
  40. $(Q)bash util/genliso $@ $<
  41. # rule to make a syslinux floppy image (mountable, bootable)
  42. NON_AUTO_MEDIA += sdsk
  43. %sdsk: %lkrn util/gensdsk
  44. $(QM)$(ECHO) " [GENSDSK] $@"
  45. $(Q)bash util/gensdsk $@ $<
  46. # Special target for building Master Boot Record binary
  47. $(BIN)/mbr.bin : $(BIN)/mbr.o
  48. $(QM)$(ECHO) " [OBJCOPY] $@"
  49. $(Q)$(OBJCOPY) -O binary $< $@
  50. # rule to make a USB disk image
  51. $(BIN)/usbdisk.bin : $(BIN)/usbdisk.o
  52. $(QM)$(ECHO) " [OBJCOPY] $@"
  53. $(Q)$(OBJCOPY) -O binary $< $@
  54. NON_AUTO_MEDIA += usb
  55. %usb: $(BIN)/usbdisk.bin %hd
  56. $(QM)$(ECHO) " [FINISH] $@"
  57. $(Q)cat $^ > $@
  58. # Padded floppy image (e.g. for iLO)
  59. NON_AUTO_MEDIA += pdsk
  60. %pdsk : %dsk
  61. $(Q)cp $< $@
  62. $(Q)$(PADIMG) --blksize=1474560 $@