]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/i386/libi386/Makefile
Remove comments and assertions that are no longer valid after r330809.
[FreeBSD/FreeBSD.git] / stand / i386 / libi386 / Makefile
1 # $FreeBSD$
2
3 HAVE_GELI=              yes
4
5 .include <bsd.init.mk>
6
7 LIB=                    i386
8
9 SRCS=   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}
16 SRCS+=  devicename_stubs.c
17
18 BOOT_COMCONSOLE_PORT?= 0x3f8
19 CFLAGS+=        -DCOMPORT=${BOOT_COMCONSOLE_PORT}
20
21 BOOT_COMCONSOLE_SPEED?= 9600
22 CFLAGS+=        -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
23
24 .ifdef(BOOT_BIOSDISK_DEBUG)
25 # Make the disk code more talkative
26 CFLAGS+= -DDISK_DEBUG
27 .endif
28
29 .if !defined(BOOT_HIDE_SERIAL_NUMBERS)
30 # Export serial numbers, UUID, and asset tag from loader.
31 CFLAGS+= -DSMBIOS_SERIAL_NUMBERS
32 .if defined(BOOT_LITTLE_ENDIAN_UUID)
33 # Use little-endian UUID format as defined in SMBIOS 2.6.
34 CFLAGS+= -DSMBIOS_LITTLE_ENDIAN_UUID
35 .elif defined(BOOT_NETWORK_ENDIAN_UUID)
36 # Use network-endian UUID format for backward compatibility.
37 CFLAGS+= -DSMBIOS_NETWORK_ENDIAN_UUID
38 .endif
39 .endif
40
41 # Include simple terminal emulation (cons25-compatible)
42 CFLAGS+= -DTERM_EMU
43
44 # XXX: make alloca() useable
45 CFLAGS+= -Dalloca=__builtin_alloca
46
47 CFLAGS+=        -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
52 CFLAGS+= ${FORMAT_EXTENSIONS}
53
54 .include <bsd.lib.mk>
55
56 # XXX: clang integrated-as doesn't grok .codeNN directives yet
57 CFLAGS.amd64_tramp.S=   ${CLANG_NO_IAS}
58 CFLAGS.multiboot_tramp.S=       ${CLANG_NO_IAS}