2018-03-16 15:56:19 +03:00
|
|
|
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
|
|
|
* This file is part of ToaruOS and is released under the terms
|
|
|
|
* of the NCSA / University of Illinois License - see LICENSE.md
|
2018-05-01 11:12:56 +03:00
|
|
|
* Copyright (C) 2011-2018 K. Lange
|
2018-03-16 15:56:19 +03:00
|
|
|
*/
|
|
|
|
|
2018-03-19 05:38:11 +03:00
|
|
|
#include <kernel/version.h>
|
2018-03-16 15:56:19 +03:00
|
|
|
|
|
|
|
/* Kernel name. If you change this, you're not
|
|
|
|
* my friend any more. */
|
|
|
|
char * __kernel_name = "toaru";
|
|
|
|
|
|
|
|
/* This really shouldn't change, and if it does,
|
|
|
|
* always ensure it still has the correct arguments
|
|
|
|
* when used as a vsprintf() format. */
|
|
|
|
char * __kernel_version_format = "%d.%d.%d-%s";
|
|
|
|
|
|
|
|
/* Version numbers X.Y.Z */
|
|
|
|
int __kernel_version_major = 1;
|
2018-12-11 06:44:23 +03:00
|
|
|
int __kernel_version_minor = 10;
|
2019-06-30 16:17:52 +03:00
|
|
|
int __kernel_version_lower = 11;
|
2018-03-16 15:56:19 +03:00
|
|
|
|
|
|
|
/* Kernel build suffix, which doesn't necessarily
|
|
|
|
* mean anything, but can be used to distinguish
|
|
|
|
* between different features included while
|
|
|
|
* building multiple kernels. */
|
|
|
|
#ifdef KERNEL_GIT_TAG
|
|
|
|
# define STR(x) #x
|
|
|
|
# define STRSTR(x) STR(x)
|
|
|
|
# define KERNEL_VERSION_SUFFIX STRSTR(KERNEL_GIT_TAG)
|
|
|
|
#else
|
|
|
|
# define KERNEL_VERSION_SUFFIX "r"
|
|
|
|
#endif
|
|
|
|
char * __kernel_version_suffix = KERNEL_VERSION_SUFFIX;
|
|
|
|
|
|
|
|
/* The release codename. */
|
2018-10-06 15:28:43 +03:00
|
|
|
char * __kernel_version_codename = "core";
|
2018-03-16 15:56:19 +03:00
|
|
|
|
|
|
|
/* Build architecture (should probably not be
|
|
|
|
* here as a string, but rather some sort of
|
|
|
|
* preprocessor macro, or pulled from a script) */
|
|
|
|
char * __kernel_arch = "i686";
|
|
|
|
|
|
|
|
/* Rebuild from clean to reset these. */
|
|
|
|
char * __kernel_build_date = __DATE__;
|
|
|
|
char * __kernel_build_time = __TIME__;
|
|
|
|
|
|
|
|
#if (defined(__GNUC__) || defined(__GNUG__)) && !(defined(__clang__) || defined(__INTEL_COMPILER))
|
|
|
|
# define COMPILER_VERSION "gcc " __VERSION__
|
|
|
|
#elif (defined(__clang__))
|
|
|
|
# define COMPILER_VERSION "clang " __clang_version__
|
|
|
|
#else
|
|
|
|
# define COMPILER_VERSION "unknown-compiler how-did-you-do-that"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
char * __kernel_compiler_version = COMPILER_VERSION;
|