Changeset 592 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/makefile
- Timestamp:
- Jun 25, 2018, 10:29:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/makefile
r589 r592 41 41 # USE_AT Use features supported on AT and later systems (not available on XT) # 42 42 # USE_UNDOC_INTEL Optimizations for Intel CPU:s - do NOT use on NEC V20/V30/Sony CPU:s # 43 # CLD_NEEDED Only needed for compatibility with buggy software/BIOSes # 43 44 # # 44 45 # ** AT Builds only (when USE_AT is defined) # … … 103 104 # Assembler preprocessor defines. # 104 105 ################################################################# 105 DEFINES_COMMON = MODULE_STRINGS_COMPRESSED MODULE_HOTKEYS MODULE_8BIT_IDE MODULE_EBIOS MODULE_SERIAL MODULE_SERIAL_FLOPPY MODULE_POWER_MANAGEMENT RESERVE_DIAGNOSTIC_CYLINDER NO_ATAID_VALIDATION 106 DEFINES_COMMON = MODULE_STRINGS_COMPRESSED MODULE_HOTKEYS MODULE_8BIT_IDE MODULE_EBIOS MODULE_SERIAL MODULE_SERIAL_FLOPPY MODULE_POWER_MANAGEMENT RESERVE_DIAGNOSTIC_CYLINDER NO_ATAID_VALIDATION CLD_NEEDED 106 107 DEFINES_COMMON_LARGE = MODULE_BOOT_MENU MODULE_8BIT_IDE_ADVANCED MODULE_COMPATIBLE_TABLES 107 108 … … 114 115 DEFINES_AT_LARGE = $(DEFINES_AT) $(DEFINES_COMMON_LARGE) 115 116 116 DEFINES_XT_TINY = MODULE_STRINGS_COMPRESSED MODULE_8BIT_IDE NO_ATAID_VALIDATION 117 DEFINES_XT_TINY = MODULE_STRINGS_COMPRESSED MODULE_8BIT_IDE NO_ATAID_VALIDATION CLD_NEEDED 117 118 DEFINES_386_8K = $(DEFINES_AT) USE_386 MODULE_ADVANCED_ATA 118 119 … … 125 126 ################### 126 127 127 # Target size of the ROM, used in main.asm for number of 512B blocks and by checksum Perl script below128 BIOS_SIZE = 8192 # For BIOS header (use even multiplier!) 129 ROMSIZE = $(BIOS_SIZE) # Size of binary to build when building with make checksum 130 BIOS_SIZE_ LARGE = 12288131 ROMSIZE_LARGE = $(BIOS_SIZE_LARGE) 128 # Target size of the BIOS, used in main.asm for number of 512B blocks (CNT_ROM_BLOCKS) and by checksum Perl script below ('make checksum'). 129 # Note! The size must be a multiple of 2 KB for compatibility reasons. 130 BIOS_SIZE_TINY = 4096 131 BIOS_SIZE_SMALL = 8192 132 BIOS_SIZE_LARGE = 10240 132 133 133 134 # Add -D in front of every preprocessor define declaration 134 DEFS_XT = $(DEFINES_XT:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE )135 DEFS_XTPLUS = $(DEFINES_XTPLUS:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE )136 DEFS_AT = $(DEFINES_AT:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE )135 DEFS_XT = $(DEFINES_XT:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_SMALL) 136 DEFS_XTPLUS = $(DEFINES_XTPLUS:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_SMALL) 137 DEFS_AT = $(DEFINES_AT:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_SMALL) 137 138 DEFS_XT_LARGE = $(DEFINES_XT_LARGE:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_LARGE) 138 139 DEFS_XTPLUS_LARGE = $(DEFINES_XTPLUS_LARGE:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_LARGE) 139 140 DEFS_AT_LARGE = $(DEFINES_AT_LARGE:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_LARGE) 140 DEFS_XT_TINY = $(DEFINES_XT_TINY:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE )141 DEFS_386_8K = $(DEFINES_386_8K:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE )141 DEFS_XT_TINY = $(DEFINES_XT_TINY:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_TINY) 142 DEFS_386_8K = $(DEFINES_386_8K:%=-D%) -DBIOS_SIZE=$(BIOS_SIZE_SMALL) 142 143 DEFS_ALL_FEATURES = $(DEFINES_ALL_FEATURES:%=-D%) 143 144 … … 220 221 strings: src\Strings.asm 221 222 @$(AS) src\Strings.asm $(ASFLAGS) $(DEFS_AT_LARGE) -DCHECK_FOR_UNUSED_ENTRYPOINTS -DMODULE_STRINGS_COMPRESSED_PRECOMPRESS -o build\Strings.bin -l build\StringsPrecompress.lst 222 @perl ..\ tools\StringsCompress.pl < build\StringsPrecompress.lst > src\StringsCompressed.asm223 @perl ..\Tools\StringsCompress.pl < build\StringsPrecompress.lst > src\StringsCompressed.asm 223 224 @echo StringsCompressed.asm updated! 224 225 … … 228 229 229 230 checksum: all 230 @perl ..\ tools\checksum.pl $(TARGET)_tiny.bin $(ROMSIZE)231 @perl ..\ tools\checksum.pl $(TARGET)_xt.bin $(ROMSIZE)232 @perl ..\ tools\checksum.pl $(TARGET)_xtp.bin $(ROMSIZE)233 @perl ..\ tools\checksum.pl $(TARGET)_at.bin $(ROMSIZE)234 @perl ..\ tools\checksum.pl $(TARGET)_xtl.bin $(ROMSIZE_LARGE)235 @perl ..\ tools\checksum.pl $(TARGET)_xtpl.bin $(ROMSIZE_LARGE)236 @perl ..\ tools\checksum.pl $(TARGET)_atl.bin $(ROMSIZE_LARGE)237 @perl ..\ tools\checksum.pl $(TARGET)_386.bin $(ROMSIZE)231 @perl ..\Tools\checksum.pl $(TARGET)_tiny.bin $(BIOS_SIZE_TINY) 232 @perl ..\Tools\checksum.pl $(TARGET)_xt.bin $(BIOS_SIZE_SMALL) 233 @perl ..\Tools\checksum.pl $(TARGET)_xtp.bin $(BIOS_SIZE_SMALL) 234 @perl ..\Tools\checksum.pl $(TARGET)_at.bin $(BIOS_SIZE_SMALL) 235 @perl ..\Tools\checksum.pl $(TARGET)_xtl.bin $(BIOS_SIZE_LARGE) 236 @perl ..\Tools\checksum.pl $(TARGET)_xtpl.bin $(BIOS_SIZE_LARGE) 237 @perl ..\Tools\checksum.pl $(TARGET)_atl.bin $(BIOS_SIZE_LARGE) 238 @perl ..\Tools\checksum.pl $(TARGET)_386.bin $(BIOS_SIZE_SMALL) 238 239 239 240 unused: … … 241 242 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_ALL_FEATURES) $(DEFS_XT) $(DEFS_XT_PLUS) $(DEFS_AT) $(DEFS_XT_LARGE) $(DEFS_XTPLUS_LARGE) $(DEFS_AT_LARGE) $(DEFS_XT_TINY) $(DEFS_386_8K) -o"$(TARGET)_unused.asm" -l"$(TARGET)_unused.lst" 242 243 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_ALL_FEATURES) $(DEFS_XT) $(DEFS_XT_PLUS) $(DEFS_AT) $(DEFS_XT_LARGE) $(DEFS_XTPLUS_LARGE) $(DEFS_AT_LARGE) $(DEFS_XT_TINY) $(DEFS_386_8K) -o"$(TARGET)_unused.asm" -E -DCHECK_FOR_UNUSED_ENTRYPOINTS 243 @perl ..\ tools\unused.pl $(TARGET)_unused.lst $(TARGET)_unused.asm244 @perl ..\Tools\unused.pl $(TARGET)_unused.lst $(TARGET)_unused.asm 244 245 @echo "XT Small" 245 246 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT) -o"$(TARGET)_unused_xt.asm" -l"$(TARGET)_unused_xt.lst" 246 247 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT) -o"$(TARGET)_unused_xt.asm" -E -DCHECK_FOR_UNUSED_ENTRYPOINTS 247 @perl ..\ tools\unused.pl $(TARGET)_unused_xt.lst $(TARGET)_unused_xt.asm248 @perl ..\Tools\unused.pl $(TARGET)_unused_xt.lst $(TARGET)_unused_xt.asm 248 249 @echo "XT Large" 249 250 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT_LARGE) -o"$(TARGET)_unused_xtl.asm" -l"$(TARGET)_unused_xtl.lst" 250 251 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT_LARGE) -o"$(TARGET)_unused_xtl.asm" -E -DCHECK_FOR_UNUSED_ENTRYPOINTS 251 @perl ..\ tools\unused.pl $(TARGET)_unused_xtl.lst $(TARGET)_unused_xtl.asm252 @perl ..\Tools\unused.pl $(TARGET)_unused_xtl.lst $(TARGET)_unused_xtl.asm 252 253 @echo "AT Small" 253 254 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT) -o"$(TARGET)_unused_at.asm" -l"$(TARGET)_unused_at.lst" 254 255 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT) -o"$(TARGET)_unused_at.asm" -E -DCHECK_FOR_UNUSED_ENTRYPOINTS 255 @perl ..\ tools\unused.pl $(TARGET)_unused_at.lst $(TARGET)_unused_at.asm256 @perl ..\Tools\unused.pl $(TARGET)_unused_at.lst $(TARGET)_unused_at.asm 256 257 @echo "AT Large" 257 258 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT_LARGE) -o"$(TARGET)_unused_atl.asm" -l"$(TARGET)_unused_atl.lst" 258 259 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT_LARGE) -o"$(TARGET)_unused_atl.asm" -E -DCHECK_FOR_UNUSED_ENTRYPOINTS 259 @perl ..\ tools\unused.pl $(TARGET)_unused_atl.lst $(TARGET)_unused_atl.asm260 261 260 @perl ..\Tools\unused.pl $(TARGET)_unused_atl.lst $(TARGET)_unused_atl.asm 261 262
Note:
See TracChangeset
for help on using the changeset viewer.