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
--nextPart1857889.Am0gho80aa
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

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
>=20
> Log:
>   Unify boot1 with loader
>=20
>   Refactor boot1 to use the same I/O code as /boot/loader uses. Refac=
tor
>   to use the common efi_main.c.
>=20
>   Submitted by: Eric McCorkle
>   Differential Revision: https://reviews.freebsd.org/D10447
>=20

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

cc -target x86_64-unknown-freebsd12.0 --sysroot=3D/tmp/direwolf/usr/src=
/tmp -B/tmp/direwolf/usr/src/tmp/usr/bin  -O2 -pipe -ffreestanding -Wfo=
rmat -mno-mmx -mno-sse -mno-avx -msoft-float -fshort-wchar -mno-red-zon=
e -mno-aes -march=3Dbd
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/../../../contr=
ib/dev/acpica/include -I/usr/src/sys/boot/efi/boot1/../../.. -DEFI_UFS_=
BOOT -I/usr/src/sys/boot/efi/boot1/../../common -fPIC -ffreestanding -W=
format -mno-mmx -m
no-sse -mno-avx -msoft-float -fshort-wchar -mno-red-zone -mno-aes -MD  =
=2DMF.depend.boot1.o -MTboot1.o -std=3Dgnu99 -Wsystem-headers -Werror -Wa=
ll -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissi=
ng-prototypes -Wpoin
ter-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-str=
ing-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-=
unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-c=
onversion -Wno-unu
sed-local-typedef -Wno-address-of-packed-member -Wno-format -Qunused-ar=
guments  -c /usr/src/sys/boot/efi/boot1/boot1.c -o boot1.o             =
                                                                       =
                 =20
/usr/src/sys/boot/efi/boot1/boot1.c:269:1: error: no previous prototype=
 for function 'efi_zfs_is_preferred' [-Werror,-Wmissing-prototypes]    =
                                                                       =
                 =20
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_mai=
n.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 hitti=
ng the
horizontal now.

To good health
=2D-=20
Only fools are quoted.
=09=09-- Anonymous

--nextPart1857889.Am0gho80aa
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----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-----

--nextPart1857889.Am0gho80aa--




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