aboutsummaryrefslogblamecommitdiff
path: root/share/mk/local.sys.machine.mk
blob: 5e40dfe805f92b9a059ba4e190e30cca3a34da50 (plain) (tree)
1
2
3
4
5
6
7
8
9
 
                               
 
                                        


                                                        
                                     
 
                                                 













                                                                                 

.-include <site.sys.machine.mk>

PSEUDO_MACHINE_LIST?= common host host32
TARGET_MACHINE_LIST?= amd64 arm arm64 i386 powerpc riscv

MACHINE_ARCH_host?= ${_HOST_ARCH}
MACHINE_ARCH_host32?= ${_HOST_ARCH32}

MACHINE_ARCH_LIST_arm?= armv7 ${EXTRA_ARCHES_arm}
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