Skip to content

Commit

Permalink
Bump edk2-pytool-library to 0.21.7. Switch functions using local Uefi…
Browse files Browse the repository at this point in the history
…VariableSupportLib*.py to using edk2-pytool-library versions. Remove Local UefiVariableSupportLib instances.
  • Loading branch information
apop5 committed Jun 7, 2024
1 parent 7a3ae63 commit 314c7f7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 359 deletions.
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

0 comments on commit 314c7f7

Please sign in to comment.