summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2002-01-02 08:03:21 +0000
committerhpa <hpa>2002-01-02 08:03:21 +0000
commit4e5bec000ffe7adfa8680b5710d9a5462e254261 (patch)
tree985c667c6b9844ef2afd2f1e15b036e27d33a980
parent6c68e943ceae02ec47169af4a481ea8550544507 (diff)
downloadsyslinux-4e5bec000ffe7adfa8680b5710d9a5462e254261.tar.gz
Even better way to do the "kernel version string" pointer stuff
-rw-r--r--memdisk/setup.c7
-rw-r--r--memdisk/version.h26
2 files changed, 30 insertions, 3 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index 5a6faa1d..98a3c96c 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -18,8 +18,9 @@
/* A pointer to this is stored in the header */
const char memdisk_version[] =
-"MEMDISK " VERSION " " DATE
-" Copyright " FIRSTYEAR "-" COPYYEAR " H. Peter Anvin";
+"MEMDISK " VERSION " " DATE;
+const char copyright[] =
+"Copyright " FIRSTYEAR "-" COPYYEAR " H. Peter Anvin";
extern const char _binary_memdisk_bin_start[], _binary_memdisk_bin_end[];
extern const char _binary_memdisk_bin_size[]; /* Weird, I know */
@@ -441,7 +442,7 @@ uint32_t setup(void)
int total_size;
/* Show signs of life */
- printf("%s\n", memdisk_version);
+ printf("%s %s\n", memdisk_version, copyright);
if ( !shdr->ramdisk_image || !shdr->ramdisk_size ) {
puts("MEMDISK: No ramdisk image specified!\n");
diff --git a/memdisk/version.h b/memdisk/version.h
new file mode 100644
index 00000000..f9e645a9
--- /dev/null
+++ b/memdisk/version.h
@@ -0,0 +1,26 @@
+#ident "$Id$"
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2002 H. Peter Anvin - All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ * Bostom MA 02111-1307, USA; either version 2 of the License, or
+ * (at your option) any later version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+/*
+ * version.h
+ *
+ * MEMDISK version data
+ */
+
+#ifndef MEMDISK_VERSION_H
+#define MEMDISK_VERSION_H
+
+#define FIRSTYEAR "2001"
+#define COPYYEAR "2002"
+
+#endif