Changeset View
Changeset View
Standalone View
Standalone View
head/stand/defs.mk
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
# also uses it. It's part of loader, but isn't a loader so we can't | # also uses it. It's part of loader, but isn't a loader so we can't | ||||
# just include loader.mk | # just include loader.mk | ||||
.if ${LOADER_DISK_SUPPORT:Uyes} == "yes" | .if ${LOADER_DISK_SUPPORT:Uyes} == "yes" | ||||
CFLAGS+= -DLOADER_DISK_SUPPORT | CFLAGS+= -DLOADER_DISK_SUPPORT | ||||
.endif | .endif | ||||
# Machine specific flags for all builds here | # Machine specific flags for all builds here | ||||
# All PowerPC builds are 32 bit. We have no 64-bit loaders on powerpc | # Ensure PowerPC64 and PowerPC64LE boot loaders are compiled as 32 bit | ||||
# or powerpc64. | # and in big endian. | ||||
.if ${MACHINE_ARCH} == "powerpc64" | .if ${MACHINE_ARCH:Mpowerpc64*} != "" | ||||
CFLAGS+= -m32 -mcpu=powerpc | CFLAGS+= -m32 -mcpu=powerpc -mbig-endian | ||||
.endif | .endif | ||||
# For amd64, there's a bit of mixed bag. Some of the tree (i386, lib*32) is | # For amd64, there's a bit of mixed bag. Some of the tree (i386, lib*32) is | ||||
# build 32-bit and some 64-bit (lib*, efi). Centralize all the 32-bit magic here | # build 32-bit and some 64-bit (lib*, efi). Centralize all the 32-bit magic here | ||||
# and activate it when DO32 is explicitly defined to be 1. | # and activate it when DO32 is explicitly defined to be 1. | ||||
.if ${MACHINE_ARCH} == "amd64" && ${DO32:U0} == 1 | .if ${MACHINE_ARCH} == "amd64" && ${DO32:U0} == 1 | ||||
CFLAGS+= -m32 | CFLAGS+= -m32 | ||||
# LD_FLAGS is passed directly to ${LD}, not via ${CC}: | # LD_FLAGS is passed directly to ${LD}, not via ${CC}: | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |