summaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorBrandon Bergren <bdragon@FreeBSD.org>2020-09-22 23:49:30 +0000
committerBrandon Bergren <bdragon@FreeBSD.org>2020-09-22 23:49:30 +0000
commitb75abea4d0879c9e650928edf74ed90a0a790dfe (patch)
tree37b087b7c8c22cfc5be34efa37d1ab0e68057280 /stand
parent2be2e7e549294af3efd0832a7d8970ad07994be0 (diff)
downloadsrc-test-b75abea4d0879c9e650928edf74ed90a0a790dfe.tar.gz
src-test-b75abea4d0879c9e650928edf74ed90a0a790dfe.zip
[PowerPC64LE] Set up powerpc.powerpc64le architecture
This is the initial set up for PowerPC64LE. The current plan is for this arch to remain experimental for FreeBSD 13. This started as a weekend learning project for me and kinda snowballed from there. (More to follow momentarily.) Reviewed by: imp (earlier version), emaste Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D26399
Notes
Notes: svn path=/head/; revision=366032
Diffstat (limited to 'stand')
-rw-r--r--stand/defs.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/stand/defs.mk b/stand/defs.mk
index 06f582d568f6a..54b7a7250c486 100644
--- a/stand/defs.mk
+++ b/stand/defs.mk
@@ -105,10 +105,10 @@ CFLAGS+= -DLOADER_DISK_SUPPORT
# Machine specific flags for all builds here
-# All PowerPC builds are 32 bit. We have no 64-bit loaders on powerpc
-# or powerpc64.
-.if ${MACHINE_ARCH} == "powerpc64"
-CFLAGS+= -m32 -mcpu=powerpc
+# Ensure PowerPC64 and PowerPC64LE boot loaders are compiled as 32 bit
+# and in big endian.
+.if ${MACHINE_ARCH:Mpowerpc64*} != ""
+CFLAGS+= -m32 -mcpu=powerpc -mbig-endian
.endif
# For amd64, there's a bit of mixed bag. Some of the tree (i386, lib*32) is