Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/makefile


Ignore:
Timestamp:
Apr 19, 2012, 11:11:41 AM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Cleaned some code concerning recent module changes.
  • Removed drive number translation flag from ROMVARS.
  • BOOTMENUINFO is now DRVDETECTINFO.
  • Makefile now builds tiny binary (XT build with minimal features).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/makefile

    r395 r397  
    9191#################################################################
    9292DEFINES_COMMON = MODULE_STRINGS_COMPRESSED MODULE_HOTKEYS MODULE_EBIOS
    93 
    94 DEFINES_XT = ELIMINATE_CGA_SNOW MODULE_SERIAL MODULE_SERIAL_FLOPPY
    95 DEFINES_XTPLUS = USE_186 ELIMINATE_CGA_SNOW MODULE_SERIAL MODULE_SERIAL_FLOPPY
    96 DEFINES_AT = USE_AT USE_286 MODULE_SERIAL MODULE_SERIAL_FLOPPY MODULE_ADVANCED_ATA
    97 
    98 DEFINES_XT_LARGE = $(DEFINES_XT) MODULE_BOOT_MENU MODULE_JRIDE MODULE_ADVANCED_ATA
    99 DEFINES_XTPLUS_LARGE = $(DEFINES_XTPLUS) MODULE_BOOT_MENU MODULE_JRIDE MODULE_ADVANCED_ATA
    100 DEFINES_AT_LARGE = $(DEFINES_AT) MODULE_BOOT_MENU MODULE_JRIDE MODULE_ADVANCED_ATA
    101 
    102 DEFINES_JRIDE_8K = ELIMINATE_CGA_SNOW MODULE_JRIDE
    103 DEFINES_386_8K = USE_AT USE_386 MODULE_ADVANCED_ATA
     93DEFINES_COMMON_LARGE = MODULE_BOOT_MENU MODULE_JRIDE MODULE_SERIAL MODULE_SERIAL_FLOPPY
     94
     95DEFINES_XT = $(DEFINES_COMMON) ELIMINATE_CGA_SNOW MODULE_JRIDE MODULE_SERIAL MODULE_SERIAL_FLOPPY
     96DEFINES_XTPLUS = $(DEFINES_COMMON) $(DEFINES_XT) USE_186
     97DEFINES_AT = $(DEFINES_COMMON) USE_AT USE_286 MODULE_SERIAL MODULE_SERIAL_FLOPPY MODULE_ADVANCED_ATA
     98
     99DEFINES_XT_LARGE = $(DEFINES_XT) $(DEFINES_COMMON_LARGE)
     100DEFINES_XTPLUS_LARGE = $(DEFINES_XTPLUS) $(DEFINES_COMMON_LARGE)
     101DEFINES_AT_LARGE = $(DEFINES_AT) $(DEFINES_COMMON_LARGE)
     102
     103DEFINES_XT_TINY = MODULE_STRINGS_COMPRESSED
     104DEFINES_386_8K = $(DEFINES_AT) USE_386
    104105
    105106
     
    113114
    114115# Add -D in front of every preprocessor define declaration
    115 DEFS = $(DEFINES_COMMON:%=-D%)
    116116DEFS_XT = $(DEFINES_XT:%=-D%) -DROMSIZE=$(ROMSIZE)
    117117DEFS_XTPLUS = $(DEFINES_XTPLUS:%=-D%) -DROMSIZE=$(ROMSIZE)
     
    120120DEFS_XTPLUS_LARGE = $(DEFINES_XTPLUS_LARGE:%=-D%) -DROMSIZE=$(ROMSIZE_LARGE)
    121121DEFS_AT_LARGE = $(DEFINES_AT_LARGE:%=-D%) -DROMSIZE=$(ROMSIZE_LARGE)
    122 DEFS_JRIDE_8K = $(DEFINES_JRIDE_8K:%=-D%) -DROMSIZE=$(ROMSIZE)
     122DEFS_XT_TINY = $(DEFINES_XT_TINY:%=-D%) -DROMSIZE=$(ROMSIZE)
    123123DEFS_386_8K = $(DEFINES_386_8K:%=-D%) -DROMSIZE=$(ROMSIZE)
    124124
     
    149149# Assembly compiler flags
    150150ASFLAGS = -f bin                # Produce binary object files
    151 ASFLAGS += $(DEFS)              # Preprocessor defines
    152151ASFLAGS += $(IHEADERS)          # Set header file directory paths
    153152ASFLAGS += -Worphan-labels      # Warn about labels without colon
     
    162161    @echo All done!
    163162
    164 small: at xtplus xt jride_8k 386_8k
     163small: xt_tiny xt xtplus at 386_8k
    165164    @echo All 8 kiB binaries built!
    166165
    167 large: at_large xtplus_large xt_large
     166large: xt_large xtplus_large at_large
    168167    @echo All 15 kiB binaries built!
    169168
     
    192191    @echo *15k XT version "$(TARGET)_xtl.bin" built.
    193192
    194 jride_8k:
    195     @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_JRIDE_8K) -l"$(TARGET)_jr8k.lst" -o"$(TARGET)_jr8k.bin"
    196     @echo * 8k JR-IDE/ISA version "$(TARGET)_jr8k.bin" built.
     193xt_tiny:
     194    @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT_TINY) -l"$(TARGET)_tiny.lst" -o"$(TARGET)_tiny.bin"
     195    @echo * Tiny XT version "$(TARGET)_tiny.bin" built.
    197196
    198197386_8k:
     
    210209
    211210checksum: all
     211    @perl ..\tools\checksum.pl $(TARGET)_tiny.bin $(ROMSIZE)
     212    @perl ..\tools\checksum.pl $(TARGET)_xt.bin $(ROMSIZE)
     213    @perl ..\tools\checksum.pl $(TARGET)_xtp.bin $(ROMSIZE)
     214    @perl ..\tools\checksum.pl $(TARGET)_at.bin $(ROMSIZE)
     215    @perl ..\tools\checksum.pl $(TARGET)_xtl.bin $(ROMSIZE_LARGE)
     216    @perl ..\tools\checksum.pl $(TARGET)_xtpl.bin $(ROMSIZE_LARGE)
    212217    @perl ..\tools\checksum.pl $(TARGET)_atl.bin $(ROMSIZE_LARGE)
    213     @perl ..\tools\checksum.pl $(TARGET)_xtpl.bin $(ROMSIZE_LARGE)
    214     @perl ..\tools\checksum.pl $(TARGET)_xtl.bin $(ROMSIZE_LARGE)
    215     @perl ..\tools\checksum.pl $(TARGET)_at.bin $(ROMSIZE)
    216     @perl ..\tools\checksum.pl $(TARGET)_xtp.bin $(ROMSIZE)
    217     @perl ..\tools\checksum.pl $(TARGET)_xt.bin $(ROMSIZE)
    218     @perl ..\tools\checksum.pl $(TARGET)_jr8k.bin $(ROMSIZE)
    219218    @perl ..\tools\checksum.pl $(TARGET)_386.bin $(ROMSIZE)
    220219
Note: See TracChangeset for help on using the changeset viewer.