Date: Fri, 20 Dec 2019 05:18:17 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520468 - in head/sysutils: . cpuid2cpuflags Message-ID: <201912200518.xBK5IHPq022253@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Fri Dec 20 05:18:17 2019 New Revision: 520468 URL: https://svnweb.freebsd.org/changeset/ports/520468 Log: 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 Added: head/sysutils/cpuid2cpuflags/ head/sysutils/cpuid2cpuflags/Makefile (contents, props changed) head/sysutils/cpuid2cpuflags/distinfo (contents, props changed) head/sysutils/cpuid2cpuflags/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Fri Dec 20 05:15:15 2019 (r520467) +++ head/sysutils/Makefile Fri Dec 20 05:18:17 2019 (r520468) @@ -204,6 +204,7 @@ SUBDIR += cpu-x SUBDIR += cpuburn SUBDIR += cpuid + SUBDIR += cpuid2cpuflags SUBDIR += cpulimit SUBDIR += cpupdate SUBDIR += cramfs Added: head/sysutils/cpuid2cpuflags/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/cpuid2cpuflags/Makefile Fri Dec 20 05:18:17 2019 (r520468) @@ -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> Added: head/sysutils/cpuid2cpuflags/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/cpuid2cpuflags/distinfo Fri Dec 20 05:18:17 2019 (r520468) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568752858 +SHA256 (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = c768a3a8e8028b35e9695fceef2cdbc9f8c5e2dcfd43349d9326884fb25d1faf +SIZE (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = 10065 Added: head/sysutils/cpuid2cpuflags/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/cpuid2cpuflags/pkg-descr Fri Dec 20 05:18:17 2019 (r520468) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912200518.xBK5IHPq022253>