coreboot/src/lib/version.c
<<
>>
Prefs
   1#include <version.h>
   2#include <build.h>
   3
   4#ifndef CONFIG_MAINBOARD_VENDOR
   5#error CONFIG_MAINBOARD_VENDOR not defined
   6#endif
   7#ifndef CONFIG_MAINBOARD_PART_NUMBER
   8#error  CONFIG_MAINBOARD_PART_NUMBER not defined
   9#endif
  10
  11#ifndef COREBOOT_VERSION
  12#error  COREBOOT_VERSION not defined
  13#endif
  14#ifndef COREBOOT_BUILD
  15#error  COREBOOT_BUILD not defined
  16#endif
  17
  18#ifndef COREBOOT_COMPILE_TIME
  19#error  COREBOOT_COMPILE_TIME not defined
  20#endif
  21#ifndef COREBOOT_COMPILE_BY
  22#error  COREBOOT_COMPILE_BY not defined
  23#endif
  24#ifndef COREBOOT_COMPILE_HOST
  25#error  COREBOOT_COMPILE_HOST not defined
  26#endif
  27
  28#ifndef COREBOOT_COMPILER
  29#error  COREBOOT_COMPILER not defined
  30#endif
  31#ifndef COREBOOT_LINKER
  32#error  COREBOOT_LINKER not defined
  33#endif
  34#ifndef COREBOOT_ASSEMBLER
  35#error  COREBOOT_ASSEMBLER not defined
  36#endif
  37
  38#ifndef  COREBOOT_EXTRA_VERSION
  39#define COREBOOT_EXTRA_VERSION ""
  40#endif
  41
  42const char mainboard_vendor[] = CONFIG_MAINBOARD_VENDOR;
  43const char mainboard_part_number[] = CONFIG_MAINBOARD_PART_NUMBER;
  44
  45const char coreboot_version[] = COREBOOT_VERSION;
  46const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
  47const char coreboot_build[] = COREBOOT_BUILD;
  48
  49const char coreboot_compile_time[]   = COREBOOT_COMPILE_TIME;
  50const char coreboot_compile_by[]     = COREBOOT_COMPILE_BY;
  51const char coreboot_compile_host[]   = COREBOOT_COMPILE_HOST;
  52const char coreboot_compile_domain[] = COREBOOT_COMPILE_DOMAIN;
  53const char coreboot_compiler[]       = COREBOOT_COMPILER;
  54const char coreboot_linker[]         = COREBOOT_LINKER;
  55const char coreboot_assembler[]      = COREBOOT_ASSEMBLER;
  56
  57
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.