From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 15:08:32 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3BE0859 for ; Tue, 23 Sep 2014 15:08:31 +0000 (UTC) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61532AFE for ; Tue, 23 Sep 2014 15:08:31 +0000 (UTC) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id s8NF8TYI077864; Tue, 23 Sep 2014 17:08:29 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 0CD723FA0; Tue, 23 Sep 2014 17:08:28 +0200 (CEST) Message-ID: <54218CEC.8020904@omnilan.de> Date: Tue, 23 Sep 2014 17:08:28 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: /boot/loader.efi and buildkernel References: <20140923141638.1b26bc4b.ohartman@zedat.fu-berlin.de> In-Reply-To: <20140923141638.1b26bc4b.ohartman@zedat.fu-berlin.de> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0352644EA633E80F202629FD" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Tue, 23 Sep 2014 17:08:29 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 15:08:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0352644EA633E80F202629FD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Bez=FCglich O. Hartmann's Nachricht vom 23.09.2014 14:16 (localtime): > Modules and kernel are built when running "make buildkernel", but the o= ther contents > of /boot/ aren't. How can I manually - and separately - build the loade= r, > especially /boot/loader.efi? Simply cd to src/sys/boot and do 'make clean && make && make DESTDIR=3D/altroot', the latter only if you don't want to overwrite curdev's /boot/ files. For loader.efi only, it's enough to do 'make clean && make' in the following directories: src/sys/boot/ficl src/sys/boot/efi src/sys/boot/amd64/efi =46rom amd64/efi you can 'make install' to just copy loader.efi (or copy manually from obj/$src/sys/boot/amd64/efi/loader.efi) > I realized that building loader.efi with any kind of optimization beyon= d debugging- or > close-to-debugging level ends up in an unloadable loader.efi on Haswell= CPUs (IvyBridge > and C2D seem to be unaffected). The system in question is the most rece= nt CURRENT, > compiled with system's CLANG 3.4.1. This is confirmed for CPUTYPE=3Dcore-avx2, see my recent post. My test machine was haswell as well, but I haven't tested on anything else! -Harry --------------enig0352644EA633E80F202629FD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAlQhjOwACgkQLDqVQ9VXb8gFoACfdzhNB7X9lJnNOvuj5UUZdOel rx0AnRW5wMFxO856RXmJKeUK3AXUhiO2 =OY8y -----END PGP SIGNATURE----- --------------enig0352644EA633E80F202629FD--