summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/sparc64/loader/Makefile9
-rw-r--r--sys/boot/sparc64/loader/version6
2 files changed, 10 insertions, 5 deletions
diff --git a/sys/boot/sparc64/loader/Makefile b/sys/boot/sparc64/loader/Makefile
index 1a1f42a..8d615ef 100644
--- a/sys/boot/sparc64/loader/Makefile
+++ b/sys/boot/sparc64/loader/Makefile
@@ -9,7 +9,7 @@ INSTALLFLAGS= -b
NOFORTH= yes
# Architecture-specific loader code
-SRCS= locore.S main.c metadata.c
+SRCS= locore.S main.c metadata.c vers.c
LOADER_DISK_SUPPORT?= yes
LOADER_UFS_SUPPORT?= yes
@@ -54,7 +54,7 @@ LIBFICL= ${.CURDIR}/../../ficl/libficl.a
CFLAGS+= -I${.CURDIR}/../../common
CFLAGS+= -I${.CURDIR}/../../.. -I.
-CLEANFILES+= vers.c vers.o ${BASE}.help
+CLEANFILES+= vers.c ${BASE}.help
CFLAGS+= -ffreestanding
LDFLAGS= -nostdlib -static
@@ -74,11 +74,10 @@ LIBSTAND= -lstand
.endif
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
-LDADD= ${LIBSTAND} ${LIBOFW}
+LDADD= ${LIBFICL} ${LIBSTAND} ${LIBOFW}
-vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
+vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
- ${CC} -c vers.c
${BASE}.help: help.common help.sparc64
cat ${.ALLSRC} | \
diff --git a/sys/boot/sparc64/loader/version b/sys/boot/sparc64/loader/version
new file mode 100644
index 0000000..bef4091
--- /dev/null
+++ b/sys/boot/sparc64/loader/version
@@ -0,0 +1,6 @@
+$FreeBSD$
+
+NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE. The format of this
+file is important. Make sure the current version number is on line 6.
+
+1.0: I hate the loader.
OpenPOWER on IntegriCloud