Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 10:26:52 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Warner Losh <imp@bsdimp.com>, Current FreeBSD <freebsd-current@freebsd.org>
Cc:        FreeBSD ARM List <freebsd-arm@freebsd.org>
Subject:   sys/modules/Makefile and  MACHINE_ARCH vs arm64 (in use) vs aarch64 (not in use) VS. man arch; also COMPAT_FREEBSD32_ENABLED use
Message-ID:  <B8EB365B-414B-4932-A6F0-7A52733607C5@yahoo.com>
References:  <B8EB365B-414B-4932-A6F0-7A52733607C5.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
man arch reports:

           MACHINE       MACHINE_CPUARCH       MACHINE_ARCH
           arm64         aarch64               aarch64
. . .
           arm           arm                   armv6, armv7

So I'd not expect arm64 in MACHINE_ARCH . But
sys/modules/Makefile has (from a grep for MACHINE_ARCH):

.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "arm64"
.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "arm64" || =
${MACHINE_ARCH:Mpowerpc64*}


Another issue may be that COMPAT_FREEBSD32_ENABLED is only
put to use in the Makefile for MACHINE_CPUARCH being i386
or amd64 :

.if ${MACHINE_CPUARCH} =3D=3D "i386" || ${MACHINE_CPUARCH} =3D=3D =
"amd64"
_agp=3D           agp
.if ${MACHINE_CPUARCH} =3D=3D "i386" || !empty(COMPAT_FREEBSD32_ENABLED)
. . .




=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8EB365B-414B-4932-A6F0-7A52733607C5>