OcMainLib: Fixed opencore-version not being added to NVRAM variables

This commit is contained in:
vit9696 2021-10-03 16:09:14 +03:00
parent 355cf005a7
commit 19aea59da5
7 changed files with 14 additions and 1 deletions

View File

@ -10,6 +10,7 @@ OpenCore Changelog
- Added tool to extract vendor secure boot certificate from GRUB shim file
- Added `BridgeOSHardwareModel` NVRAM variable to fix T2 SB AP models on macOS 12
- Changed `Default` Apple Secure Boot model to match SMBIOS for macOS 12
- Fixed `opencore-version` not being added to NVRAM variables
#### v0.7.3
- Improved SSDT-PNLF compatibility with CFL+ graphics

Binary file not shown.

View File

@ -3965,6 +3965,8 @@ u=$(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\
\begin{lstlisting}[label=nvramver, style=ocbash]
nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-version
\end{lstlisting}
If the OpenCore version is not exposed the variable will contain
\texttt{UNK-000-0000-00-00} sequence.
To obtain OEM information, use the following commands in macOS:
\begin{lstlisting}[label=nvramoem, style=ocbash]

Binary file not shown.

View File

@ -1,7 +1,7 @@
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Sun Sep 12 01:31:15 2021
%DIF ADD ../Configuration.tex Sun Oct 3 09:32:34 2021
%DIF ADD ../Configuration.tex Sun Oct 3 16:07:47 2021
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
@ -4035,6 +4035,9 @@ u=$(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\
\begin{lstlisting}[label=nvramver, style=ocbash]
nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-version
\end{lstlisting}
\DIFaddbegin \DIFadd{If the OpenCore version is not exposed the variable will contain
}\texttt{\DIFadd{UNK-000-0000-00-00}} \DIFadd{sequence.
}\DIFaddend
To obtain OEM information, use the following commands in macOS:
\begin{lstlisting}[label=nvramoem, style=ocbash]

Binary file not shown.

View File

@ -93,6 +93,13 @@ OcReportVersion (
AsciiStrLen (Version),
(VOID *) Version
);
} else {
OcSetSystemVariable (
OC_VERSION_VARIABLE_NAME,
OPEN_CORE_NVRAM_ATTR,
L_STR_LEN ("UNK-000-0000-00-00"),
"UNK-000-0000-00-00"
);
}
}