Changeset 186
- Timestamp:
- Nov 7, 2017, 7:12:52 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/Makefile
r185 r186 160 160 # -Zd = line number debug info 161 161 # -Zi = symbolic debug info 162 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -DBLD_LANG=" '$(%BLD_LANG)'" $(%JWASM_DEFINES) -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err163 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -DBLD_LANG=" '$(%BLD_LANG)'" $(%JWASM_DEFINES) -q -W4 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err164 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -DBLD_LANG=" '$(%BLD_LANG)'" $(%JWASM_DEFINES) -q -WX -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err162 ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -DBLD_LANG="$(%BLD_LANG)" $(%JWASM_DEFINES) -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err 163 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -DBLD_LANG="$(%BLD_LANG)" $(%JWASM_DEFINES) -q -W4 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err 164 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -DBLD_LANG="$(%BLD_LANG)" $(%JWASM_DEFINES) -q -WX -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err 165 165 # Workaround for JWasm list-file generation. 166 166 # Generate the list-file on a local drive so JWasm doen't take forever. … … 289 289 290 290 # ----------------------------------------------------------------------------- 291 # LANGUAGE SETUP292 # -----------------------------------------------------------------------------293 # Setup the relevant language files.294 # This is done by generating include-files for the specified language.295 # This is a 'pre-action' before assembling the AiR-BOOT.ASM source.296 # -----------------------------------------------------------------------------297 langsetup: .SYMBOLIC .MULTIPLE298 # Default to development language is none defined.299 !if "$(%BLD_LANG)"==""300 #~ %BLD_LANG=DEV_BLD_LANG301 !endif302 # Generate include-files for specified language.303 # After this, the Assembly sources are setup for the specified language.304 # Note that this target is not used as a 'dependency' but 'called' explicitly305 # by the $(BLD_LANGUAGES) target.306 !ifdef __LINUX__307 @bash -c 'echo -e "include text/$(%BLD_LANG)/mbr.asm\r"> text$(DS)txtmbr.asm'308 @bash -c 'echo -e "include text/$(%BLD_LANG)/menus.asm\r"> text$(DS)txtmenus.asm'309 @bash -c 'echo -e "include text/$(%BLD_LANG)/other.asm\r"> text$(DS)txtother.asm'310 !else311 @echo include text/$(%BLD_LANG)/mbr.asm> text$(DS)txtmbr.asm312 @echo include text/$(%BLD_LANG)/menus.asm> text$(DS)txtmenus.asm313 @echo include text/$(%BLD_LANG)/other.asm> text$(DS)txtother.asm314 !endif315 316 317 # -----------------------------------------------------------------------------318 291 # BUILD ALL LANGUAGES 319 292 # ----------------------------------------------------------------------------- … … 328 301 @%MAKE clean 329 302 @%MAKE rmbin 330 @%MAKE langsetup331 303 @%MAKE $(TARGET) 332 304 # Checking %AB_DEV does not work from target 'dev:' when non-recursively -
trunk/bootcode/airboot.asm
r185 r186 29 29 30 30 ; 31 ; This one should never be undefined, but if so, then default to English. 32 ; 33 IFNDEF BLD_LANG 34 BLD_LANG EQU en 35 ENDIF 36 37 ; 31 38 ; Include AiR-BOOT Version Information. 32 39 ; This version-info is defined using simpel EQU's so it can serve as a … … 48 55 include ../include/asm.inc 49 56 57 ; 58 ; The BLD_LANG is passed as an unquoted string so it can be used with 59 ; the 'include' directive. But for other language conditional actions a quoted 60 ; version is needed. This macro creates BLD_LANG_TXT holding the language 61 ; in single quotes. 62 ; 63 enquote BLD_LANG,%BLD_LANG 50 64 51 65 ; We actually don't want to use this directive because it generates extra … … 101 115 ; different from being 'slash-dotted' ... ;) 102 116 ; 103 IF BLD_LANG EQ 'en'117 IF BLD_LANG_TXT EQ 'en' 104 118 IFNDEF AUX_DEBUG 105 119 FX_ENABLED EQU … … 884 898 885 899 ;------------------------------------------------------------------------------ 886 include text/txtmbr.asm; All translateable Text in MBR900 include_from text/%BLD_LANG,mbr.asm ; All translateable Text in MBR 887 901 ;------------------------------------------------------------------------------ 888 902 … … 1738 1752 1739 1753 b_txtother: 1740 include text/txtother.asm; All translateable Text-Strings1754 include_from text/%BLD_LANG,other.asm ; All translateable Text-Strings 1741 1755 size_txtother = $-b_txtother 1742 1756 1743 1757 b_txtmenus: 1744 include text/txtmenus.asm; All translateable Menu-text1758 include_from text/%BLD_LANG,menus.asm ; All translateable Menu-text 1745 1759 size_txtmenus = $-b_txtmenus 1746 1760 -
trunk/bootcode/fc.mnu
r184 r186 4 4 5 5 B: Build Development Version [EN] 6 wmake -h dev %BLDLVL_VENDOR= %BLDLVL_MACHINE= %CRC_IGNORE=y6 wmake -h dev DEV_BLD_LANG=en %BLDLVL_VENDOR= %BLDLVL_MACHINE= %CRC_IGNORE=y 7 7 V: Build Vendor Dev Version [EN] 8 wmake -h dev 8 wmake -h dev DEV_BLD_LANG=en 9 9 M: Build Development Version [??] 10 10 { -
trunk/include/asm.inc
r122 r186 247 247 248 248 249 ; 250 ; This macro composes a path and file to load in include file. 251 ; It is used to include language specific files by using the BLD_LANG value. 252 ; 253 include_from MACRO loc,file 254 include loc/file 255 ENDM 256 257 258 ; 259 ; This macro creates a new symbol ending with '_TXT' which has the value of 260 ; the original symbol put in single quotes. It is used to do language specific 261 ; actions based on the BLD_LANG value. 262 ; 263 enquote MACRO symname,symval 264 symname&_TXT EQU '&symval&' 265 ENDM 266 267 249 268 ; Shortcuts for pointer-types 250 269 bptr equ byte ptr
Note:
See TracChangeset
for help on using the changeset viewer.