Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/gptboot/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <bsd.init.mk> | .include <bsd.init.mk> | ||||
.PATH: ${BOOTSRC}/i386/boot2 ${BOOTSRC}/i386/common ${SASRC} | .PATH: ${BOOTSRC}/i386/boot2 ${BOOTSRC}/i386/common ${SASRC} | ||||
FILES= gptboot | FILES= gptboot | ||||
MAN= gptboot.8 | MAN= gptboot.8 | ||||
BOOT_COMCONSOLE_PORT?= 0x3f8 | BOOT_COMCONSOLE_PORT?= 0x3f8 | ||||
BOOT_COMCONSOLE_SPEED?= 9600 | BOOT_COMCONSOLE_SPEED?= 9600 | ||||
B2SIOFMT?= 0x3 | B2SIOFMT?= 0x3 | ||||
imp: Put this in stand/def.mk. No need to repeat it everywehere. | |||||
REL1= 0x700 | REL1= 0x700 | ||||
ORG1= 0x7c00 | ORG1= 0x7c00 | ||||
ORG2= 0x0 | ORG2= 0x0 | ||||
# Decide level of UFS support. | # Decide level of UFS support. | ||||
GPTBOOT_UFS?= UFS1_AND_UFS2 | GPTBOOT_UFS?= UFS1_AND_UFS2 | ||||
#GPTBOOT_UFS?= UFS2_ONLY | #GPTBOOT_UFS?= UFS2_ONLY | ||||
#GPTBOOT_UFS?= UFS1_ONLY | #GPTBOOT_UFS?= UFS1_ONLY | ||||
CFLAGS+=-DBOOTPROG=\"gptboot\" \ | CFLAGS+=-DBOOTPROG=\"gptboot\" \ | ||||
-O1 \ | -O1 \ | ||||
-DGPT \ | -DGPT \ | ||||
-D${GPTBOOT_UFS} \ | -D${GPTBOOT_UFS} \ | ||||
-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} \ | ||||
-I${BOOTSRC}/i386/common \ | -I${BOOTSRC}/i386/common \ | ||||
-I${BOOTSRC}/i386/boot2 \ | -I${BOOTSRC}/i386/boot2 \ | ||||
-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 \ | ||||
-Wno-pointer-sign | -Wno-pointer-sign | ||||
Show All 28 Lines |
Put this in stand/def.mk. No need to repeat it everywehere.