MF tbemd: Minor tweaks, prefer MACHINE_CPUARCH generally to MACHINE_ARCH
This commit is contained in:
parent
b0b888fbfe
commit
39fcadc28d
@ -9,7 +9,7 @@ CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
|
||||
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
|
||||
LDFLAGS+= -nostdlib
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
CFLAGS+= -m32 -march=i386
|
||||
LDFLAGS+= -m elf_i386_fbsd
|
||||
AFLAGS+= --32
|
||||
|
@ -99,7 +99,7 @@ boot2.h: boot1.out
|
||||
ORG1=`printf "%d" ${ORG1}` \
|
||||
REL1=`printf "%d" ${REL1}` > ${.TARGET}
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend boot2.s: machine
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
|
@ -67,7 +67,7 @@ gptboot.out: ${BTXCRT} gptboot.o sio.o
|
||||
|
||||
gptboot.o: ${.CURDIR}/../../common/ufsread.c
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend gptboot.o: machine
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
|
@ -64,7 +64,7 @@ gptzfsboot.out: ${BTXCRT} zfsboot.o sio.o
|
||||
|
||||
zfsboot.o: ${.CURDIR}/../../zfs/zfsimpl.c
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend zfsboot.o: machine
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
|
@ -16,7 +16,7 @@ CFLAGS+= -I${.CURDIR}/../libi386
|
||||
|
||||
CFLAGS+= -Wformat -Wall
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
ln -sf ${.CURDIR}/../../../i386/include machine
|
||||
@ -24,7 +24,7 @@ machine:
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend ${OBJS}: machine
|
||||
.endif
|
||||
|
||||
|
@ -53,7 +53,7 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
|
||||
# the location of libstand
|
||||
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
ln -sf ${.CURDIR}/../../../i386/include machine
|
||||
@ -61,6 +61,6 @@ machine:
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend ${OBJS}: machine
|
||||
.endif
|
||||
|
@ -119,7 +119,7 @@ LDADD= ${LIBFICL} ${LIBFIREWIRE} ${LIBZFS} ${LIBI386} ${LIBSTAND}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend ${OBJS}: machine
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
|
@ -98,7 +98,7 @@ zfsboot.h: zfsldr.out
|
||||
ORG1=`printf "%d" ${ORG1}` \
|
||||
REL1=`printf "%d" ${REL1}` > ${.TARGET}
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
beforedepend zfsboot.s: machine
|
||||
CLEANFILES+= machine
|
||||
machine:
|
||||
|
Loading…
Reference in New Issue
Block a user