mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
1fdcc5e5c0
RISC-V is a new ISA designed to support computer research and education, and is now become a standard open architecture for industry implementations. This is a minimal set of changes required to run 'make kernel-toolchain' using external (GNU) toolchain. The FreeBSD/RISC-V project home: https://wiki.freebsd.org/riscv. Reviewed by: andrew, bdrewery, emaste, imp Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D4445
17 lines
532 B
Makefile
17 lines
532 B
Makefile
# $FreeBSD$
|
|
|
|
.if ${MACHINE_ARCH} == "aarch64" || \
|
|
${MACHINE_ARCH} == "amd64" || \
|
|
${MACHINE_ARCH} == "i386" || \
|
|
(${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} == "") || \
|
|
${MACHINE_CPUARCH} == "riscv" || \
|
|
${MACHINE_ARCH:Mmips*el} != ""
|
|
TARGET_ENDIANNESS= 1234
|
|
.elif ${MACHINE_ARCH} == "powerpc" || \
|
|
${MACHINE_ARCH} == "powerpc64" || \
|
|
${MACHINE_ARCH} == "sparc64" || \
|
|
(${MACHINE} == "arm" && ${MACHINE_ARCH:Marm*eb*} != "") || \
|
|
${MACHINE_ARCH:Mmips*} != ""
|
|
TARGET_ENDIANNESS= 4321
|
|
.endif
|