Index: boot/arch/sparc64/loader/Makefile
===================================================================
--- boot/arch/sparc64/loader/Makefile	(revision abc9fc50366343287347929eb63fca6e10ae935d)
+++ boot/arch/sparc64/loader/Makefile	(revision 22f851e0167add5c092c4f0972647405189b12cf)
@@ -27,4 +27,7 @@
 #
 
+include ../../../../version
+include ../../../Makefile.config
+
 ## Toolchain configuration
 #
@@ -47,5 +50,13 @@
 endif
 
-CFLAGS = -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64
+CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64
+
+ifdef REVISION
+	CFLAGS += "-DREVISION=\"$(REVISION)\""
+endif
+
+ifdef TIMESTAMP
+	CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
+endif
 
 SOURCES = \
