summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/Makefile.inc4
-rw-r--r--sys/boot/i386/boot2/Makefile6
-rw-r--r--sys/boot/i386/gptboot/Makefile6
-rw-r--r--sys/boot/i386/libi386/Makefile2
-rw-r--r--sys/boot/i386/loader/Makefile2
5 files changed, 6 insertions, 14 deletions
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc
index 5bf548d..6bd4f31 100644
--- a/sys/boot/i386/Makefile.inc
+++ b/sys/boot/i386/Makefile.inc
@@ -8,10 +8,6 @@ LOADER_ADDRESS?=0x200000
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2
.if ${MACHINE_ARCH} == "amd64"
-.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
-.endif
-
-.if defined(REALLY_AMD64)
CFLAGS+= -m32
LDFLAGS+= -m elf_i386_fbsd
AFLAGS+= --32
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 66f1352..364c21f 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -93,13 +93,11 @@ boot2.h: boot1.out
ORG1=`printf "%d" ${ORG1}` \
REL1=`printf "%d" ${REL1}` > ${.TARGET}
-.if defined(REALLY_AMD64)
+.if ${MACHINE_ARCH} == "amd64"
boot2.s: machine
-
+CLEANFILES+= machine
machine:
ln -sf ${.CURDIR}/../../../i386/include machine
-
-CLEANFILES+= machine
.endif
.include <bsd.prog.mk>
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index 66f1352..364c21f 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -93,13 +93,11 @@ boot2.h: boot1.out
ORG1=`printf "%d" ${ORG1}` \
REL1=`printf "%d" ${REL1}` > ${.TARGET}
-.if defined(REALLY_AMD64)
+.if ${MACHINE_ARCH} == "amd64"
boot2.s: machine
-
+CLEANFILES+= machine
machine:
ln -sf ${.CURDIR}/../../../i386/include machine
-
-CLEANFILES+= machine
.endif
.include <bsd.prog.mk>
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index 2ff8f0d..253e4e5 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -33,7 +33,7 @@ CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
.include <bsd.lib.mk>
-.if defined(REALLY_AMD64)
+.if ${MACHINE_ARCH} == "amd64"
${OBJS}: machine
CLEANFILES+= machine
machine:
diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile
index 4f930f6..4f5f3f2 100644
--- a/sys/boot/i386/loader/Makefile
+++ b/sys/boot/i386/loader/Makefile
@@ -96,7 +96,7 @@ loader.sym: ${OBJS} ${LIBFICL} ${LIBI386} ${LIBSTAND}
${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} \
${LIBFICL} ${LIBI386} ${LIBSTAND}
-.if defined(REALLY_AMD64)
+.if ${MACHINE_ARCH} == "amd64"
${OBJS}: machine
CLEANFILES+= machine
machine:
OpenPOWER on IntegriCloud