Ignore:
Timestamp:
Nov 7, 2017, 7:12:52 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Improved language selection [v1.1.1-testing]

The old method copied the language specific files to a central location
before starting the build. This is a bit annoying when using version
control because the copied files get marked as changed, blurring the
current state of the work directory. Also, the specific language files
from the last build are always the active ones.

The new method conditionally includes the specific language files based
upon the BLD_LANG definition, which is passed on the cli. No more file
copying for specific language builds.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.asm

    r185 r186  
    2929
    3030;
     31; This one should never be undefined, but if so, then default to English.
     32;
     33IFNDEF  BLD_LANG
     34BLD_LANG    EQU     en
     35ENDIF
     36
     37;
    3138; Include AiR-BOOT Version Information.
    3239; This version-info is defined using simpel EQU's so it can serve as a
     
    4855include ../include/asm.inc
    4956
     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;
     63enquote BLD_LANG,%BLD_LANG
    5064
    5165; We actually don't want to use this directive because it generates extra
     
    101115; different from being 'slash-dotted' ... ;)
    102116;
    103 IF  BLD_LANG EQ 'en'
     117IF  BLD_LANG_TXT EQ 'en'
    104118IFNDEF  AUX_DEBUG
    105119FX_ENABLED      EQU
     
    884898
    885899;------------------------------------------------------------------------------
    886 include text/txtmbr.asm                        ; All translateable Text in MBR
     900include_from text/%BLD_LANG,mbr.asm            ; All translateable Text in MBR
    887901;------------------------------------------------------------------------------
    888902
     
    17381752
    17391753b_txtother:
    1740 include text/txtother.asm       ; All translateable Text-Strings
     1754include_from text/%BLD_LANG,other.asm   ; All translateable Text-Strings
    17411755size_txtother = $-b_txtother
    17421756
    17431757b_txtmenus:
    1744 include text/txtmenus.asm       ; All translateable Menu-text
     1758include_from text/%BLD_LANG,menus.asm   ; All translateable Menu-text
    17451759size_txtmenus = $-b_txtmenus
    17461760
Note: See TracChangeset for help on using the changeset viewer.