Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2017 22:47:38 +0800
From:      Alastair Hogge <agh@fastmail.fm>
To:        svn-src-head@freebsd.org
Cc:        Warner Losh <imp@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r324646 - in head/sys/boot/efi: boot1 libefi loader
Message-ID:  <33612616.yJGDVEA9hj@direwolf.local.>
In-Reply-To: <201710160359.v9G3xCCi087576@repo.freebsd.org>
References:  <201710160359.v9G3xCCi087576@repo.freebsd.org>

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

[-- Attachment #1 --]
On Mon, 16 Oct 2017-10-16 03:59:12 Warner Losh wrote:
> Author: imp
> Date: Mon Oct 16 03:59:11 2017
> New Revision: 324646
> URL: https://svnweb.freebsd.org/changeset/base/324646
> 
> Log:
>   Unify boot1 with loader
> 
>   Refactor boot1 to use the same I/O code as /boot/loader uses. Refactor
>   to use the common efi_main.c.
> 
>   Submitted by: Eric McCorkle
>   Differential Revision: https://reviews.freebsd.org/D10447
> 

Hi Warner & Eric, thanks for the top stuff, however, I think at least one
ZFS compile time option was missed:

cc -target x86_64-unknown-freebsd12.0 --sysroot=/tmp/direwolf/usr/src/tmp -B/tmp/direwolf/usr/src/tmp/usr/bin  -O2 -pipe -ffreestanding -Wformat -mno-mmx -mno-sse -mno-avx -msoft-float -fshort-wchar -mno-red-zone -mno-aes -march=bd
ver2  -DLOADER_UFS_SUPPORT -DLOADER_DISK_SUPPORT -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_GELI_SUPPORT -I/usr/src/sys/boot/libsa -I/usr/src/sys/boot/common -I. -I/usr/src/sys/boot/efi/boot1/../include -I/usr/src/sys/boot/
efi/boot1/../include/amd64 -I/usr/src/sys/boot/efi/boot1/../../../contrib/dev/acpica/include -I/usr/src/sys/boot/efi/boot1/../../.. -DEFI_UFS_BOOT -I/usr/src/sys/boot/efi/boot1/../../common -fPIC -ffreestanding -Wformat -mno-mmx -m
no-sse -mno-avx -msoft-float -fshort-wchar -mno-red-zone -mno-aes -MD  -MF.depend.boot1.o -MTboot1.o -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpoin
ter-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unu
sed-local-typedef -Wno-address-of-packed-member -Wno-format -Qunused-arguments  -c /usr/src/sys/boot/efi/boot1/boot1.c -o boot1.o                                                                                                      
/usr/src/sys/boot/efi/boot1/boot1.c:269:1: error: no previous prototype for function 'efi_zfs_is_preferred' [-Werror,-Wmissing-prototypes]                                                                                             
efi_zfs_is_preferred(EFI_HANDLE *h)

> Added:
>   head/sys/boot/efi/libefi/efi_main.c   (contents, props changed)
>      - copied, changed from r324645, head/sys/boot/efi/loader/efi_main.c
> Deleted:
>   head/sys/boot/efi/boot1/boot_module.h
>   head/sys/boot/efi/boot1/ufs_module.c
>   head/sys/boot/efi/boot1/zfs_module.c
>   head/sys/boot/efi/loader/efi_main.c
> Modified:
>   head/sys/boot/efi/boot1/Makefile
>   head/sys/boot/efi/boot1/boot1.c
>   head/sys/boot/efi/libefi/Makefile
>   head/sys/boot/efi/loader/Makefile

 [leading diff removed]

> -/*
> - * devpath_last returns the last non-path end node in devpath.
> - */
> -static EFI_DEVICE_PATH *
> -devpath_last(EFI_DEVICE_PATH *devpath)
> +bool
> +efi_zfs_is_preferred(EFI_HANDLE *h)
>  {
> +         return (check_preferred(h));
> +}

Should this function be conditional on #ifdef EFI_ZFS_BOOT? There could be others,
however, my buildworld has stumbled here for the moment, and I am hitting the
horizontal now.

To good health
-- 
Only fools are quoted.
		-- Anonymous

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE863ZAMFLT4P9HbjBtzY+5ZChngEFAlnmGAsACgkQtzY+5ZCh
ngGk/Qf/eFB+feK9NwQnwwB8yFH9hYsuM0ePdz0FThIgKZ4yRi7WLfJI0CcGhtj+
moxHwEXgCERTZBBmImTP61tGPH2B1Imc+pCthvr8WhHOkrC01wapm5VM/xQhRdlU
UcvRUEA2eU0UHc2hDfMSEGoI9T3S8gDh2uqjH5rxlXJL6QiPEc61HjmYQ2g9OVYj
7SFU2q+E+gHEuDARlfUlVN9wCMUUsb3u/Pvo25KR2jukPrlO3ET69sTQ7MZfm7LE
udN6pWAcDJNiOq46CKkXoQ1mpZZR4sPqt+v18REsuQnT/r9eKKgu5eLiSNJjTaef
9KPZDadlIEPjdyWK1lgQ6AlM90CJQQ==
=X9Ju
-----END PGP SIGNATURE-----

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