Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/loader/Makefile
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
# Include bcache code. | # Include bcache code. | ||||
HAVE_BCACHE= yes | HAVE_BCACHE= yes | ||||
# Enable PnP and ISA-PnP code. | # Enable PnP and ISA-PnP code. | ||||
HAVE_PNP= yes | HAVE_PNP= yes | ||||
HAVE_ISABUS= yes | HAVE_ISABUS= yes | ||||
.if ${MK_LOADER_FIREWIRE} == "yes" | |||||
CFLAGS+= -DLOADER_FIREWIRE_SUPPORT | |||||
LIBFIREWIRE= ${BOOTOBJ}/i386/libfirewire/libfirewire.a | |||||
.endif | |||||
.if ${MK_LOADER_ZFS} == "yes" | .if ${MK_LOADER_ZFS} == "yes" | ||||
CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include | CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include | ||||
CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs | CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs | ||||
.endif | .endif | ||||
.if exists(${.CURDIR}/help.i386) | .if exists(${.CURDIR}/help.i386) | ||||
HELP_FILES= ${.CURDIR}/help.i386 | HELP_FILES= ${.CURDIR}/help.i386 | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# We must add it to the LDFLAGS instead of the OBJS because the former won't try | # We must add it to the LDFLAGS instead of the OBJS because the former won't try | ||||
# to clean it. When it is in OBJS, this cleaning can lead to races where | # to clean it. When it is in OBJS, this cleaning can lead to races where | ||||
# btxcrt.o is rebuilt, but boot2 isn't, leading to errors at installation time. | # btxcrt.o is rebuilt, but boot2 isn't, leading to errors at installation time. | ||||
# LDFLAGS does not have this baggage and will be included first in the list of | # LDFLAGS does not have this baggage and will be included first in the list of | ||||
# files. | # files. | ||||
LDFLAGS+= ${BTXCRT} | LDFLAGS+= ${BTXCRT} | ||||
DPADD= ${LDR_INTERP32} ${LIBFIREWIRE} ${LIBI386} ${LIBSA32} | DPADD= ${LDR_INTERP32} ${LIBI386} ${LIBSA32} | ||||
LDADD= ${LDR_INTERP32} ${LIBFIREWIRE} ${LIBI386} ${LIBSA32} | LDADD= ${LDR_INTERP32} ${LIBI386} ${LIBSA32} | ||||
.if ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "amd64" | ||||
CFLAGS+= -DLOADER_PREFER_AMD64 | CFLAGS+= -DLOADER_PREFER_AMD64 | ||||
.endif | .endif | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |