diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /Keys/Variables | |
download | zprj-master.tar.xz |
Diffstat (limited to 'Keys/Variables')
-rw-r--r-- | Keys/Variables/KEK | bin | 0 -> 2819 bytes | |||
-rw-r--r-- | Keys/Variables/PK | bin | 0 -> 2121 bytes | |||
-rw-r--r-- | Keys/Variables/Variables.chm | bin | 0 -> 36330 bytes | |||
-rw-r--r-- | Keys/Variables/Variables.cif | 17 | ||||
-rw-r--r-- | Keys/Variables/Variables.mak | 117 | ||||
-rw-r--r-- | Keys/Variables/Variables.sdl | 153 | ||||
-rw-r--r-- | Keys/Variables/db | bin | 0 -> 4402 bytes | |||
-rw-r--r-- | Keys/Variables/dbt | bin | 0 -> 2956 bytes | |||
-rw-r--r-- | Keys/Variables/dbx | bin | 0 -> 4011 bytes |
9 files changed, 287 insertions, 0 deletions
diff --git a/Keys/Variables/KEK b/Keys/Variables/KEK Binary files differnew file mode 100644 index 0000000..807364e --- /dev/null +++ b/Keys/Variables/KEK diff --git a/Keys/Variables/PK b/Keys/Variables/PK Binary files differnew file mode 100644 index 0000000..1f3e9b2 --- /dev/null +++ b/Keys/Variables/PK diff --git a/Keys/Variables/Variables.chm b/Keys/Variables/Variables.chm Binary files differnew file mode 100644 index 0000000..e138b43 --- /dev/null +++ b/Keys/Variables/Variables.chm 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 @@ +<component> + 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" +<endComponent> 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 +# +# +#************************************************************************* +#<AMI_FHDR_START> +# +# Name: Certificates.mak +# +# Description: +# +# +#<AMI_FHDR_END> +#************************************************************************* +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 Binary files differnew file mode 100644 index 0000000..2c1c9cd --- /dev/null +++ b/Keys/Variables/db diff --git a/Keys/Variables/dbt b/Keys/Variables/dbt Binary files differnew file mode 100644 index 0000000..670132b --- /dev/null +++ b/Keys/Variables/dbt diff --git a/Keys/Variables/dbx b/Keys/Variables/dbx Binary files differnew file mode 100644 index 0000000..e79929f --- /dev/null +++ b/Keys/Variables/dbx |