]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: enable use of authenticated variables in NorFlashDxe
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 7 May 2015 15:18:14 +0000 (15:18 +0000)
committeroliviermartin <oliviermartin@Edk2>
Thu, 7 May 2015 15:18:14 +0000 (15:18 +0000)
commit6cf1269d9577a50834683f9b0a90197c0dfa1a78
treed606fd12bc7c42ffba7b57efe8ab286ad1e04258
parent4ba30eded8ea228641eedcd9f1cbba828d059b7c
ArmPlatformPkg: enable use of authenticated variables in NorFlashDxe

The NorFlashDxe uses an explicit 'BEFORE xxx' Depex declaration to
ensure that it is dispatched before VariableRuntimeDxe, and uses the
file GUID of the latter as 'xxx' explicitly to accomplish that.

However, when enabling UEFI Secure Boot, this breaks down since the
authenticated VariableRuntimeDxe is a completely separate driver, with
a different GUID. Also, the hardcoded dependency on gEfiVariableGuid,
which is not used under UEFI Secure Boot, needs to be factored out in
order to allow this driver to be used.

So clone NorFlashDxe.inf into NorFlashAuthenticatedDxe.inf, and fix
up the dependencies so they refer to gEfiAuthenticatedVariableGuid and
SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17355 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/ArmPlatformPkg.dec
ArmPlatformPkg/ArmVExpressPkg/ArmVExpressPkg.dec
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf [new file with mode: 0644]
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedVariableDep.c [new file with mode: 0644]
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.h
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashVariableDep.c [new file with mode: 0644]