7 SRCS= bio.c biosacpi.c biosdisk.c biosmem.c biospnp.c \
8 biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
9 comconsole.c devicename.c elf32_freebsd.c \
10 elf64_freebsd.c multiboot.c multiboot_tramp.S relocater_tramp.S \
11 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
12 smbios.c time.c vidconsole.c amd64_tramp.S spinconsole.c
14 SRCS+= devicename_stubs.c
17 BOOT_COMCONSOLE_PORT?= 0x3f8
18 CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
20 BOOT_COMCONSOLE_SPEED?= 9600
21 CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
23 .ifdef(BOOT_BIOSDISK_DEBUG)
24 # Make the disk code more talkative
28 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
29 # Export serial numbers, UUID, and asset tag from loader.
30 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
31 .if defined(BOOT_LITTLE_ENDIAN_UUID)
32 # Use little-endian UUID format as defined in SMBIOS 2.6.
33 CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID
34 .elif defined(BOOT_NETWORK_ENDIAN_UUID)
35 # Use network-endian UUID format for backward compatibility.
36 CFLAGS+= -DSMBIOS_NETWORK_ENDIAN_UUID
40 # Include simple terminal emulation (cons25-compatible)
43 # XXX: make alloca() useable
44 CFLAGS+= -Dalloca=__builtin_alloca
46 CFLAGS+= -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
47 -I${LDRSRC} -I${BOOTSRC}/i386/common \
48 -I${SYSDIR}/contrib/dev/acpica/include
50 # Handle FreeBSD specific %b and %D printf format specifiers
51 CFLAGS+= ${FORMAT_EXTENSIONS}
55 # XXX: clang integrated-as doesn't grok .codeNN directives yet
56 CFLAGS.amd64_tramp.S= ${CLANG_NO_IAS}
57 CFLAGS.multiboot_tramp.S= ${CLANG_NO_IAS}