Changeset 182 for trunk/include


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

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/makefile.mif

    r68 r182  
    105105#
    106106%ZVAR=This variable will be placed in the Environment
     107
     108#
     109# Set the '*UNKNOWN*' value for Vendor and BuildMachine if undefined or empty
     110#
     111!if     "$(%BLDLVL_VENDOR)"==""
     112%BLDLVL_VENDOR=*UNKNOWN*
     113!endif
     114!if     "$(%BLDLVL_MACHINE)"==""
     115%BLDLVL_MACHINE=*UNKNOWN*
     116!endif
     117
     118#
     119# Compose JWasm defines to pass on command-line
     120#
     121%JWASM_DEFINES=
     122%JWASM_DEFINES += -DBLDLVL_VENDOR="'$(%BLDLVL_VENDOR)'"
     123%JWASM_DEFINES += -DBLDLVL_MACHINE="'$(%BLDLVL_MACHINE)'"
     124
     125#
     126# Compose C-Compiler defines to pass on command-line
     127#
     128%CC_DEFINES=
     129!ifdef  __LINUX__
     130%CC_DEFINES += -dBLDLVL_VENDOR='"$(%BLDLVL_VENDOR)"'
     131%CC_DEFINES += -dBLDLVL_MACHINE='"$(%BLDLVL_MACHINE)"'
     132!else
     133%CC_DEFINES += -dBLDLVL_VENDOR="$(%BLDLVL_VENDOR)"
     134%CC_DEFINES += -dBLDLVL_MACHINE="$(%BLDLVL_MACHINE)"
     135!endif
    107136
    108137#
  • trunk/include/version.h

    r179 r182  
    2121// OS/2 BLDLEVEL Information.
    2222*/
     23
    2324// Vendor
    24 //~ #define     BLDLVL_VENDOR           "KIEWITZ"
    25 //~ #define     BLDLVL_VENDOR           "RDPe"
     25#ifndef     BLDLVL_VENDOR
    2626#define     BLDLVL_VENDOR           "*UNKNOWN*"
     27#endif
     28
     29// Build machine
     30#ifndef     BLDLVL_MACHINE
     31#define     BLDLVL_MACHINE          "*UNKNOWN*"
     32#endif
     33
    2734// Version
    2835#define     BLDLVL_MAJOR_VERSION    "1"
    2936#define     BLDLVL_MIDDLE_VERSION   "1"
    3037#define     BLDLVL_MINOR_VERSION    "1"
     38
    3139// Build date
    3240#define     BLDLVL_YEAR             "2017"
    3341#define     BLDLVL_MONTH            "04"
    3442#define     BLDLVL_DAY              "13"
     43
    3544// Build time
    3645//~ #define     BLDLVL_HOURS            "01"
     
    4049#define     BLDLVL_MINUTES          "59"
    4150#define     BLDLVL_SECONDS          "59"
    42 // Build machine
    43 //~ #define     BLDLVL_MACHINE          "OS2BLDBOX"
    44 #define     BLDLVL_MACHINE          "*UNKNOWN*"
     51
    4552// Build language
    4653#define     BLDLVL_LANGUAGE         "EN"
    47 
Note: See TracChangeset for help on using the changeset viewer.