Changeset View
Changeset View
Standalone View
Standalone View
stand/defs.mk
| Show First 20 Lines • Show All 114 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 | ||||
| # Ensure PowerPC64 and PowerPC64LE boot loaders are compiled as 32 bit | # Ensure PowerPC64 and PowerPC64LE boot loaders are compiled as 32 bit. | ||||
| # and in big endian. | # PowerPC64LE boot loaders are 32-bit little-endian. | ||||
| .if ${MACHINE_ARCH:Mpowerpc64*} != "" | .if ${MACHINE_ARCH} == "powerpc64" | ||||
| CFLAGS+= -m32 -mcpu=powerpc -mbig-endian | CFLAGS+= -m32 -mcpu=powerpc -mbig-endian | ||||
| .elif ${MACHINE_ARCH} == "powerpc64le" | |||||
| CFLAGS+= -m32 -mcpu=powerpc -mlittle-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 123 Lines • Show Last 20 Lines | |||||