loader.efi: check the presence of WaitForKey
The issue found in FreeBSD. Note the original FreeBSD fix is slightly different, but the code idea is still the same. (and I'll fix upstream soon).
When the EFI implementation (like U-Boot) does not support WaitForKey, we can emulate efi_cons_poll(0 with a flag and caching the last key read with ReadKeyStroke. This fixes the loader.efi countdown timer on Pine64 (and other U-Boot + EFI using platforms).
Updated by Electric Monk almost 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 416f8d72824083126c8e231fbb5f4b3a8249ace8 Author: Toomas Soome <email@example.com> Date: 2018-11-30T02:08:01.000Z 9990 loader.efi: check the presence of WaitForKey Reviewed by: John Levon <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>