Date: Tue, 25 Aug 2020 20:17:36 +0000 From: Brooks Davis <brooks@freebsd.org> To: Brandon Bergren <bdragon@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r364781 - in head/sys: conf modules/zfs Message-ID: <20200825201736.GC43898@spindle.one-eyed-alien.net> In-Reply-To: <202008251904.07PJ4srL068863@repo.freebsd.org> References: <202008251904.07PJ4srL068863@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--R3G7APHDIzY6R/pk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 25, 2020 at 07:04:54PM +0000, Brandon Bergren wrote: > Author: bdragon > Date: Tue Aug 25 19:04:54 2020 > New Revision: 364781 > URL: https://svnweb.freebsd.org/changeset/base/364781 >=20 > Log: > [PowerPC] More preemptive powerpcspe ZFS build fixes > =20 > I went through the merge and found the rest of the instances where > ${MACHINE_ARCH} =3D=3D "powerpc" was being used to detect 32-bit and ad= justed > the rest of the instances to also check for powerpcspe. > =20 > mips32* will probably want to do the same. > =20 > Sponsored by: Tag1 Consulting, Inc. >=20 > Modified: > head/sys/conf/kern.pre.mk > head/sys/modules/zfs/Makefile >=20 > Modified: head/sys/conf/kern.pre.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/conf/kern.pre.mk Tue Aug 25 18:54:10 2020 (r364780) > +++ head/sys/conf/kern.pre.mk Tue Aug 25 19:04:54 2020 (r364781) > @@ -257,7 +257,7 @@ ZFS_CFLAGS+=3D -DHAVE_AVX2 -DHAVE_AVX -D__x86_64 -DHA= VE_ > .endif > =20 > .if ${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "powerpc" ||= \ > - ${MACHINE_ARCH} =3D=3D "arm" > + ${MACHINE_ARCH} =3D=3D "powerpcspe" || ${MACHINE_ARCH} =3D=3D "arm" > ZFS_CFLAGS+=3D -DBITS_PER_LONG=3D32 > .else > ZFS_CFLAGS+=3D -DBITS_PER_LONG=3D64 In CheriBSD we've added a MACHINE_ABI variable that could be used to simplify this mess of checks. https://github.com/CTSRD-CHERI/cheribsd/blob/5ee735e5f8ef7268731359a2d8a9a8= 218df2d23f/share/mk/bsd.cpu.mk#L478 As currently implemented you'd use: =2Eif ${MACHINE_ABI:Mptr64} There's be a argument for adding long32 and long64 for to avoid conflating long and pointer size. -- Brooks --R3G7APHDIzY6R/pk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJfRXHfAAoJEKzQXbSebgfAgJIH/Ay1jbdHWG0MtmUz2J/PdO38 x3Jl77+J857l3zv26JUHer+CgzDeFH0Z7iQPml9v5KgHyh6Ec2+Qra+wvoQGPywq /1QKGHPPiTLDSOIk34IMK3ukr19SH73sdFbFJIuA+3wwmIJCsBRk6NuBlkdxQhV/ ZBCoq23kXPxWBBkPbZmakBRX1ELzlfgrJGKkpnAGwbkyEPLkqU6fSWrt4a+CRhrx ehejZgPR4bb7YUGabmgT4OH00+KFWap4e0bITzGRFqVA3ehdAsxkJUSLG1BrSWX7 SqQxG2xzbrbsItkfHbrvPMlgzCFNkzK5mMv1ISCLuPg6XPGTdh1GBNkt2DrbRr0= =ABXN -----END PGP SIGNATURE----- --R3G7APHDIzY6R/pk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200825201736.GC43898>