summaryrefslogtreecommitdiff
path: root/stand/sparc64/loader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stand/sparc64/loader/Makefile')
-rw-r--r--stand/sparc64/loader/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/stand/sparc64/loader/Makefile b/stand/sparc64/loader/Makefile
new file mode 100644
index 0000000000000..5388761cf5252
--- /dev/null
+++ b/stand/sparc64/loader/Makefile
@@ -0,0 +1,50 @@
+# $FreeBSD$
+
+LOADER_DISK_SUPPORT?= yes
+LOADER_UFS_SUPPORT?= yes
+LOADER_CD9660_SUPPORT?= yes
+LOADER_EXT2FS_SUPPORT?= no
+LOADER_MSDOS_SUPPORT?= no
+LOADER_NET_SUPPORT?= yes
+LOADER_NFS_SUPPORT?= yes
+LOADER_TFTP_SUPPORT?= yes
+LOADER_GZIP_SUPPORT?= yes
+LOADER_BZIP2_SUPPORT?= no
+LOADER_DEBUG?= no
+
+.include <bsd.init.mk>
+MK_SSP= no
+MAN=
+
+PROG?= loader
+NEWVERSWHAT?= "bootstrap loader" sparc64
+VERSION_FILE= ${.CURDIR}/../loader/version
+INSTALLFLAGS= -b
+
+# Architecture-specific loader code
+.PATH: ${BOOTSRC}/sparc64/loader
+SRCS= locore.S main.c metadata.c vers.c
+
+.if ${LOADER_DEBUG} == "yes"
+CFLAGS+= -DLOADER_DEBUG
+.endif
+
+.if exists(${.CURDIR}/help.sparc64)
+HELP_FILES+= help.sparc64
+.else
+HELP_FILES=
+.endif
+
+# Always add MI sources
+.include "${BOOTSRC}/loader.mk"
+
+LDFLAGS+= -static
+
+# Open Firmware standalone support library
+LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a
+CFLAGS+= -I${BOOTSRC}/ofw/libofw/
+
+DPADD= ${LIBFICL} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
+LDADD= ${LIBFICL} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
+
+.include <bsd.prog.mk>