Skip to content

Commit

Permalink
version: kernel version header
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 8, 2024
1 parent 7939d91 commit b2eadf3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/include/kernel/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* lux - a lightweight unix-like operating system
* Omar Elghoul, 2024
*
* Core Microkernel
*/

#pragma once

#include <platform/platform.h>

#define PLATFORM

#ifdef PLATFORM_X86_64
#undef PLATFORM
#define PLATFORM "x86_64"
#endif

#ifdef PLATFORM_ARM64
#undef PLATFORM
#define PLATFORM "arm64"
#endif

#ifndef RELEASE_VERSION
#define KERNEL_VERSION "lux microkernel " PLATFORM " (built " __DATE__ ")"
#else
#define KERNEL_VERSION "lux microkernel " RELEASE_VERSION " " PLATFORM " (built " __DATE__ ")"
#endif

0 comments on commit b2eadf3

Please sign in to comment.