mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix amd64 build and re-enable gptzfsboot.
This commit is contained in:
parent
bcfbcdca9c
commit
ebd4055a33
3 changed files with 16 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
SUBDIR= mbr pmbr boot0 boot0sio btx boot2 cdboot gptboot zfsboot \
|
||||
kgzldr libi386 libfirewire loader
|
||||
gptzfsboot kgzldr libi386 libfirewire loader
|
||||
|
||||
# special boot programs, 'self-extracting boot2+loader'
|
||||
SUBDIR+= pxeldr
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ gptzfsboot.out: ${BTXCRT} zfsboot.o sio.o
|
|||
zfsboot.o: ${.CURDIR}/../../zfs/zfsimpl.c
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
beforedepend gptzfsboot.o: machine
|
||||
beforedepend zfsboot.o: machine
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
ln -sf ${.CURDIR}/../../../i386/include machine
|
||||
|
|
|
|||
|
|
@ -9,10 +9,20 @@ CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
|
|||
CFLAGS+= -I${.CURDIR}/../../../lib/libstand
|
||||
CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
|
||||
|
||||
# XXX need arch-specific bootstrap CFLAGS here
|
||||
#
|
||||
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
|
||||
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
|
||||
CFLAGS+= -ffreestanding
|
||||
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
||||
CFLAGS+= -mpreferred-stack-boundary=2
|
||||
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
CFLAGS+= -mno-sse3
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
|
||||
CFLAGS+= -msoft-float
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
CFLAGS+= -m32 -march=i386
|
||||
.endif
|
||||
|
||||
CFLAGS+= -Wformat -Wall
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue