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

Get Vendor and BuildMachine from the environment [v1.1.1-testing]

If 'BLDLVL_VENDOR' and BLDLVL_MCHINE' are not in the environment,
their values will be set to '*UNKNOWN*'. Currently these *must* be
environment variables, passing them on the (w)make cli might not work.
Also, no spaces are allowed in the values.

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/bldlevel.inc

    r63 r182  
    4040;
    4141
    42 ; Vendor
    43 ;~ BLDLVL_VENDOR           TEXTEQU <'KIEWITZ'>
    44 ;~ BLDLVL_VENDOR           TEXTEQU <'RDPe'>
    45 BLDLVL_VENDOR           TEXTEQU <'*UNKNOWN*'>
     42; Vendor supplying this build -- make BLDLVL_VENDOR=YourInitials
     43IFNDEF  BLDLVL_VENDOR
     44BLDLVL_VENDOR           EQU     '*UNKNOWN*'
     45ENDIF
     46
     47; Build machine -- make BLDLVL_MACHINE=YourMachine
     48IFNDEF  BLDLVL_MACHINE
     49BLDLVL_MACHINE          EQU     '*UNKNOWN*'    ; 16 chars max.
     50ENDIF
     51
    4652; Version
    4753BLDLVL_MAJOR_VERSION    EQU     AB_MAJOR_VERSION    + '0'
     
    5662BLDLVL_MINUTES          EQU     (AB_MINUTES SHR 4)+'0',(AB_MINUTES AND 0Fh)+'0'
    5763BLDLVL_SECONDS          EQU     (AB_SECONDS SHR 4)+'0',(AB_SECONDS AND 0Fh)+'0'
    58 ; Build machine
    59 ;~ BLDLVL_MACHINE          EQU     'OS2BLDBOX'    ; 16 chars max.
    60 BLDLVL_MACHINE          EQU     '*UNKNOWN*'    ; 16 chars max.
     64
    6165; Build language
    6266IFDEF   WASM
Note: See TracChangeset for help on using the changeset viewer.