From 48d8d4d80bb299af5422312d92b044cb10a2e790 Mon Sep 17 00:00:00 2001 From: "Jin, Eric" Date: Mon, 12 Aug 2019 15:45:12 +0800 Subject: BaseTools/Capsule: Tool to generate Windows Firmware Update Driver REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1837 The tool is designed to generate Windows Firmware Update Drivers, the input is one drivername.cap with related parameters, the output Windows Driver package are composed by drivername.cap, drivername.inf and drivername.cat to update the single payload in device. usage: GenerateWindowsDriver [-h] [--output-folder OUTPUTFOLDER] [--product-fmp-guid PRODUCTFMPGUID] [--capsuleversion-dotstring CAPSULEVERSION_DOTSTRING] [--capsuleversion-hexstring CAPSULEVERSION_HEXSTRING] [--product-fw-provider PRODUCTFWPROVIDER] [--product-fw-mfg-name PRODUCTFWMFGNAME] [--product-fw-desc PRODUCTFWDESC] [--capsule-file-name CAPSULEFILENAME] [--pfx-file PFXFILE] [--arch ARCH] [--operating-system-string OPERATINGSYSTEMSTRING] Cc: Sean Brogan Cc: Bret Barkelew Cc: Bob Feng Cc: Liming Gao Cc: Kinney Michael D Signed-off-by: Eric Jin Reviewed-by: Bob Feng --- .../Source/Python/Capsule/WindowsCapsuleSupportHelper.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'BaseTools/Source/Python/Capsule/WindowsCapsuleSupportHelper.py') diff --git a/BaseTools/Source/Python/Capsule/WindowsCapsuleSupportHelper.py b/BaseTools/Source/Python/Capsule/WindowsCapsuleSupportHelper.py index 166af58d81..a29ac21ae8 100644 --- a/BaseTools/Source/Python/Capsule/WindowsCapsuleSupportHelper.py +++ b/BaseTools/Source/Python/Capsule/WindowsCapsuleSupportHelper.py @@ -3,7 +3,11 @@ # Windows Firmware Update Platform spec. # Creates INF, Cat, and then signs it # +# To install run pip install --upgrade edk2-pytool-library +# edk2-pytool-library-0.9.1 is required. +# # Copyright (c) Microsoft Corporation. All rights reserved. +# Copyright (c) 2019, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent ## @@ -12,14 +16,12 @@ import re import datetime import os import logging -from MuEnvironment import PluginManager -from MuPythonLibrary.Uefi.Capsule.CatGenerator import * -from MuPythonLibrary.Uefi.Capsule.InfGenerator import * -from MuPythonLibrary.UtilityFunctions import CatalogSignWithSignTool -from MuPythonLibrary.Windows.VsWhereUtilities import FindToolInWinSdk - +from edk2toollib.windows.capsule.cat_generator import CatGenerator +from edk2toollib.windows.capsule.inf_generator import InfGenerator +from edk2toollib.utility_functions import CatalogSignWithSignTool +from edk2toollib.windows.locate_tools import FindToolInWinSdk -class WindowsCapsuleSupportHelper(PluginManager.IUefiHelperPlugin): +class WindowsCapsuleSupportHelper(object): def RegisterHelpers(self, obj): fp = os.path.abspath(__file__) -- cgit v1.2.3