2001-10-15 10:36:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.include <bsd.init.mk>
|
2009-02-21 15:04:31 +00:00
|
|
|
MK_SSP= no
|
2015-06-19 14:20:21 +00:00
|
|
|
MAN=
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2012-05-01 17:16:01 +00:00
|
|
|
PROG?= loader
|
|
|
|
NEWVERSWHAT?= "bootstrap loader" sparc64
|
2016-12-19 14:40:59 +00:00
|
|
|
VERSION_FILE= ${.CURDIR}/../loader/version
|
2002-04-02 17:08:37 +00:00
|
|
|
INSTALLFLAGS= -b
|
2001-10-15 10:36:35 +00:00
|
|
|
|
2002-05-28 23:09:59 +00:00
|
|
|
# Architecture-specific loader code
|
2002-07-07 18:23:10 +00:00
|
|
|
SRCS= locore.S main.c metadata.c vers.c
|
2002-02-23 04:35:28 +00:00
|
|
|
|
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
|
2012-05-01 17:16:01 +00:00
|
|
|
LOADER_ZFS_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
|
|
|
|
2012-05-01 17:16:01 +00:00
|
|
|
.if ${LOADER_DEBUG} == "yes"
|
|
|
|
CFLAGS+= -DLOADER_DEBUG
|
|
|
|
.endif
|
|
|
|
.if ${LOADER_ZFS_SUPPORT} == "yes"
|
|
|
|
CFLAGS+= -DLOADER_ZFS_SUPPORT
|
2017-10-30 23:14:59 +00:00
|
|
|
CFLAGS+= -I${ZFSSRC}
|
2017-10-30 03:12:28 +00:00
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/boot/zfs
|
|
|
|
LIBZFSBOOT= ${BOOTOBJ}/zfs/libzfsboot.a
|
2012-05-01 17:16:01 +00:00
|
|
|
.endif
|
2001-10-30 06:37:36 +00:00
|
|
|
|
2010-01-09 21:23:39 +00:00
|
|
|
# Always add MI sources
|
2017-10-30 03:12:28 +00:00
|
|
|
.include "${BOOTSRC}/loader.mk"
|
2004-02-09 14:17:02 +00:00
|
|
|
CFLAGS+= -I.
|
2001-10-15 10:36:35 +00:00
|
|
|
|
2016-12-19 14:40:59 +00:00
|
|
|
CLEANFILES+= loader.help
|
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
|
|
|
|
2017-04-02 17:25:37 +00:00
|
|
|
# Need sys/ for crypto/intake.h
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
|
|
|
2017-10-09 22:12:46 +00:00
|
|
|
DPADD= ${LIBFICL} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
|
|
|
|
LDADD= ${LIBFICL} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
|
2002-05-28 23:09:59 +00:00
|
|
|
|
2004-02-09 14:17:02 +00:00
|
|
|
loader.help: help.common help.sparc64
|
2002-04-02 17:08:37 +00:00
|
|
|
cat ${.ALLSRC} | \
|
2017-10-22 22:50:08 +00:00
|
|
|
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
2001-10-15 10:36:35 +00:00
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.PATH: ${BOOTSRC}/forth
|
|
|
|
.include "${BOOTSRC}/forth/Makefile.inc"
|
2002-05-28 23:09:59 +00:00
|
|
|
|
2015-08-06 16:07:27 +00:00
|
|
|
FILES+= loader.rc menu.rc
|
2011-05-28 08:50:38 +00:00
|
|
|
|
2001-10-15 10:36:35 +00:00
|
|
|
.include <bsd.prog.mk>
|