Changeset View
Changeset View
Standalone View
Standalone View
stand/sparc64/loader/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
HAVE_ZFS= ${MK_ZFS} | HAVE_ZFS= ${MK_LOADER_ZFS} | ||||
imp: MK_LOADER_ZFS | |||||
LOADER_DISK_SUPPORT?= yes | LOADER_DISK_SUPPORT?= yes | ||||
LOADER_UFS_SUPPORT?= yes | LOADER_UFS_SUPPORT?= yes | ||||
LOADER_CD9660_SUPPORT?= yes | LOADER_CD9660_SUPPORT?= yes | ||||
LOADER_EXT2FS_SUPPORT?= no | LOADER_EXT2FS_SUPPORT?= no | ||||
LOADER_MSDOS_SUPPORT?= no | LOADER_MSDOS_SUPPORT?= no | ||||
LOADER_NET_SUPPORT?= yes | LOADER_NET_SUPPORT?= yes | ||||
LOADER_NFS_SUPPORT?= yes | LOADER_NFS_SUPPORT?= yes | ||||
LOADER_TFTP_SUPPORT?= yes | LOADER_TFTP_SUPPORT?= yes | ||||
LOADER_GZIP_SUPPORT?= yes | LOADER_GZIP_SUPPORT?= yes | ||||
LOADER_BZIP2_SUPPORT?= no | LOADER_BZIP2_SUPPORT?= no | ||||
LOADER_DEBUG?= no | LOADER_DEBUG?= no | ||||
.include <bsd.init.mk> | .include <bsd.init.mk> | ||||
PROG?= loader | PROG?= loader | ||||
NEWVERSWHAT?= "bootstrap loader" sparc64 | NEWVERSWHAT?= "bootstrap loader" sparc64 | ||||
VERSION_FILE= ${.CURDIR}/../loader/version | VERSION_FILE= ${.CURDIR}/../loader/version | ||||
INSTALLFLAGS= -b | INSTALLFLAGS= -b | ||||
.if ${MK_ZFS} != "no" | .if ${MK_LOADER_ZFS} != "no" | ||||
Not Done Inline ActionsMK_LOADER_ZFS imp: MK_LOADER_ZFS | |||||
HAVE_ZFS= yes | HAVE_ZFS= yes | ||||
.endif | .endif | ||||
# Architecture-specific loader code | # Architecture-specific loader code | ||||
.PATH: ${BOOTSRC}/sparc64/loader | .PATH: ${BOOTSRC}/sparc64/loader | ||||
SRCS= locore.S main.c vers.c | SRCS= locore.S main.c vers.c | ||||
.if ${LOADER_DEBUG} == "yes" | .if ${LOADER_DEBUG} == "yes" | ||||
CFLAGS+= -DLOADER_DEBUG | CFLAGS+= -DLOADER_DEBUG | ||||
.endif | .endif | ||||
.if exists(${.CURDIR}/help.sparc64) | .if exists(${.CURDIR}/help.sparc64) | ||||
HELP_FILES= ${.CURDIR}/help.sparc64 | HELP_FILES= ${.CURDIR}/help.sparc64 | ||||
.endif | .endif | ||||
# Always add MI sources | # Always add MI sources | ||||
.include "${BOOTSRC}/loader.mk" | .include "${BOOTSRC}/loader.mk" | ||||
LDFLAGS+= -static | LDFLAGS+= -static | ||||
.if ${MK_ZFS} == "yes" | .if ${MK_LOADER_ZFS} == "yes" | ||||
Not Done Inline ActionsMK_LOADER_ZFS imp: MK_LOADER_ZFS | |||||
LINKS= ${BINDIR}/loader ${BINDIR}/zfsloader | LINKS= ${BINDIR}/loader ${BINDIR}/zfsloader | ||||
.endif | .endif | ||||
# Open Firmware standalone support library | # Open Firmware standalone support library | ||||
LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a | LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a | ||||
CFLAGS+= -I${BOOTSRC}/ofw/libofw/ | CFLAGS+= -I${BOOTSRC}/ofw/libofw/ | ||||
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSA} | DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSA} | ||||
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSA} | LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSA} | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |
MK_LOADER_ZFS