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