1 # SUBARCH tells the usermode build what the un 1 # SUBARCH tells the usermode build what the underlying arch is. That is set 2 # first, and if a usermode build is happening, 2 # first, and if a usermode build is happening, the "ARCH=um" on the command 3 # line overrides the setting of ARCH below. I 3 # line overrides the setting of ARCH below. If a native build is happening, 4 # then ARCH is assigned, getting whatever valu 4 # then ARCH is assigned, getting whatever value it gets normally, and 5 # SUBARCH is subsequently ignored. 5 # SUBARCH is subsequently ignored. 6 6 7 SUBARCH := $(shell uname -m | sed -e s/i.86/x8 7 SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ 8 -e s/sun4u/s 8 -e s/sun4u/sparc64/ \ 9 -e /^arm64$$ !! 9 -e s/arm.*/arm/ -e s/sa110/arm/ \ 10 -e s/s390x/s !! 10 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 11 -e s/ppc.*/p 11 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 12 -e s/sh[234] 12 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ 13 -e s/riscv.* !! 13 -e s/riscv.*/riscv/)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.