Re: Please review wip/bogomips

Stefan Schaeckeler <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.review
Message-ID <[email protected]>
Hello

> > Hi all,
> >
> > Please review wip/bogomips. Comments are welcome.
> >
> > BogoMips (from "bogus" and MIPS) is an unscientific measurement of CPU
> > speed made by the Linux kernel when it boots, to calibrate an internal
> > busy-loop. An often-quoted definition of the term is "the number of
> > million times per second a processor can do absolutely nothing."
> >
> > For further information, see the BogoMips FAQ at
> > http://tldp.org/HOWTO/BogoMips/
> 
> PKG_SUPPORTED_OPTIONS must be defined for all cases,
> or you can see error messages on neither i386 nor x86_64.

I adapted my code from security/gnupg:

options.mk: ----------------------------------------------------------------

.if ${MACHINE_ARCH:Mi386}
PKG_SUPPORTED_OPTIONS+=	i586-optimized
.endif

:
:
:

.if !empty(PKG_OPTIONS:Mi586-optimized)
# use assembler routines optimized for, and only for!, i586
ONLY_FOR_PLATFORM=	*-*-i386
MACHINE_GNU_ARCH=	i586
.endif
----------------------------------------------------------------------------


I "PKG_SUPPORT" now in all cases. Further reviews and comments are welcome.

Best, Stefan Schaeckeler

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.