The program attempts to obtain the identification and capabilities

of the currently used CPU, and print the matching set of CPU_FLAGS_*
flags for Gentoo Linux, but it could be useful for FreeBSD as well.

WWW: https://github.com/mgorny/cpuid2cpuflags
This commit is contained in:
Alexey Dokuchaev 2019-12-20 05:18:17 +00:00
parent 8938e155bd
commit d419cf37c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520468
4 changed files with 47 additions and 0 deletions

View File

@ -204,6 +204,7 @@
SUBDIR += cpu-x
SUBDIR += cpuburn
SUBDIR += cpuid
SUBDIR += cpuid2cpuflags
SUBDIR += cpulimit
SUBDIR += cpupdate
SUBDIR += cramfs

View File

@ -0,0 +1,28 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= cpuid2cpuflags
PORTVERSION= 8
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= danfe@FreeBSD.org
COMMENT= Tool to generate CPU_FLAGS_* for your CPU
LICENSE= BSD2CLAUSE
USES= autoreconf
USE_GITHUB= yes
GH_ACCOUNT= mgorny
GNU_CONFIGURE= yes
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1568752858
SHA256 (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = c768a3a8e8028b35e9695fceef2cdbc9f8c5e2dcfd43349d9326884fb25d1faf
SIZE (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = 10065

View File

@ -0,0 +1,15 @@
The program attempts to obtain the identification and capabilities
of the currently used CPU, and print the matching set of CPU_FLAGS_*
flags for Gentoo Linux, but it could be useful for FreeBSD as well.
The output format is compatible both with Portage (package.use) and
Paludis (use.conf/options.conf).
On x86 platforms, the program issues the CPUID instruction to obtain
processor capabilities.
On ARM platforms, the userspace processes are not allowed to obtain
processor information directly. Instead, the program is relying on
kernel identification of the CPU provided via the system interfaces.
WWW: https://github.com/mgorny/cpuid2cpuflags