Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2014 17:08:28 +0200
From:      Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: /boot/loader.efi and buildkernel
Message-ID:  <54218CEC.8020904@omnilan.de>
In-Reply-To: <20140923141638.1b26bc4b.ohartman@zedat.fu-berlin.de>
References:  <20140923141638.1b26bc4b.ohartman@zedat.fu-berlin.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
 Bezüglich O. Hartmann's Nachricht vom 23.09.2014 14:16 (localtime):
> Modules and kernel are built when running "make buildkernel", but the other contents
> of /boot/ aren't. How can I manually - and separately - build the loader,
> especially /boot/loader.efi?

Simply cd to src/sys/boot and do 'make clean && make && make
DESTDIR=/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

From 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 beyond 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 recent CURRENT,
> compiled with system's CLANG 3.4.1.

This is confirmed for CPUTYPE=core-avx2, see my recent post. My test
machine was haswell as well, but I haven't tested on anything else!

-Harry



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAlQhjOwACgkQLDqVQ9VXb8gFoACfdzhNB7X9lJnNOvuj5UUZdOel
rx0AnRW5wMFxO856RXmJKeUK3AXUhiO2
=OY8y
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54218CEC.8020904>