0006-firmware-Localization-keys-removal.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From 95a6212c5eef956289ab6a70ba0debb89508ce99 Mon Sep 17 00:00:00 2001
  2. From: Paul Kocialkowski <contact@paulk.fr>
  3. Date: Tue, 11 Aug 2015 00:07:18 +0200
  4. Subject: [PATCH 6/7] firmware: Localization keys removal
  5. Since we're using a text-based interface, binding the arrow keys to localization
  6. changes has no effect and only makes the screen flicker.
  7. Change-Id: I92dfe63d9d0826217653e29d3f26fb0ab29071f1
  8. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
  9. ---
  10. firmware/lib/vboot_api_kernel.c | 5 -----
  11. 1 file changed, 5 deletions(-)
  12. diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
  13. index 53ef5c7..e03e042 100644
  14. --- a/firmware/lib/vboot_api_kernel.c
  15. +++ b/firmware/lib/vboot_api_kernel.c
  16. @@ -273,7 +273,6 @@ int VbUserConfirms(VbCommonParams *cparams, uint32_t confirm_flags)
  17. return 1;
  18. }
  19. }
  20. - VbCheckDisplayKey(cparams, key, &vnc);
  21. }
  22. VbExSleepMs(CONFIRM_KEY_DELAY);
  23. }
  24. @@ -549,7 +548,6 @@ developer_mode_screen:
  25. break;
  26. default:
  27. VBDEBUG(("VbBootDeveloper() - pressed key %d\n", key));
  28. - VbCheckDisplayKey(cparams, key, &vnc);
  29. break;
  30. }
  31. } while(hold || VbAudioLooping(audio));
  32. @@ -613,7 +611,6 @@ VbError_t VbBootRecovery(VbCommonParams *cparams, LoadKernelParams *p)
  33. VbDisplayScreen(cparams, VB_SCREEN_OS_BROKEN, 0, &vnc);
  34. VBDEBUG(("VbBootRecovery() waiting for manual recovery\n"));
  35. while (1) {
  36. - VbCheckDisplayKey(cparams, VbExKeyboardRead(), &vnc);
  37. if (VbWantShutdown(cparams->gbb->flags))
  38. return VBERROR_SHUTDOWN_REQUESTED;
  39. VbExSleepMs(REC_KEY_DELAY);
  40. @@ -711,8 +708,6 @@ VbError_t VbBootRecovery(VbCommonParams *cparams, LoadKernelParams *p)
  41. i = 4;
  42. break;
  43. }
  44. - } else {
  45. - VbCheckDisplayKey(cparams, key, &vnc);
  46. }
  47. if (VbWantShutdown(cparams->gbb->flags))
  48. return VBERROR_SHUTDOWN_REQUESTED;
  49. --
  50. 2.10.2