2023-05-13 15:15:49 +00:00
|
|
|
|
|
|
|
.-include <local.sys.machine.mk>
|
|
|
|
|
|
|
|
PSEUDO_MACHINE_LIST?= common host
|
|
|
|
TARGET_MACHINE_LIST?= amd64 arm arm64 i386 powerpc riscv
|
|
|
|
|
|
|
|
MACHINE_ARCH_host?= ${_HOST_ARCH}
|
|
|
|
|
2023-07-28 04:21:44 +00:00
|
|
|
MACHINE_ARCH_LIST_arm?= armv7 ${EXTRA_ARCHES_arm}
|
2023-05-13 15:15:49 +00:00
|
|
|
MACHINE_ARCH_LIST_arm64?= aarch64
|
|
|
|
MACHINE_ARCH_LIST_powerpc?= powerpc powerpc64 powerpc64le ${EXTRA_ARCHES_powerpc}
|
|
|
|
MACHINE_ARCH_LIST_riscv?= riscv64
|
|
|
|
|
|
|
|
.for m in ${TARGET_MACHINE_LIST}
|
|
|
|
MACHINE_ARCH_LIST_$m?= $m
|
|
|
|
MACHINE_ARCH_$m?= ${MACHINE_ARCH_LIST_$m:[1]}
|
|
|
|
# for backwards comatability
|
|
|
|
MACHINE_ARCH.$m?= ${MACHINE_ARCH_$m}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if empty(MACHINE_ARCH)
|
|
|
|
MACHINE_ARCH:= ${MACHINE_ARCH_${MACHINE}}
|
|
|
|
.endif
|