enabling cpu "features" in custom kernel

Dimitry Andric dim at FreeBSD.org
Fri Jun 17 10:20:33 UTC 2016


On 16 Jun 2016, at 14:35, Da Rock <freebsd-hackers at herveybayaustralia.com.au> wrote:
> 
> I'm just trying to get my head around kernel building and clang.
> 
> If I want to enable certain features available on my cpu which are available by clang, how do I enable them? As I understand it using ccflags is a no no (ie /etc/make.conf), so how do I go about enabling them? I seem to be missing something in my research here...

You can set CPUTYPE in /etc/make.conf, for example:

CPUTYPE?=broadwell

then it will be automatically picked up in the correct places during
buildworld, or during ports building.

See also make.conf(5) and /usr/share/examples/etc/make.conf.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20160617/89ebe5e8/attachment.sig>


More information about the freebsd-hackers mailing list