From owner-freebsd-hackers@freebsd.org Fri Jun 17 10:20:33 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81B2FA781D4 for ; Fri, 17 Jun 2016 10:20:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AE9C1CDE for ; Fri, 17 Jun 2016 10:20:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [172.16.0.92] (LNeuilly-656-1-196-83.w80-13.abo.wanadoo.fr [80.13.70.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6EE2C7208; Fri, 17 Jun 2016 12:20:31 +0200 (CEST) Subject: Re: enabling cpu "features" in custom kernel Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_D8E4B48C-DD0C-4A02-94BF-98C22256DEA8"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <2fa5c2cb-81eb-d44a-3011-db27035e7965@herveybayaustralia.com.au> Date: Fri, 17 Jun 2016 12:20:21 +0200 Cc: freebsd-hackers@freebsd.org Message-Id: <092CD08F-3896-451D-8A7E-8DCB056D0118@FreeBSD.org> References: <2fa5c2cb-81eb-d44a-3011-db27035e7965@herveybayaustralia.com.au> To: Da Rock X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2016 10:20:33 -0000 --Apple-Mail=_D8E4B48C-DD0C-4A02-94BF-98C22256DEA8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 16 Jun 2016, at 14:35, Da Rock = wrote: >=20 > I'm just trying to get my head around kernel building and clang. >=20 > 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?=3Dbroadwell 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 --Apple-Mail=_D8E4B48C-DD0C-4A02-94BF-98C22256DEA8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAldjzu4ACgkQsF6jCi4glqOuGwCfeW5Rx0bCC6D6Flk0XBHRzcS+ m6AAn2BBLwYJuZiv/6UmpN07zTMZVBxI =LXDq -----END PGP SIGNATURE----- --Apple-Mail=_D8E4B48C-DD0C-4A02-94BF-98C22256DEA8--