Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to use edk2-pytool-library UefiVariableSupportLib. #362

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
"nochange",
"headerRef",
"modea",
"modeb"
"modeb",
"uefivariablesupport"
]
}
3 changes: 2 additions & 1 deletion SetupDataPkg/SetupDataPkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"prettyname",
"efivars",
"efivarfs",
"chattr"
"chattr",
"uefivariablesupport"
], # words to extend to the dictionary for this package
"IgnoreStandardPaths": [], # Standard Plugin defined paths that should be ignore
"AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)
Expand Down
5 changes: 1 addition & 4 deletions SetupDataPkg/Tools/ReadUefiVarsToConfVarList.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
import struct
import uuid
import ctypes
if os.name == 'nt':
from SettingSupport.UefiVariablesSupportLib import UefiVariable
else:
from SettingSupport.UefiVariablesSupportLinuxLib import UefiVariable
from edk2toollib.os.uefivariablesupport import UefiVariable
from VariableList import Schema, UEFIVariable, create_vlist_buffer


Expand Down
7 changes: 3 additions & 4 deletions SetupDataPkg/Tools/SettingSupport/PyRobotRemote.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,17 @@ def Run_Command_And_Return_Output(self, cmdline):
def GetUefiVariable(self, name, guid, trim):
UefiVar = UefiVariable()
logging.info("Calling GetUefiVar(name='%s', GUID='%s')" % (name, "{%s}" % guid))
(rc, var, error_string) = UefiVar.GetUefiVar(name, guid)
(rc, var) = UefiVar.GetUefiVar(name, guid)
var2 = var
if (var is not None) and (trim == 'trim'):
varlen = len(var)
if varlen > 1:
var2 = var[0: varlen - 1]
return (rc, var2, error_string)
return (rc, var2, "")

def SetUefiVariable(self, name, guid, attrs=None, contents=None):
UefiVar = UefiVariable()
(rc, err, error_string) = UefiVar.SetUefiVar(name, guid, contents, attrs)
return rc
return UefiVar.SetUefiVar(name, guid, contents, attrs)

def remote_ack(self):
return True
Expand Down
201 changes: 0 additions & 201 deletions SetupDataPkg/Tools/SettingSupport/UefiVariablesSupportLib.py

This file was deleted.

143 changes: 0 additions & 143 deletions SetupDataPkg/Tools/SettingSupport/UefiVariablesSupportLinuxLib.py

This file was deleted.

Loading
Loading