pkgsrc-WIP-review archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Please review wip/bogomips



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® 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
_______________________________________________
pkgsrc-wip-review mailing list
pkgsrc-wip-review%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-review


Home | Main Index | Thread Index | Old Index