!86 shim:fix the response_length is modified.

From: @jinlun123123 
Reviewed-by: @zhujianwei001 
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2023-05-27 02:36:32 +00:00 committed by Gitee
commit 85899461ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 6 additions and 3 deletions

View File

@ -122,9 +122,9 @@ index 55f939c..24beac1 100644
+ get_result_request_data.FirmwareType = IPMI_FW_SHIM_GRUB;
+ get_result_request_data.FirmwareDetailType = IPMI_FW_DETAIL_GRUB;
+
+ response_length = sizeof(OEM_BMC_GET_RESULT_RESPONSE);
+
+ // Polling for 7 seconds
+ while (timeout_ms > 0) {
+ response_length = sizeof(OEM_BMC_GET_RESULT_RESPONSE);
+ msleep(WAIT_TIME_UNIT);
+ timeout_ms -= WAIT_TIME_UNIT;
+

View File

@ -22,7 +22,7 @@
Name: shim
Version: 15
Release: 29
Release: 30
Summary: First-stage UEFI bootloader
ExclusiveArch: x86_64 aarch64
License: BSD
@ -156,6 +156,9 @@ cd ..
/usr/src/debug/%{name}-%{version}-%{release}/*
%changelog
* Sat May 27 2023 jinlun <jinlun@huawei.com> - 15-30
- fix the response_length is modified.
* Fri Mar 17 2023 huangzq6 <huangzhenqiang2@huawei.com> - 15-29
- fix the bug for fb and mok, do some clean code.