summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2024-12-14 01:28:28 +0000
committerGitHub <noreply@github.com>2024-12-13 20:28:28 -0500
commit9170902f8d4375a145b513963646dbf58949fb9a (patch)
tree17ae52ae639847b1ad35ba3d550e187c75905a0f /src/boot
parentdf5d4cb4673bc74d1e2f4d11cf6f5fe8376cd1df (diff)
Move build.c definitions to the makefile, introduce and use libultra version defines in libultra instead of PLATFORM defines (#2353)
* Move build.c definitions to the makefile, introduce and use libultra version defines in libultra instead of PLATFORM defines * MAJOR+MINOR versions -> VERSION+PATCH, stringify build defines in makefile, let the libultra version determine the OPTFLAGS for libultra files * Clang format moment * Remove LIBULTRA_VERSION_ID, tweak OS_VERSION and libultra version definitions * Better fix for formatting problems
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/build.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/src/boot/build.c b/src/boot/build.c
index 49992adc5..31e48096b 100644
--- a/src/boot/build.c
+++ b/src/boot/build.c
@@ -1,39 +1,5 @@
#include "versions.h"
-#if PLATFORM_N64
-const char gBuildCreator[] = "zelda@srd44";
-#else
-const char gBuildCreator[] = "zelda@srd022j";
-#endif
-
-#if OOT_VERSION == NTSC_1_0
-const char gBuildDate[] = "98-10-21 04:56:31";
-#elif OOT_VERSION == NTSC_1_1
-const char gBuildDate[] = "98-10-26 10:58:45";
-#elif OOT_VERSION == PAL_1_0
-const char gBuildDate[] = "98-11-10 14:34:22";
-#elif OOT_VERSION == NTSC_1_2
-const char gBuildDate[] = "98-11-12 18:17:03";
-#elif OOT_VERSION == PAL_1_1
-const char gBuildDate[] = "98-11-18 17:36:49";
-#elif OOT_VERSION == GC_JP
-const char gBuildDate[] = "02-10-29 23:49:53";
-#elif OOT_VERSION == GC_JP_MQ
-const char gBuildDate[] = "02-10-30 00:15:15";
-#elif OOT_VERSION == GC_US
-const char gBuildDate[] = "02-12-19 13:28:09";
-#elif OOT_VERSION == GC_US_MQ
-const char gBuildDate[] = "02-12-19 14:05:42";
-#elif OOT_VERSION == GC_EU_MQ_DBG
-const char gBuildDate[] = "03-02-21 00:16:31";
-#elif OOT_VERSION == GC_EU
-const char gBuildDate[] = "03-02-21 20:12:23";
-#elif OOT_VERSION == GC_EU_MQ
-const char gBuildDate[] = "03-02-21 20:37:19";
-#elif OOT_VERSION == GC_JP_CE
-const char gBuildDate[] = "03-10-08 21:53:00";
-#else
-#error "Unsupported OOT_VERSION"
-#endif
-
+const char gBuildCreator[] = BUILD_CREATOR;
+const char gBuildDate[] = BUILD_DATE " " BUILD_TIME;
const char gBuildMakeOption[] = "";