iPXE
Macros | Functions | Variables
version.c File Reference

Version number. More...

#include <wchar.h>
#include <ipxe/features.h>
#include <ipxe/version.h>
#include <ipxe/sbat.h>
#include <config/general.h>
#include <config/branding.h>

Go to the source code of this file.

Macros

#define WSTRING(string)   _WSTRING ( string )
 Create wide-character version of string. More...
 
#define _WSTRING(string)   L ## string
 
#define SBAT_IPXE
 SBAT upstream iPXE line. More...
 
#define SBAT_PRODUCT   ""
 SBAT local build line. More...
 
#define SBAT_DATA   SBAT_HEADER "" SBAT_IPXE "" SBAT_PRODUCT
 SBAT data. More...
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 FEATURE_VERSION (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
 Version number feature. More...
 

Variables

char _build_timestamp []
 Build timestamp (generated by linker) More...
 
char _build_id []
 Build ID (generated by linker) More...
 
unsigned long build_timestamp = ( ( unsigned long ) _build_timestamp )
 Build timestamp. More...
 
unsigned long build_id = ( ( unsigned long ) _build_id )
 Build ID. More...
 
const int product_major_version = VERSION_MAJOR
 Product major version. More...
 
const int product_minor_version = VERSION_MINOR
 Product minor version. More...
 
const char product_version [] = VERSION
 Product version string. More...
 
const char product_name [] = PRODUCT_NAME
 Product name string. More...
 
const char product_short_name [] = PRODUCT_SHORT_NAME
 Product short name string. More...
 
const char build_name [] = BUILD_NAME
 Build name string. More...
 
const wchar_t product_wversion [] = WSTRING ( VERSION )
 Wide-character product version string. More...
 
const wchar_t product_wname [] = WSTRING ( PRODUCT_NAME )
 Wide-character product name string. More...
 
const wchar_t product_short_wname [] = WSTRING ( PRODUCT_SHORT_NAME )
 Wide-character product short name string. More...
 
const wchar_t build_wname [] = WSTRING ( BUILD_NAME )
 Wide-character build name string. More...
 
const char build_name_prefix [] = BUILD_NAME
 Copy of build name string within ".prefix". More...
 
const char sbat [sizeof(SBAT_DATA) - 1] __sbat = SBAT_DATA
 SBAT data (without any NUL terminator) More...
 

Detailed Description

Version number.

Definition in file version.c.

Macro Definition Documentation

◆ WSTRING

#define WSTRING (   string)    _WSTRING ( string )

Create wide-character version of string.

Parameters
stringString
Return values
wstringWide-character version of string

Definition at line 45 of file version.c.

◆ _WSTRING

#define _WSTRING (   string)    L ## string

Definition at line 46 of file version.c.

◆ SBAT_IPXE

#define SBAT_IPXE
Value:
"iPXE", BUILD_NAME, VERSION, "https://ipxe.org" )
#define IPXE_SBAT_GENERATION
Upstream security generation.
Definition: sbat.h:50
#define SBAT_LINE(name, generation, vendor, package, version, uri)
A single line within an SBAT CSV file.
Definition: sbat.h:34

SBAT upstream iPXE line.

This line represents the security generation of the upstream codebase from which this build is derived.

Definition at line 102 of file version.c.

◆ SBAT_PRODUCT

#define SBAT_PRODUCT   ""

SBAT local build line.

This line states the security generation of the local build, which may include non-default features or non-upstreamed modifications.

Definition at line 117 of file version.c.

◆ SBAT_DATA

#define SBAT_DATA   SBAT_HEADER "" SBAT_IPXE "" SBAT_PRODUCT

SBAT data.

Definition at line 121 of file version.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ FEATURE_VERSION()

FEATURE_VERSION ( VERSION_MAJOR  ,
VERSION_MINOR  ,
VERSION_PATCH   
)

Version number feature.

Variable Documentation

◆ _build_timestamp

char _build_timestamp[]

Build timestamp (generated by linker)

◆ _build_id

char _build_id[]

Build ID (generated by linker)

◆ build_timestamp

unsigned long build_timestamp = ( ( unsigned long ) _build_timestamp )

Build timestamp.

Definition at line 58 of file version.c.

Referenced by efi_driver_install().

◆ build_id

unsigned long build_id = ( ( unsigned long ) _build_id )

Build ID.

Definition at line 61 of file version.c.

Referenced by efi_stack_cookie(), and xsigo_xds_complete().

◆ product_major_version

const int product_major_version = VERSION_MAJOR

Product major version.

Definition at line 64 of file version.c.

Referenced by intelxl_admin_driver(), and nbi_boot32().

◆ product_minor_version

const int product_minor_version = VERSION_MINOR

Product minor version.

Definition at line 67 of file version.c.

Referenced by intelxl_admin_driver(), and nbi_boot32().

◆ product_version

const char product_version[] = VERSION

Product version string.

Definition at line 70 of file version.c.

Referenced by efi_snp_hii_package_list(), http_format_user_agent(), int22(), ipxe(), multiboot_exec(), version_fetch(), and xsigo_xds_complete().

◆ product_name

const char product_name[] = PRODUCT_NAME

Product name string.

Definition at line 73 of file version.c.

Referenced by efi_snp_hii_package_list(), and intelxl_admin_driver().

◆ product_short_name

const char product_short_name[] = PRODUCT_SHORT_NAME

Product short name string.

Definition at line 76 of file version.c.

Referenced by efi_snp_hii_package_list(), efi_snp_probe(), intelxl_admin_driver(), main(), oncrpc_init_cred_sys(), and xsigo_xds_complete().

◆ build_name

const char build_name[] = BUILD_NAME

Build name string.

Definition at line 79 of file version.c.

◆ product_wversion

const wchar_t product_wversion[] = WSTRING ( VERSION )

Wide-character product version string.

Definition at line 82 of file version.c.

◆ product_wname

const wchar_t product_wname[] = WSTRING ( PRODUCT_NAME )

Wide-character product name string.

Definition at line 85 of file version.c.

Referenced by efi_driver_name().

◆ product_short_wname

const wchar_t product_short_wname[] = WSTRING ( PRODUCT_SHORT_NAME )

Wide-character product short name string.

Definition at line 88 of file version.c.

◆ build_wname

const wchar_t build_wname[] = WSTRING ( BUILD_NAME )

Wide-character build name string.

Definition at line 91 of file version.c.

Referenced by efi_driver_name().

◆ build_name_prefix

const char build_name_prefix[] = BUILD_NAME

Copy of build name string within ".prefix".

Definition at line 95 of file version.c.

◆ __sbat

const char sbat [ sizeof ( SBAT_DATA ) - 1 ] __sbat = SBAT_DATA

SBAT data (without any NUL terminator)

Definition at line 124 of file version.c.