Saturday, October 5, 2013

SeaBIOS - MakeFile


  • Object
  • SRCBOTH is basics source file object. However, there are two objects based on SRCBOTH: SRC16 and SRC32FLAT. The other object is SRC32SEG.
  • Flag
  • Note: cc-option function. Basic Flag Parameter is COMMONCFLAGS. According to different Objects, there are other flags: CFLAGS32FLAT, CFLAGSSEG, CFLAGS32SEG, CFLAGS16INC, CFLAGS16  Note: If you place "@" before a makefile command, this command will not be displayed in the screen.
  • Target
  • Final target: target-y
  • Rules
  • Note: $< is the set of files in the right part, $> is the file in the left part
    • bios.bin
    • rom.o (required by bios.bin)
    • rom16.o (required by rom.o)
    • rom32seg.o (required by rom.o)
    • Note:
    • rom.o requires rom16.strip.o, rom32seg.strip.o and code32flat.o rather than rom16.o and rom32seg.o. Check the following, I can find rom16.strip.o and rom32seg.strip.o generated by rom16.o and rom32seg.o. In addition,ccode16.o, code32seg.o are used to generate rom16.o and rom32seg.o. ccode32flat.o is used to generate code32flat.o
    • ccode16.o (required by rom16.o)
    • code32seg.o (required by rom32seg.o)
    • ccode32flat.o (required by code32flat.o)
    • romlayout.o (required by rom16.o)

No comments:

Post a Comment