1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

In sysutils/u-boot-pine64, fix booting with boot1.efi.

Submitted by:	andrew
Approved by:	bdrewery (implicit)
This commit is contained in:
Brad Davis 2016-06-28 20:18:25 +00:00
parent afbf62a98a
commit fd0d2dc71f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417750
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= u-boot
PORTVERSION= 2016.05
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/:uboot \
http://download.opensuse.org/repositories/devel:/ARM:/Factory:/Contrib:/Pine64/standard/src/:firmware

View File

@ -0,0 +1,12 @@
--- lib/efi_loader/efi_console.c
+++ lib/efi_loader/efi_console.c
@@ -167,6 +167,9 @@ static efi_status_t EFIAPI efi_cout_query_mode(
{
EFI_ENTRY("%p, %ld, %p, %p", this, mode_number, columns, rows);
+ if (mode_number != 0)
+ return EFI_EXIT(EFI_INVALID_PARAMETER);
+
if (!console_size_queried) {
/* Ask the terminal about its size */
int n[3];