2001-10-15 10:36:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2002-04-02 17:08:37 +00:00
|
|
|
LOADER_DISK_SUPPORT?= yes
|
|
|
|
LOADER_UFS_SUPPORT?= yes
|
2002-06-21 22:34:51 +00:00
|
|
|
LOADER_CD9660_SUPPORT?= yes
|
2017-10-16 03:59:52 +00:00
|
|
|
LOADER_EXT2FS_SUPPORT?= no
|
|
|
|
LOADER_MSDOS_SUPPORT?= no
|
2002-07-07 23:08:22 +00:00
|
|
|
LOADER_NET_SUPPORT?= yes
|
|
|
|
LOADER_NFS_SUPPORT?= yes
|
|
|
|
LOADER_TFTP_SUPPORT?= yes
|
2002-10-13 18:52:46 +00:00
|
|
|
LOADER_GZIP_SUPPORT?= yes
|
|
|
|
LOADER_BZIP2_SUPPORT?= no
|
2012-05-01 17:16:01 +00:00
|
|
|
LOADER_DEBUG?= no
|
2002-02-23 04:35:28 +00:00
|
|
|
|
2017-11-08 14:44:45 +00:00
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
|
|
|
PROG?= loader
|
|
|
|
NEWVERSWHAT?= "bootstrap loader" sparc64
|
|
|
|
VERSION_FILE= ${.CURDIR}/../loader/version
|
|
|
|
INSTALLFLAGS= -b
|
|
|
|
|
|
|
|
# Architecture-specific loader code
|
2017-11-10 23:54:48 +00:00
|
|
|
.PATH: ${BOOTSRC}/sparc64/loader
|
2018-02-13 03:44:50 +00:00
|
|
|
SRCS= locore.S main.c vers.c
|
2017-11-08 14:44:45 +00:00
|
|
|
|
2012-05-01 17:16:01 +00:00
|
|
|
.if ${LOADER_DEBUG} == "yes"
|
|
|
|
CFLAGS+= -DLOADER_DEBUG
|
|
|
|
.endif
|
2001-10-30 06:37:36 +00:00
|
|
|
|
2017-11-10 23:54:58 +00:00
|
|
|
.if exists(${.CURDIR}/help.sparc64)
|
2017-12-18 04:51:34 +00:00
|
|
|
HELP_FILES= ${.CURDIR}/help.sparc64
|
2017-11-10 23:54:58 +00:00
|
|
|
.endif
|
|
|
|
|
2010-01-09 21:23:39 +00:00
|
|
|
# Always add MI sources
|
2017-10-30 03:12:28 +00:00
|
|
|
.include "${BOOTSRC}/loader.mk"
|
2001-10-15 10:36:35 +00:00
|
|
|
|
2017-10-30 23:14:44 +00:00
|
|
|
LDFLAGS+= -static
|
2002-05-28 23:09:59 +00:00
|
|
|
|
2004-08-16 15:45:27 +00:00
|
|
|
# Open Firmware standalone support library
|
2017-10-30 03:12:28 +00:00
|
|
|
LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a
|
|
|
|
CFLAGS+= -I${BOOTSRC}/ofw/libofw/
|
2001-10-15 10:36:35 +00:00
|
|
|
|
2018-02-02 15:40:49 +00:00
|
|
|
DPADD= ${LDR_INTERP} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
|
|
|
|
LDADD= ${LDR_INTERP} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
|
2002-05-28 23:09:59 +00:00
|
|
|
|
2001-10-15 10:36:35 +00:00
|
|
|
.include <bsd.prog.mk>
|