6 SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
7 biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
8 comconsole.c devicename.c elf32_freebsd.c \
10 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
11 smbios.c time.c vidconsole.c amd64_tramp.S
13 # Enable PXE TFTP or NFS support, not both.
14 .if defined(LOADER_TFTP_SUPPORT)
15 CFLAGS+= -DLOADER_TFTP_SUPPORT
17 CFLAGS+= -DLOADER_NFS_SUPPORT
20 BOOT_COMCONSOLE_PORT?= 0x3f8
21 CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
23 BOOT_COMCONSOLE_SPEED?= 9600
24 CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
26 .ifdef(BOOT_BIOSDISK_DEBUG)
27 # Make the disk code more talkative
31 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
32 # Export serial numbers, UUID, and asset tag from loader.
33 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
34 .if defined(BOOT_LITTLE_ENDIAN_UUID)
35 # Use little-endian UUID format as defined in SMBIOS 2.6.
36 CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID
40 .if !defined(LOADER_NO_GPT_SUPPORT)
41 CFLAGS+= -DLOADER_GPT_SUPPORT
44 # Include simple terminal emulation (cons25-compatible)
47 # XXX: make alloca() useable
48 CFLAGS+= -Dalloca=__builtin_alloca
50 CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
51 -I${.CURDIR}/../../../contrib/dev/acpica/include \
52 -I${.CURDIR}/../../.. -I.
53 # the location of libstand
54 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
56 .if ${MACHINE_ARCH} == "amd64"
59 ln -sf ${.CURDIR}/../../../i386/include machine
64 .if ${MACHINE_ARCH} == "amd64"
65 beforedepend ${OBJS}: machine