Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/boot2/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <bsd.init.mk> | .include <bsd.init.mk> | ||||
FILES= boot boot1 boot2 | FILES= boot boot1 boot2 | ||||
# A value of 0x80 enables LBA support. | # A value of 0x80 enables LBA support. | ||||
BOOT_BOOT1_FLAGS?= 0x80 | BOOT_BOOT1_FLAGS?= 0x80 | ||||
BOOT_COMCONSOLE_PORT?= 0x3f8 | BOOT_COMCONSOLE_PORT?= 0x3f8 | ||||
BOOT_COMCONSOLE_SPEED?= 9600 | BOOT_COMCONSOLE_SPEED?= 9600 | ||||
B2SIOFMT?= 0x3 | B2SIOFMT?= 0x3 | ||||
BOOT_COMCONSOLE_RESET_TERM_CMD?= "\ec" | |||||
REL1= 0x700 | REL1= 0x700 | ||||
ORG1= 0x7c00 | ORG1= 0x7c00 | ||||
ORG2= 0x2000 | ORG2= 0x2000 | ||||
# Decide level of UFS support. | # Decide level of UFS support. | ||||
BOOT2_UFS?= UFS1_AND_UFS2 | BOOT2_UFS?= UFS1_AND_UFS2 | ||||
#BOOT2_UFS?= UFS2_ONLY | #BOOT2_UFS?= UFS2_ONLY | ||||
#BOOT2_UFS?= UFS1_ONLY | #BOOT2_UFS?= UFS1_ONLY | ||||
CFLAGS+=-fomit-frame-pointer \ | CFLAGS+=-fomit-frame-pointer \ | ||||
-mrtd \ | -mrtd \ | ||||
-mregparm=3 \ | -mregparm=3 \ | ||||
-D${BOOT2_UFS} \ | -D${BOOT2_UFS} \ | ||||
-DFLAGS=${BOOT_BOOT1_FLAGS} \ | -DFLAGS=${BOOT_BOOT1_FLAGS} \ | ||||
-DSIOPRT=${BOOT_COMCONSOLE_PORT} \ | -DSIOPRT=${BOOT_COMCONSOLE_PORT} \ | ||||
-DSIOFMT=${B2SIOFMT} \ | -DSIOFMT=${B2SIOFMT} \ | ||||
-DSIOSPD=${BOOT_COMCONSOLE_SPEED} \ | -DSIOSPD=${BOOT_COMCONSOLE_SPEED} \ | ||||
-DSIORST=\"${BOOT_COMCONSOLE_RESET_TERM_CMD}\" \ | |||||
-I${LDRSRC} \ | -I${LDRSRC} \ | ||||
-Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align \ | -Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align \ | ||||
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ | -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ | ||||
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ | -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ | ||||
-Winline | -Winline | ||||
CFLAGS.gcc+= -Os \ | CFLAGS.gcc+= -Os \ | ||||
-fno-asynchronous-unwind-tables \ | -fno-asynchronous-unwind-tables \ | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |