Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2020 20:46:40 -0600
From:      Clay Daniels <clay.daniels.jr@gmail.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   uname -m for an Intel machine running FreeBSD
Message-ID:  <CAGLDxTVsB9EP-mHq1wQ-dHE6EAQanzsJAvtt7ByKpJrUKixcYw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm working on building an efitool program written and used in various
linux flavors that I would like to see work on FreeBSD.

from: Make.rules
...
"ARCH = $(shell uname -m | sed 's/i.86/ia32/;s/arm.*/arm/')
ifeq ($(ARCH),ia32)
ARCH3264 = -m32
else ifeq ($(ARCH),x86_64)
ARCH3264 =
else ifeq ($(ARCH),aarch64)
ARCH3264 =
else ifeq ($(ARCH),arm)
ARCH3264 =
else
$(error unknown architecture $(ARCH))
endif"
...

On my newer Ryzen 7 machine:
clay@bsd13:~ % uname
FreeBSD
clay@bsd13:~ % uname -m
amd64
clay@bsd13:~ % uname -a
FreeBSD bsd13 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r357002: Thu Jan 23
04:35:00 UTC 2020
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
 amd64
clay@bsd13:~ %

On my older AMD E2 or E3 running Kali Linux:
root@kali:~# uname
Linux
root@kali:~# uname -a
Linux kali 5.3.0-kali2-amd64 #1 SMP Debian 5.3.9-3kali1 (2019-11-20) x86_64
GNU/Linux
root@kali:~# uname -m
x86_64
root@kali:~#

I think I can manage  the code, except I don't have an Intel machine to
know what "name" uname -m returns on a Intel box running FreeBSD.

Can someone with an Intel machine tell me what uname -m returns?

Thanks.
Clay Daniels



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