# $FreeBSD$
# A value of 0x80 enables LBA support.
# 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