[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH 3/4] config: Informationen über die Tỳndur-Version extrahiert
+ lost/version.h: Versionsinformationen zu Tỳndur aus lost/config.h
extrahiert
Signed-off-by: Andreas Freimuth <m.nemo@xxxxxxx>
---
src/include/lost/config.h | 12 +-----------
src/include/lost/version.h | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 11 deletions(-)
create mode 100644 src/include/lost/version.h
diff --git a/src/include/lost/config.h b/src/include/lost/config.h
index cec4d1b..919a739 100644
--- a/src/include/lost/config.h
+++ b/src/include/lost/config.h
@@ -73,17 +73,7 @@
//%type "yesno"
#define CONFIG_LIBC_NO_STUBS
-
-#define TYNDUR_VERSION "0.3.0"
-#define TYNDUR_RELEASE "Smaug"
-
-#if CONFIG_ARCH == ARCH_I386
- #define TYNDUR_ARCH "i386"
-#elif CONFIG_ARCH == ARCH_AMD64
- #define TYNDUR_ARCH "amd64"
-#else
- #error Unbekannte Architektur
-#endif
+#include <lost/version.h>
#endif // _CONFIG_H_
diff --git a/src/include/lost/version.h b/src/include/lost/version.h
new file mode 100644
index 0000000..9b61e5c
--- /dev/null
+++ b/src/include/lost/version.h
@@ -0,0 +1,17 @@
+#ifndef TYNDUR_VERSION_H
+#define TYNDUR_VERSION_H
+
+#include <lost/config.h>
+
+#define TYNDUR_VERSION "0.3.0"
+#define TYNDUR_RELEASE "Smaug"
+
+#if CONFIG_ARCH == ARCH_I386
+ #define TYNDUR_ARCH "i386"
+#elif CONFIG_ARCH == ARCH_AMD64
+ #define TYNDUR_ARCH "amd64"
+#else
+ #error Unbekannte Architektur
+#endif
+
+#endif
--
1.7.11.7