Makefile revision 199767f8919635c4928607450d9e0abb932109ce
# $FreeBSD$
# A value of 0x80 enables LBA support.
BOOT_BOOT1_FLAGS?= 0x80
BOOT_COMCONSOLE_PORT?= 0x3f8
BOOT_COMCONSOLE_SPEED?= 9600
B2SIOFMT?= 0x3
REL1= 0x700
ORG1= 0x7c00
ORG2= 0x2000
# Decide level of UFS support.
#BOOT2_UFS?= UFS2_ONLY
#BOOT2_UFS?= UFS1_ONLY
-mrtd \
-mregparm=3 \
-DUSE_XREAD \
-D${BOOT2_UFS} \
-DFLAGS=${BOOT_BOOT1_FLAGS} \
-DSIOPRT=${BOOT_COMCONSOLE_PORT} \
-DSIOSPD=${BOOT_COMCONSOLE_SPEED} \
CFLAGS.gcc+= -Os \
# Pick up ../Makefile.inc early.
rm -f boot2.s.tmp
{ x = $$1 - ORG1; \
printf("#define XREADORG %#x\n", REL1 + x) }' \
.if ${MACHINE_CPUARCH} == "amd64"
# XXX: clang integrated-as doesn't grok .codeNN directives yet