From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- Keys/Variables/KEK | Bin 0 -> 2819 bytes Keys/Variables/PK | Bin 0 -> 2121 bytes Keys/Variables/Variables.chm | Bin 0 -> 36330 bytes Keys/Variables/Variables.cif | 17 +++++ Keys/Variables/Variables.mak | 117 +++++++++++++++++++++++++++++++++ Keys/Variables/Variables.sdl | 153 +++++++++++++++++++++++++++++++++++++++++++ Keys/Variables/db | Bin 0 -> 4402 bytes Keys/Variables/dbt | Bin 0 -> 2956 bytes Keys/Variables/dbx | Bin 0 -> 4011 bytes 9 files changed, 287 insertions(+) create mode 100644 Keys/Variables/KEK create mode 100644 Keys/Variables/PK create mode 100644 Keys/Variables/Variables.chm create mode 100644 Keys/Variables/Variables.cif create mode 100644 Keys/Variables/Variables.mak create mode 100644 Keys/Variables/Variables.sdl create mode 100644 Keys/Variables/db create mode 100644 Keys/Variables/dbt create mode 100644 Keys/Variables/dbx (limited to 'Keys/Variables') diff --git a/Keys/Variables/KEK b/Keys/Variables/KEK new file mode 100644 index 0000000..807364e Binary files /dev/null and b/Keys/Variables/KEK differ diff --git a/Keys/Variables/PK b/Keys/Variables/PK new file mode 100644 index 0000000..1f3e9b2 Binary files /dev/null and b/Keys/Variables/PK differ diff --git a/Keys/Variables/Variables.chm b/Keys/Variables/Variables.chm new file mode 100644 index 0000000..e138b43 Binary files /dev/null and b/Keys/Variables/Variables.chm differ diff --git a/Keys/Variables/Variables.cif b/Keys/Variables/Variables.cif new file mode 100644 index 0000000..30dc3be --- /dev/null +++ b/Keys/Variables/Variables.cif @@ -0,0 +1,17 @@ + + name = "Default Secure Boot Variables" + category = ModulePart + LocalRoot = "Keys\Variables\" + RefName = "SecVariables" +[files] +"Variables.chm" +"Variables.sdl" +"Variables.mak" +"PK" +"KEK" +"db" +"dbt" +"dbx" +[dependOn] +"SecureBootMod" + diff --git a/Keys/Variables/Variables.mak b/Keys/Variables/Variables.mak new file mode 100644 index 0000000..d946eb4 --- /dev/null +++ b/Keys/Variables/Variables.mak @@ -0,0 +1,117 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2013, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* + +#************************************************************************* +# $Header: /Alaska/SOURCE/Modules/SecureBoot_WIN8/SecureVariables/Variables.mak 3 7/25/13 9:14a Alexp $ +# +# $Revision: 3 $ +# +# $Date: 7/25/13 9:14a $ +#************************************************************************* +# Revision History +# ---------------- +# $Log: /Alaska/SOURCE/Modules/SecureBoot_WIN8/SecureVariables/Variables.mak $ +# +# 3 7/25/13 9:14a Alexp +# EIP#118850: ECR1009: Add build rules to include "dbt" variable +# +# 2 7/13/12 3:20p Alexp +# 1. Add .Help file containing description of Key certificates included +# in each Secure Variables +# 2. Modify Build rules in order to let file overrides from Create Vars +# Module +# +# 1 6/05/12 4:59p Alexp +# +# +#************************************************************************* +# +# +# Name: Certificates.mak +# +# Description: +# +# +# +#************************************************************************* +SecureBootModule: SETPLATFORMKEYS + +#--------------------------------------------------------------------------- +# Set Secured Variables +#--------------------------------------------------------------------------- +SETPLATFORMKEYS: \ +$(BUILD_DIR)\PkVar.ffs \ +$(BUILD_DIR)\KekVar.ffs \ +$(BUILD_DIR)\dbVar.ffs \ +!IF "$(DBT_include)" == "1" +$(BUILD_DIR)\dbtVar.ffs \ +!ENDIF +!IF "$(DBX_include)" == "1" +$(BUILD_DIR)\dbxVar.ffs +!ENDIF + +PK_FFS_FILE_EFI_AUTH_VAR_GUID = CC0F8A3F-3DEA-4376-9679-5426BA0A907E +KEK_FFS_FILE_AUTH_EFI_VAR_GUID = 9FE7DE69-0AEA-470a-B50A-139813649189 +DB_FFS_FILE_AUTH_EFI_VAR_GUID = FBF95065-427F-47b3-8077-D13C60710998 +DBX_FFS_FILE_AUTH_EFI_VAR_GUID = 9D7A05E9-F740-44c3-858B-75586A8F9C8E +DBT_FFS_FILE_AUTH_EFI_VAR_GUID = C246FBBF-F75C-43F7-88A6-B5FD0CF1DB7F + +# PK is used as FW Root platform key. Used to verify Aptio FW images +$(BUILD_DIR)\PkVar.ffs : $(PkVar) + $(MAKE) /f Core\FFS.mak \ + BUILD_DIR=$(BUILD_DIR) \ + GUID=$(PK_FFS_FILE_EFI_AUTH_VAR_GUID) \ + TYPE=EFI_FV_FILETYPE_FREEFORM \ + BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(*B) + +$(BUILD_DIR)\KekVar.ffs : $(KekVar) + $(MAKE) /f Core\FFS.mak \ + BUILD_DIR=$(BUILD_DIR) \ + GUID=$(KEK_FFS_FILE_AUTH_EFI_VAR_GUID) \ + TYPE=EFI_FV_FILETYPE_FREEFORM \ + BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(*B) + +$(BUILD_DIR)\dbVar.ffs : $(dbVar) + $(MAKE) /f Core\FFS.mak \ + BUILD_DIR=$(BUILD_DIR) \ + GUID=$(DB_FFS_FILE_AUTH_EFI_VAR_GUID) \ + TYPE=EFI_FV_FILETYPE_FREEFORM \ + BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(*B) + +$(BUILD_DIR)\dbtVar.ffs : $(dbtVar) + $(MAKE) /f Core\FFS.mak \ + BUILD_DIR=$(BUILD_DIR) \ + GUID=$(DBT_FFS_FILE_AUTH_EFI_VAR_GUID) \ + TYPE=EFI_FV_FILETYPE_FREEFORM \ + BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(*B) + +$(BUILD_DIR)\dbxVar.ffs : $(dbxVar) + $(MAKE) /f Core\FFS.mak \ + BUILD_DIR=$(BUILD_DIR) \ + GUID=$(DBX_FFS_FILE_AUTH_EFI_VAR_GUID) \ + TYPE=EFI_FV_FILETYPE_FREEFORM \ + BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(*B) +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2013, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* diff --git a/Keys/Variables/Variables.sdl b/Keys/Variables/Variables.sdl new file mode 100644 index 0000000..09b2bf4 --- /dev/null +++ b/Keys/Variables/Variables.sdl @@ -0,0 +1,153 @@ +TOKEN + Name = SecVariables_SUPPORT + Value = "1" + TokenType = Boolean + TargetMAK = Yes + Master = Yes +End +TOKEN + Name = "DBT_include" + Value = "0" + TokenType = Boolean + TargetMAK = Yes +End + +TOKEN + Name = "DBX_include" + Value = "1" + TokenType = Boolean + TargetMAK = Yes +End + + +TOKEN + Name = "PkVarFile" + Value = "$(SecVariables_DIR)\PK" + TokenType = Expression + TargetMAK = Yes +End + +TOKEN + Name = "KekVarFile" + Value = "$(SecVariables_DIR)\KEK" + TokenType = Expression + TargetMAK = Yes +End + +TOKEN + Name = "dbVarFile" + Value = "$(SecVariables_DIR)\db" + TokenType = Expression + TargetMAK = Yes +End + +TOKEN + Name = "dbtVarFile" + Value = "$(SecVariables_DIR)\dbt" + TokenType = Expression + TargetMAK = Yes +End + +TOKEN + Name = "dbxVarFile" + Value = "$(SecVariables_DIR)\dbx" + TokenType = Expression + TargetMAK = Yes +End + +PATH + Name = "SecVariables_DIR" + Help = "Path to Variables Module in Project" +End + +MODULE + File = "Variables.mak" +End + +ELINK + Name = "$(PkVarFile)" + Parent = "PkVar" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(KekVarFile)" + Parent = "KekVar" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(dbVarFile)" + Parent = "dbVar" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(dbtVarFile)" + Parent = "dbtVar" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(dbxVarFile)" + Parent = "dbxVar" + InvokeOrder = AfterParent +End + +ELINK + Name = "PkVar" + InvokeOrder = ReplaceParent +End + +ELINK + Name = "KekVar" + InvokeOrder = ReplaceParent +End + +ELINK + Name = "dbVar" + InvokeOrder = ReplaceParent +End + +ELINK + Name = "dbtVar" + InvokeOrder = ReplaceParent +End + +ELINK + Name = "dbxVar" + InvokeOrder = ReplaceParent +End + +ELINK + Name = "$(BUILD_DIR)\PkVar.ffs" + Parent = "FV_BB" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(BUILD_DIR)\KekVar.ffs" + Parent = "FV_MAIN" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(BUILD_DIR)\dbVar.ffs" + Parent = "FV_MAIN" + InvokeOrder = AfterParent + +End + +ELINK + Name = "$(BUILD_DIR)\dbtVar.ffs" + Parent = "FV_MAIN" + InvokeOrder = AfterParent + Token = "DBT_include" "=" "1" +End + +ELINK + Name = "$(BUILD_DIR)\dbxVar.ffs" + Parent = "FV_MAIN" + InvokeOrder = AfterParent + Token = "DBX_include" "=" "1" +End diff --git a/Keys/Variables/db b/Keys/Variables/db new file mode 100644 index 0000000..2c1c9cd Binary files /dev/null and b/Keys/Variables/db differ diff --git a/Keys/Variables/dbt b/Keys/Variables/dbt new file mode 100644 index 0000000..670132b Binary files /dev/null and b/Keys/Variables/dbt differ diff --git a/Keys/Variables/dbx b/Keys/Variables/dbx new file mode 100644 index 0000000..e79929f Binary files /dev/null and b/Keys/Variables/dbx differ -- cgit v1.2.3