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:
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
|
@ -204,6 +204,7 @@
|
||||||
SUBDIR += cpu-x
|
SUBDIR += cpu-x
|
||||||
SUBDIR += cpuburn
|
SUBDIR += cpuburn
|
||||||
SUBDIR += cpuid
|
SUBDIR += cpuid
|
||||||
|
SUBDIR += cpuid2cpuflags
|
||||||
SUBDIR += cpulimit
|
SUBDIR += cpulimit
|
||||||
SUBDIR += cpupdate
|
SUBDIR += cpupdate
|
||||||
SUBDIR += cramfs
|
SUBDIR += cramfs
|
||||||
|
|
28
sysutils/cpuid2cpuflags/Makefile
Normal file
28
sysutils/cpuid2cpuflags/Makefile
Normal 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>
|
3
sysutils/cpuid2cpuflags/distinfo
Normal file
3
sysutils/cpuid2cpuflags/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1568752858
|
||||||
|
SHA256 (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = c768a3a8e8028b35e9695fceef2cdbc9f8c5e2dcfd43349d9326884fb25d1faf
|
||||||
|
SIZE (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = 10065
|
15
sysutils/cpuid2cpuflags/pkg-descr
Normal file
15
sysutils/cpuid2cpuflags/pkg-descr
Normal 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
|
Loading…
Reference in a new issue