Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2015 11:05:22 -0500
From:      Ed Maste <emaste@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: FreeBSD/arm64 MACHINE/MACHINE_ARCH identification
Message-ID:  <CAPyFy2ATn5xgsvePCdvzqnyBS45izVHdL8yLaQQoKeJenSv9tg@mail.gmail.com>
In-Reply-To: <71E9C1B9-F819-420B-90A5-A36D58E71817@bsdimp.com>
References:  <CAPyFy2A=Ev5gdYPKgEE0LS3-1sY%2BXmkZA7VCe71E6Fmbb=vMRw@mail.gmail.com> <607BF592-A09B-4DB4-9872-C9E63066AB57@bsdimp.com> <CAPyFy2Bgrap3TkFNuChyMC0Vwbjdt5FVW0ey03XtkK1iwNL1KQ@mail.gmail.com> <71E9C1B9-F819-420B-90A5-A36D58E71817@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12 February 2015 at 01:54, Warner Losh <imp@bsdimp.com> wrote:
>
> They moved the sources in the kernel from aarch64 to arm64. I=E2=80=99m s=
ure.

Oh - I don't care what directory Linux puts the kernel source in, only
what's reported by uname.  As far as I can tell that has always been
aarch64 for uname -m.

> config.guess uses uname -p:
>
>     *:FreeBSD:*:*)
>         UNAME_PROCESSOR=3D`/usr/bin/uname -p`
>         echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed=
 -e 's/[-(].*//'`
>         exit ;;

Ah, yes - it looks like this has changed repeatedly over time, and I
must have looked at a rather outdated config.guess. It's clear from
this snippet though that this is a special case for FreeBSD, and most
other cases rely on uname -m.  I also found a few other configure-like
scripts that only use uname -m.

> so uname -p must be =E2=80=98aarch64=E2=80=99 since that=E2=80=99s what i=
s expected.

Yes, I agree this is necessary.

> uname -m must
> be arm64 unless we move our kernel implementation to sys/aarch64 from the
> sys/arm64 it is now.

We might decide that "uname -m" has to be aarch64 to match
expectations of third-party software set by other operating systems.
If that in turn means we have to move the kernel source, so be it.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2ATn5xgsvePCdvzqnyBS45izVHdL8yLaQQoKeJenSv9tg>