summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r--sys/boot/i386/gptboot/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index 273d20a..ed3f9c2 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -20,16 +20,15 @@ BOOT2_UFS?= UFS1_AND_UFS2
#BOOT2_UFS?= UFS2_ONLY
#BOOT2_UFS?= UFS1_ONLY
-AFLAGS+=--defsym FLAGS=${B1FLAGS} \
- --defsym SIOPRT=${BOOT_COMCONSOLE_PORT} \
- --defsym SIOFMT=${B2SIOFMT} \
- --defsym SIOSPD=${BOOT_COMCONSOLE_SPEED}
-
CFLAGS= -Os \
-fno-guess-branch-probability -fomit-frame-pointer\
-mno-align-long-strings \
-mrtd \
-D${BOOT2_UFS} \
+ -DFLAGS=${B1FLAGS} \
+ -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
+ -DSIOFMT=${B2SIOFMT} \
+ -DSIOSPD=${BOOT_COMCONSOLE_SPEED} \
-I${.CURDIR}/../../common \
-I${.CURDIR}/../btx/lib -I. \
-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
@@ -54,10 +53,6 @@ boot1: boot1.out
boot1.out: boot1.o
${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
-boot1.o: boot1.s
- ${CPP} ${CFLAGS} ${.CURDIR}/boot1.s | \
- ${AS} ${AFLAGS} -o ${.TARGET}
-
CLEANFILES+= boot2 boot2.ld boot2.ldr boot2.bin boot2.out boot2.o \
boot2.s boot2.s.tmp boot2.h sio.o
OpenPOWER on IntegriCloud